Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
You can specify a subset of repeated capabilities using the Python index notation on an
is_source_channel.Session instance, and calling set/get value on the result.:
session['0,1'].is_source_channel = var
var = session['0,1'].is_source_channel
'''
is_waiting_for_trig = attributes.AttributeViBoolean(1150004)
'''
In a scan list, a semi-colon (;) is used to indicate that at that point in the scan list, the scan engine should pause until a trigger is received from the trigger input. If that trigger is user generated through either a hardware pulse or the Send SW Trigger operation, it is necessary for the user to know when the scan engine has reached such a state.
'''
logical_name = attributes.AttributeViString(1050305)
'''
A string containing the logical name you specified when opening the current IVI session.
You may pass a logical name to the niSwitch_init or niSwitch_InitWithOptions functions. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options.
'''
master_slave_scan_advanced_bus = attributes.AttributeViInt32(1150007)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteScanAdvancedOutput function instead.
'''
master_slave_trigger_bus = attributes.AttributeViInt32(1150006)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteTriggerInput function instead.
'''
max_ac_voltage = attributes.AttributeViReal64(1250007)
'''
This channel-based attribute returns the maximum AC voltage the channel can switch.
The units are volts RMS.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
max_ac_voltage.Session object, then the set/get will use all repeated capabilities in the session.
You can specify a subset of repeated capabilities using the Python index notation on an
You can specify a subset of repeated capabilities using the Python index notation on an
settling_time.Session instance, and calling set/get value on the result.:
session['0,1'].settling_time = var
var = session['0,1'].settling_time
'''
simulate = attributes.AttributeViBoolean(1050005)
'''
Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver functions perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute functions, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver functions return calculated values.
The default value is VI_FALSE. Use the niSwitch_InitWithOptions function to override this value.
'''
specific_driver_class_spec_major_version = attributes.AttributeViInt32(1050515)
'''
The major version number of the IviSwtch class specification.
'''
specific_driver_class_spec_minor_version = attributes.AttributeViInt32(1050516)
'''
The minor version number of the class specification with which this driver is compliant.
'''
specific_driver_description = attributes.AttributeViString(1050514)
'''
A string that contains a brief description of the specific driver.
'''
specific_driver_revision = attributes.AttributeViString(1050551)
'''
A string that contains additional version information about this instrument driver.
'''
specific_driver_vendor = attributes.AttributeViString(1050513)
'''
A string that contains the name of the vendor that supplies this driver.
'''
supported_instrument_models = attributes.AttributeViString(1050327)
'''
Contains a comma-separated list of supported instrument models.
'''
temperature = attributes.AttributeViReal64(1150019)
'''
This attribute returns the temperature as read by the Switch module. The units are degrees Celsius.
'''
trigger_input = attributes.AttributeEnum(attributes.AttributeViInt32, enums.TriggerInput, 1250022)
'''
This attribute specifies the source of the trigger for which the switch device can wait when processing a scan list. The switch device waits for a trigger when it encounters a semi-colon in a scan list. When the trigger occurs, the switch device advances to the next entry in the scan list.
'''
trigger_input_polarity = attributes.AttributeEnum(attributes.AttributeViInt32, enums.TriggerInputPolarity, 1150010)
'''
Determines the behavior of the trigger Input.
'''
trigger_mode = attributes.AttributeViInt32(1150005)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteTriggerInput and/or niSwitch_RouteScanAdvancedOutput functions instead.
'''
wire_mode = attributes.AttributeViInt32(1250017)
'''
This attribute returns the wire mode of the switch device.
This attribute affects the values of the NISWITCH_ATTR_NUM_OF_ROWS and NISWITCH_ATTR_NUM_OF_COLUMNS attributes. The actual number of input and output lines on the switch device is fixed, but the number of channels depends on how many lines constitute each channel.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
wire_mode.Session object, then the set/get will use all repeated capabilities in the session.
You can specify a subset of repeated capabilities using the Python index notation on an
wire_mode.Session instance, and calling set/get value on the result.:
session['0,1'].wire_mode = var
var = session['0,1'].wire_mode
'''
bandwidth = attributes.AttributeViReal64(1250005)
'''
This channel-based attribute returns the bandwidth for the channel.
The units are hertz.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
bandwidth.Session object, then the set/get will use all repeated capabilities in the session.
You can specify a subset of repeated capabilities using the Python index notation on an
bandwidth.Session instance, and calling set/get value on the result.:
session['0,1'].bandwidth = var
var = session['0,1'].bandwidth
'''
cabled_module_scan_advanced_bus = attributes.AttributeViInt32(1150009)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteScanAdvancedOutput function instead.
'''
cabled_module_trigger_bus = attributes.AttributeViInt32(1150008)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteTriggerInput function instead.
'''
cache = attributes.AttributeViBoolean(1050004)
'''
Specifies whether to cache the value of attributes. When caching is enabled, the instrument driver keeps track of the current instrument settings and avoids sending redundant commands to the instrument.
The instrument driver can choose always to cache or never to cache particular attributes regardless of the setting of this attribute.
The default value is VI_TRUE. Use the niSwitch_InitWithOptions function to override this value.
'''
channel_count = attributes.AttributeViInt32(1050203)
'''
Indicates the number of channels that the specific instrument driver supports.
'''
This attribute returns the temperature as read by the Switch module. The units are degrees Celsius.
'''
trigger_input = attributes.AttributeEnum(attributes.AttributeViInt32, enums.TriggerInput, 1250022)
'''
This attribute specifies the source of the trigger for which the switch device can wait when processing a scan list. The switch device waits for a trigger when it encounters a semi-colon in a scan list. When the trigger occurs, the switch device advances to the next entry in the scan list.
'''
trigger_input_polarity = attributes.AttributeEnum(attributes.AttributeViInt32, enums.TriggerInputPolarity, 1150010)
'''
Determines the behavior of the trigger Input.
'''
trigger_mode = attributes.AttributeViInt32(1150005)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteTriggerInput and/or niSwitch_RouteScanAdvancedOutput functions instead.
'''
wire_mode = attributes.AttributeViInt32(1250017)
'''
This attribute returns the wire mode of the switch device.
This attribute affects the values of the NISWITCH_ATTR_NUM_OF_ROWS and NISWITCH_ATTR_NUM_OF_COLUMNS attributes. The actual number of input and output lines on the switch device is fixed, but the number of channels depends on how many lines constitute each channel.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
wire_mode.Session object, then the set/get will use all repeated capabilities in the session.
You can specify a subset of repeated capabilities using the Python index notation on an
wire_mode.Session instance, and calling set/get value on the result.:
session['0,1'].wire_mode = var
var = session['0,1'].wire_mode
'''
def __init__(self, repeated_capability):
self._library = library_singleton.get()
'''
cabled_module_scan_advanced_bus = attributes.AttributeViInt32(1150009)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteScanAdvancedOutput function instead.
'''
cabled_module_trigger_bus = attributes.AttributeViInt32(1150008)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH. Use the niSwitch_RouteTriggerInput function instead.
'''
cache = attributes.AttributeViBoolean(1050004)
'''
Specifies whether to cache the value of attributes. When caching is enabled, the instrument driver keeps track of the current instrument settings and avoids sending redundant commands to the instrument.
The instrument driver can choose always to cache or never to cache particular attributes regardless of the setting of this attribute.
The default value is VI_TRUE. Use the niSwitch_InitWithOptions function to override this value.
'''
channel_count = attributes.AttributeViInt32(1050203)
'''
Indicates the number of channels that the specific instrument driver supports.
'''
characteristic_impedance = attributes.AttributeViReal64(1250016)
'''
This channel-based attribute returns the characteristic impedance for the channel.
The units are ohms.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
characteristic_impedance.Session object, then the set/get will use all repeated capabilities in the session.
You can specify a subset of repeated capabilities using the Python index notation on an
characteristic_impedance.Session instance, and calling set/get value on the result.:
session['0,1'].characteristic_impedance = var
var = session['0,1'].characteristic_impedance
You can specify a subset of repeated capabilities using the Python index notation on an
max_switching_dc_power.Session instance, and calling set/get value on the result.:
session['0,1'].max_switching_dc_power = var
var = session['0,1'].max_switching_dc_power
'''
number_of_relays = attributes.AttributeViInt32(1150014)
'''
This attribute returns the number of relays.
'''
num_of_columns = attributes.AttributeViInt32(1250019)
'''
This attribute returns the number of channels on the column of a matrix or scanner. If the switch device is a scanner, this value is the number of input channels.
The NISWITCH_ATTR_WIRE_MODE attribute affects the number of available columns. For example, if your device has 8 input lines and you use the four-wire mode, then the number of columns you have available is 2.
'''
num_of_rows = attributes.AttributeViInt32(1250018)
'''
This attribute returns the number of channels on the row of a matrix or scanner. If the switch device is a scanner, this value is the number of output channels.
The NISWITCH_ATTR_WIRE_MODE attribute affects the number of available rows. For example, if your device has 8 input lines and you use the two-wire mode, then the number of columns you have available is 4.
'''
parsed_scan_list = attributes.AttributeViString(1150012)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH.
'''
power_down_latching_relays_after_debounce = attributes.AttributeViBoolean(1150017)
'''
This property specifies whether to power down latching relays after calling Wait For Debounce.
When Power Down Latching Relays After Debounce is enabled (VI_TRUE), a call to Wait For Debounce ensures that the relays are settled and the latching relays are powered down.
'''
range_check = attributes.AttributeViBoolean(1050002)
'''
Specifies whether to validate attribute values and function parameters. If enabled, the instrument driver validates the parameter values that you pass to driver functions. Range checking parameters is very useful for debugging. After you validate your program, you can set this attribute to VI_FALSE to disable range checking and maximize performance.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
settling_time.Session object, then the set/get will use all repeated capabilities in the session.
You can specify a subset of repeated capabilities using the Python index notation on an
settling_time.Session instance, and calling set/get value on the result.:
session['0,1'].settling_time = var
var = session['0,1'].settling_time
'''
simulate = attributes.AttributeViBoolean(1050005)
'''
Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver functions perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute functions, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver functions return calculated values.
The default value is VI_FALSE. Use the niSwitch_InitWithOptions function to override this value.
'''
specific_driver_class_spec_major_version = attributes.AttributeViInt32(1050515)
'''
The major version number of the IviSwtch class specification.
'''
specific_driver_class_spec_minor_version = attributes.AttributeViInt32(1050516)
'''
The minor version number of the class specification with which this driver is compliant.
'''
specific_driver_description = attributes.AttributeViString(1050514)
'''
A string that contains a brief description of the specific driver.
'''
specific_driver_revision = attributes.AttributeViString(1050551)
'''
A string that contains additional version information about this instrument driver.
'''
specific_driver_vendor = attributes.AttributeViString(1050513)
'''
max_switching_dc_power = attributes.AttributeViReal64(1250012)
'''
This channel-based attribute returns the maximum DC power the channel can switch.
The units are watts.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
max_switching_dc_power.Session object, then the set/get will use all repeated capabilities in the session.
You can specify a subset of repeated capabilities using the Python index notation on an
max_switching_dc_power.Session instance, and calling set/get value on the result.:
session['0,1'].max_switching_dc_power = var
var = session['0,1'].max_switching_dc_power
'''
number_of_relays = attributes.AttributeViInt32(1150014)
'''
This attribute returns the number of relays.
'''
num_of_columns = attributes.AttributeViInt32(1250019)
'''
This attribute returns the number of channels on the column of a matrix or scanner. If the switch device is a scanner, this value is the number of input channels.
The NISWITCH_ATTR_WIRE_MODE attribute affects the number of available columns. For example, if your device has 8 input lines and you use the four-wire mode, then the number of columns you have available is 2.
'''
num_of_rows = attributes.AttributeViInt32(1250018)
'''
This attribute returns the number of channels on the row of a matrix or scanner. If the switch device is a scanner, this value is the number of output channels.
The NISWITCH_ATTR_WIRE_MODE attribute affects the number of available rows. For example, if your device has 8 input lines and you use the two-wire mode, then the number of columns you have available is 4.
'''
parsed_scan_list = attributes.AttributeViString(1150012)
'''
This attribute has been deprecated and may be removed from a future release of NI-SWITCH.