Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
characteristic_impedance.Session instance, and calling set/get value on the result.:
session['0,1'].characteristic_impedance = var
var = session['0,1'].characteristic_impedance
'''
continuous_scan = attributes.AttributeViBoolean(1150002)
'''
When a switch device is scanning, the swich can either stop scanning when the end of the scan (VI_FALSE) or continue scanning from the top of the scan list again (VI_TRUE).
Notice that if you set the scan to continuous (VI_TRUE), the Wait For Scan Complete operation will always time out and you must call Abort to stop the scan.
'''
digital_filter_enable = attributes.AttributeViBoolean(1150016)
'''
This property specifies whether to apply the pulse width filter to the Trigger Input. Enabling the Digital Filter (VI_TRUE) prevents the switch module from being triggered by pulses that are less than 150 ns on PXI trigger lines 0–7.
When Digital Filter is disabled (VI_FALSE), it is possible for the switch module to be triggered by noise on the PXI trigger lines. If the device triggering the switch is capable of sending pulses greater than 150 ns, you should not disable the Digital Filter.
'''
driver_setup = attributes.AttributeViString(1050007)
'''
This attribute indicates the Driver Setup string that the user specified when initializing the driver.
Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niSwitch_InitWithOptions function, or through the IVI Configuration Utility.
If the user does not specify a Driver Setup string, this attribute returns an empty string.
'''
group_capabilities = attributes.AttributeViString(1050401)
'''
A string that contains a comma-separated list of class-extention groups that this driver implements.
'''
handshaking_initiation = attributes.AttributeEnum(attributes.AttributeViInt32, enums.HandshakingInitiation, 1150013)
instrument_firmware_revision = attributes.AttributeViString(1050510)
'''
A string that contains the firmware revision information for the instrument you are currently using.
'''
instrument_manufacturer = attributes.AttributeViString(1050511)
'''
'''
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)
-> (a dash followed by a '>' sign)
Example: 'CH1->CH2' tells the switch to make a path from channel CH1 to channel CH2.
To break or clear a path, use the following character as a prefix before the path:
~ (tilde)
Example: '~CH1->CH2' tells the switch to break the path from channel CH1 to channel CH2.
To tell the switch device to wait for a trigger event, use the following character as a separator between paths:
; (semi-colon)
Example: 'CH1->CH2;CH3->CH4' tells the switch to make the path from channel CH1 to channel CH2, wait for a trigger, and then make the path from CH3 to CH4.
'''
scan_mode = attributes.AttributeEnum(attributes.AttributeViInt32, enums.ScanMode, 1250021)
'''
This attribute specifies what happens to existing connections that conflict with the connections you make in a scan list. For example, if CH1 is already connected to CH2 and the scan list instructs the switch device to connect CH1 to CH3, this attribute specifies what happens to the connection between CH1 and CH2.
If the value of this attribute is NISWITCH_VAL_NONE, the switch device takes no action on existing paths. If the value is NISWITCH_VAL_BREAK_BEFORE_MAKE, the switch device breaks conflicting paths before making new ones. If the value is NISWITCH_VAL_BREAK_AFTER_MAKE, the switch device breaks conflicting paths after making new ones.
Most switch devices support only one of the possible values. In such cases, this attribute serves as an indicator of the device's behavior.
'''
serial_number = attributes.AttributeViString(1150015)
'''
This read-only attribute returns the serial number for the switch device controlled by this instrument driver. If the device does not return a serial number, the driver returns the IVI_ERROR_ATTRIBUTE_NOT_SUPPORTED error.
'''
settling_time = attributes.AttributeViReal64(1250004)
'''
This channel-based attribute returns the maximum length of time from after you make a connection until the signal flowing through the channel settles. The units are seconds.
the greater value of the settling time and the value you specify as the scan delay.
Note: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be
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.:
'''
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)
'''
This property specifies whether to apply the pulse width filter to the Trigger Input. Enabling the Digital Filter (VI_TRUE) prevents the switch module from being triggered by pulses that are less than 150 ns on PXI trigger lines 0–7.
When Digital Filter is disabled (VI_FALSE), it is possible for the switch module to be triggered by noise on the PXI trigger lines. If the device triggering the switch is capable of sending pulses greater than 150 ns, you should not disable the Digital Filter.
'''
driver_setup = attributes.AttributeViString(1050007)
'''
This attribute indicates the Driver Setup string that the user specified when initializing the driver.
Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niSwitch_InitWithOptions function, or through the IVI Configuration Utility.
If the user does not specify a Driver Setup string, this attribute returns an empty string.
'''
group_capabilities = attributes.AttributeViString(1050401)
'''
A string that contains a comma-separated list of class-extention groups that this driver implements.
'''
handshaking_initiation = attributes.AttributeEnum(attributes.AttributeViInt32, enums.HandshakingInitiation, 1150013)
instrument_firmware_revision = attributes.AttributeViString(1050510)
'''
A string that contains the firmware revision information for the instrument you are currently using.
'''
instrument_manufacturer = attributes.AttributeViString(1050511)
'''
A string that contains the name of the instrument manufacturer you are currently using.
'''
instrument_model = attributes.AttributeViString(1050512)
'''
A string that contains the model number or name of the instrument that you are currently using.
'''
interchange_check = attributes.AttributeViBoolean(1050021)
'''
Specifies whether to perform interchangeability checking and retrieve interchangeability warnings when you call niSwitch_Connect, niSwitch_SetPath and niSwitch_InitiateScan functions.
The default value is VI_FALSE.
Interchangeability warnings indicate that using your application with a different instrument might cause different behavior. You call niSwitch_GetNextInterchangeWarning to extract interchange warnings. Call the niSwitch_ClearInterchangeWarnings function to clear the list of interchangeability warnings without reading them.
Specifies whether the IVI engine keeps a list of the value coercions it makes for ViInt32 and ViReal64 attributes. You call niSwitch_GetNextCoercionRecord to extract and delete the oldest coercion record from the list.
The default value is VI_FALSE. Use the niSwitch_InitWithOptions function to override this value.
'''
scan_advanced_output = attributes.AttributeEnum(attributes.AttributeViInt32, enums.ScanAdvancedOutput, 1250023)
'''
This attribute specifies the method you want to use to notify another instrument that all signals going through the switch device have settled following the processing of one entry in the scan list.
'''
scan_advanced_polarity = attributes.AttributeEnum(attributes.AttributeViInt32, enums.ScanAdvancedPolarity, 1150011)
scan_delay = attributes.AttributeViReal64(1250025)
'''
This attribute specifies the minimum amount of time the switch device waits before it asserts the scan advanced output trigger after opening or closing the switch. The switch device always waits for debounce before asserting the trigger. The units are seconds.
the greater value of the settling time and the value you specify as the scan delay.
Note: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be
'''
scan_list = attributes.AttributeViString(1250020)
'''
This attribute contains a scan list, which is a string that specifies channel connections and trigger conditions. The niSwitch_InitiateScan function makes or breaks connections and waits for triggers according to the instructions in the scan list.
The scan list is comprised of channel names that you separate with special characters. These special characters determine the operations the scanner performs on the channels when it executes this scan list.
To create a path between two channels, use the following character between the two channel names:
-> (a dash followed by a '>' sign)
Example: 'CH1->CH2' tells the switch to make a path from channel CH1 to channel CH2.
To break or clear a path, use the following character as a prefix before the path:
~ (tilde)
Example: '~CH1->CH2' tells the switch to break the path from channel CH1 to channel CH2.
To tell the switch device to wait for a trigger event, use the following character as a separator between paths:
; (semi-colon)
Example: 'CH1->CH2;CH3->CH4' tells the switch to make the path from channel CH1 to channel CH2, wait for a trigger, and then make the path from CH3 to CH4.
'''
scan_mode = attributes.AttributeEnum(attributes.AttributeViInt32, enums.ScanMode, 1250021)
'''
This attribute specifies what happens to existing connections that conflict with the connections you make in a scan list. For example, if CH1 is already connected to CH2 and the scan list instructs the switch device to connect CH1 to CH3, this attribute specifies what happens to the connection between CH1 and CH2.
This channel-based attribute specifies whether you want to identify the channel as a source channel. Typically, you set this attribute to VI_TRUE when you attach the channel to a power supply, a function generator, or an active measurement point on the unit under test, and you do not want to connect the channel to another source. The driver prevents source channels from connecting to each other. The niSwitch_Connect function returns the NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES when you attempt to connect two channels that you identify as source channels.
Tip:
This property can use repeated capabilities (usually channels). If set or get directly on the
is_source_channel.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
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.
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)
'''
When a switch device is scanning, the swich can either stop scanning when the end of the scan (VI_FALSE) or continue scanning from the top of the scan list again (VI_TRUE).
Notice that if you set the scan to continuous (VI_TRUE), the Wait For Scan Complete operation will always time out and you must call Abort to stop the scan.
'''
digital_filter_enable = attributes.AttributeViBoolean(1150016)
'''
This property specifies whether to apply the pulse width filter to the Trigger Input. Enabling the Digital Filter (VI_TRUE) prevents the switch module from being triggered by pulses that are less than 150 ns on PXI trigger lines 0–7.
When Digital Filter is disabled (VI_FALSE), it is possible for the switch module to be triggered by noise on the PXI trigger lines. If the device triggering the switch is capable of sending pulses greater than 150 ns, you should not disable the Digital Filter.
'''
driver_setup = attributes.AttributeViString(1050007)
'''
This attribute indicates the Driver Setup string that the user specified when initializing the driver.
Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niSwitch_InitWithOptions function, or through the IVI Configuration Utility.
If the user does not specify a Driver Setup string, this attribute returns an empty string.
'''
group_capabilities = attributes.AttributeViString(1050401)
'''
A string that contains a comma-separated list of class-extention groups that this driver implements.
'''
handshaking_initiation = attributes.AttributeEnum(attributes.AttributeViInt32, enums.HandshakingInitiation, 1150013)
instrument_firmware_revision = attributes.AttributeViString(1050510)
'''
A string that contains the firmware revision information for the instrument you are currently using.
'''
instrument_manufacturer = attributes.AttributeViString(1050511)
'''
A string that contains the name of the instrument manufacturer you are currently using.
'''
instrument_model = attributes.AttributeViString(1050512)
'''
A string that contains the model number or name of the instrument that you are currently using.
'''