Source code for niswitch.enums

# -*- coding: utf-8 -*-
# This file was generated

from enum import Enum


[docs]class HandshakingInitiation(Enum): MEASUREMENT_DEVICE = 0 r''' The `niSwitch Initiate Scan <switchviref.chm::/Initiate_Scan.html>`__ VI does not return until the switch hardware is waiting for a trigger input. This ensures that if you initiate the measurement device after calling the `niSwitch Initiate Scan <switchviref.chm::/Initiate_Scan.html>`__ VI , the switch is sure to receive the first measurement complete (MC) signal sent by the measurement device. The measurement device should be configured to first take a measurement, send MC, then wait for scanner advanced output signal. Thus, the first MC of the measurement device initiates handshaking. ''' SWITCH = 1 r''' The `niSwitch Initiate Scan <switchviref.chm::/Initiate_Scan.html>`__ VI returns immediately after beginning scan list execution. It is assumed that the measurement device has already been configured and is waiting for the scanner advanced signal. The measurement should be configured to first wait for a trigger, then take a measurement. Thus, the first scanner advanced output signal of the switch module initiates handshaking. '''
[docs]class PathCapability(Enum): PATH_AVAILABLE = 1 r''' Path Available ''' PATH_EXISTS = 2 r''' Path Exists ''' PATH_UNSUPPORTED = 3 r''' Path Unsupported ''' RESOURCE_IN_USE = 4 r''' Resource in use ''' SOURCE_CONFLICT = 5 r''' Source conflict ''' CHANNEL_NOT_AVAILABLE = 6 r''' Channel not available '''
[docs]class RelayAction(Enum): OPEN = 20 r''' Open Relay ''' CLOSE = 21 r''' Close Relay '''
[docs]class RelayPosition(Enum): OPEN = 10 r''' Open ''' CLOSED = 11 r''' Closed '''
[docs]class ScanAdvancedOutput(Enum): NONE = 0 r''' The switch device does not produce a Scan Advanced Output trigger. ''' EXTERNAL = 2 r''' External Trigger. The switch device produces the Scan Advanced Output trigger on the external trigger output. ''' TTL0 = 111 r''' The switch device produces the Scan Advanced Output on the PXI TRIG0 line. ''' TTL1 = 112 r''' The switch device produces the Scan Advanced Output on the PXI TRIG1 line. ''' TTL2 = 113 r''' The switch device produces the Scan Advanced Output on the PXI TRIG2 line. ''' TTL3 = 114 r''' The switch device produces the Scan Advanced Output on the PXI TRIG3 line. ''' TTL4 = 115 r''' The switch device produces the Scan Advanced Output on the PXI TRIG4 line. ''' TTL5 = 116 r''' The switch device produces the Scan Advanced Output on the PXI TRIG5 line. ''' TTL6 = 117 r''' The switch device produces the Scan Advanced Output on the PXI TRIG6 line. ''' TTL7 = 118 r''' The switch device produces the Scan Advanced Output on the PXI TRIG7 line. ''' PXI_STAR = 125 r''' The switch module produces the Scan Advanced Output Trigger on the PXI Star trigger bus before processing the next entry in the scan list. ''' REARCONNECTOR = 1000 r''' The switch device produces the Scan Advanced Output trigger on the rear connector. ''' FRONTCONNECTOR = 1001 r''' The switch device produces the Scan Advanced Output trigger on the front connector. ''' REARCONNECTOR_MODULE1 = 1021 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 1. ''' REARCONNECTOR_MODULE2 = 1022 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 2. ''' REARCONNECTOR_MODULE3 = 1023 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 3. ''' REARCONNECTOR_MODULE4 = 1024 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 4. ''' REARCONNECTOR_MODULE5 = 1025 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 5. ''' REARCONNECTOR_MODULE6 = 1026 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 6. ''' REARCONNECTOR_MODULE7 = 1027 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 7. ''' REARCONNECTOR_MODULE8 = 1028 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 8. ''' REARCONNECTOR_MODULE9 = 1029 r''' The switch module produces the Scan Advanced Ouptut Trigger on the rear connector module 9. ''' REARCONNECTOR_MODULE10 = 1030 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 10. ''' REARCONNECTOR_MODULE11 = 1031 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 11. ''' REARCONNECTOR_MODULE12 = 1032 r''' The switch module produces the Scan Advanced Output Trigger on the rear connector module 12. ''' FRONTCONNECTOR_MODULE1 = 1041 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 1. ''' FRONTCONNECTOR_MODULE2 = 1042 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 2. ''' FRONTCONNECTOR_MODULE3 = 1043 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 3. ''' FRONTCONNECTOR_MODULE4 = 1044 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 4. ''' FRONTCONNECTOR_MODULE5 = 1045 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 5. ''' FRONTCONNECTOR_MODULE6 = 1046 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 6. ''' FRONTCONNECTOR_MODULE7 = 1047 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 7. ''' FRONTCONNECTOR_MODULE8 = 1048 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 8. ''' FRONTCONNECTOR_MODULE9 = 1049 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 9. ''' FRONTCONNECTOR_MODULE10 = 1050 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 10. ''' FRONTCONNECTOR_MODULE11 = 1051 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 11. ''' FRONTCONNECTOR_MODULE12 = 1052 r''' The switch module produces the Scan Advanced Output Trigger on the front connector module 12. '''
[docs]class ScanAdvancedPolarity(Enum): RISING = 0 r''' The trigger occurs on the rising edge of the signal. ''' FALLING = 1 r''' The trigger occurs on the falling edge of the signal. '''
[docs]class ScanMode(Enum): NONE = 0 r''' No implicit action on connections when scanning. ''' BREAK_BEFORE_MAKE = 1 r''' When scanning, the switch device breaks existing connections before making new connections. ''' BREAK_AFTER_MAKE = 2 r''' When scanning, the switch device breaks existing connections after making new connections. '''
[docs]class TriggerInput(Enum): IMMEDIATE = 1 r''' Immediate Trigger. The switch device does not wait for a trigger before processing the next entry in the scan list. ''' EXTERNAL = 2 r''' External Trigger. The switch device waits until it receives a trigger from an external source through the external trigger input before processing the next entry in the scan list. ''' SOFTWARE_TRIG = 3 r''' The switch device waits until you call the send_software_trigger method before processing the next entry in the scan list. ''' TTL0 = 111 r''' The switch device waits until it receives a trigger on the PXI TRIG0 line before processing the next entry in the scan list. ''' TTL1 = 112 r''' The switch device waits until it receives a trigger on the PXI TRIG1 line before processing the next entry in the scan list. ''' TTL2 = 113 r''' The switch device waits until it receives a trigger on the PXI TRIG2 line before processing the next entry in the scan list. ''' TTL3 = 114 r''' The switch device waits until it receives a trigger on the PXI TRIG3 line before processing the next entry in the scan list. ''' TTL4 = 115 r''' The switch device waits until it receives a trigger on the PXI TRIG4 line before processing the next entry in the scan list. ''' TTL5 = 116 r''' The switch device waits until it receives a trigger on the PXI TRIG5 line before processing the next entry in the scan list. ''' TTL6 = 117 r''' The switch device waits until it receives a trigger on the PXI TRIG6 line before processing the next entry in the scan list. ''' TTL7 = 118 r''' The switch device waits until it receives a trigger on the PXI TRIG7 line before processing the next entry in the scan list. ''' PXI_STAR = 125 r''' The switch device waits until it receives a trigger on the PXI STAR trigger bus before processing the next entry in the scan list. ''' REARCONNECTOR = 1000 r''' The switch device waits until it receives a trigger on the rear connector. ''' FRONTCONNECTOR = 1001 r''' The switch device waits until it receives a trigger on the front connector. ''' REARCONNECTOR_MODULE1 = 1021 r''' The switch module waits until it receives a trigger on the rear connector module 1. ''' REARCONNECTOR_MODULE2 = 1022 r''' The switch module waits until it receives a trigger on the rear connector module 2. ''' REARCONNECTOR_MODULE3 = 1023 r''' The switch module waits until it receives a trigger on the rear connector module 3. ''' REARCONNECTOR_MODULE4 = 1024 r''' The switch module waits until it receives a trigger on the rear connector module 4. ''' REARCONNECTOR_MODULE5 = 1025 r''' The switch module waits until it receives a trigger on the rear connector module 5. ''' REARCONNECTOR_MODULE6 = 1026 r''' The switch module waits until it receives a trigger on the rear connector module 6. ''' REARCONNECTOR_MODULE7 = 1027 r''' The switch module waits until it receives a trigger on the rear connector module 7. ''' REARCONNECTOR_MODULE8 = 1028 r''' The switch module waits until it receives a trigger on the rear connector module 8. ''' REARCONNECTOR_MODULE9 = 1029 r''' The switch module waits until it receives a trigger on the rear connector module 9. ''' REARCONNECTOR_MODULE10 = 1030 r''' The switch module waits until it receives a trigger on the rear connector module 10. ''' REARCONNECTOR_MODULE11 = 1031 r''' The switch module waits until it receives a trigger on the rear connector module 11. ''' REARCONNECTOR_MODULE12 = 1032 r''' The switch module waits until it receives a trigger on the rear connector module 12. ''' FRONTCONNECTOR_MODULE1 = 1041 r''' The switch module waits until it receives a trigger on the front connector module 1. ''' FRONTCONNECTOR_MODULE2 = 1042 r''' The switch module waits until it receives a trigger on the front connector module 2. ''' FRONTCONNECTOR_MODULE3 = 1043 r''' The switch module waits until it receives a trigger on the front connector module 3. ''' FRONTCONNECTOR_MODULE4 = 1044 r''' The switch module waits until it receives a trigger on the front connector module 4. ''' FRONTCONNECTOR_MODULE5 = 1045 r''' The switch module waits until it receives a trigger on the front connector module 5. ''' FRONTCONNECTOR_MODULE6 = 1046 r''' The switch module waits until it receives a trigger on the front connector module 6. ''' FRONTCONNECTOR_MODULE7 = 1047 r''' The switch module waits until it receives a trigger on the front connector module 7. ''' FRONTCONNECTOR_MODULE8 = 1048 r''' The switch module waits until it receives a trigger on the front connector module 8. ''' FRONTCONNECTOR_MODULE9 = 1049 r''' The switch module waits until it receives a trigger on the front connector module 9. ''' FRONTCONNECTOR_MODULE10 = 1050 r''' The switch module waits until it receives a trigger on the front connector module 10. ''' FRONTCONNECTOR_MODULE11 = 1051 r''' The switch module waits until it receives a trigger on the front connector module 11. ''' FRONTCONNECTOR_MODULE12 = 1052 r''' The switch module waits until it receives a trigger on the front connector module 12. '''
[docs]class TriggerInputPolarity(Enum): RISING = 0 r''' The trigger occurs on the rising edge of the signal. ''' FALLING = 1 r''' The trigger occurs on the falling edge of the signal. '''