nidaqmx.system
- class nidaqmx.system.system.System(grpc_options=None)[source]
Bases:
object
Represents a DAQmx system.
Contains static properties that access tasks, scales, and global channels stored in Measurement Automation Explorer (MAX), performs immediate operations on DAQ hardware, and creates classes from which you can get information about the hardware.
- class DriverVersion(major_version, minor_version, update_version)
Bases:
tuple
- major_version
Alias for field number 0
- minor_version
Alias for field number 1
- update_version
Alias for field number 2
- add_cdaq_sync_connection(ports_to_connect)[source]
Adds a cDAQ Sync connection between devices. The connection is not verified.
- Parameters:
ports_to_connect (nidaqmx.types.CDAQSyncConnection) – Specifies the cDAQ Sync ports to connect.
- are_configured_cdaq_sync_ports_disconnected(chassis_devices_ports='', timeout=-1.0)[source]
Verifies configured cDAQ Sync connections between devices. Failures generally indicate a wiring issue or that a device has been powered off or removed. Stop all NI-DAQmx tasks running on the devices prior to running this function because any running tasks cause the verification process to fail.
- Parameters:
chassis_devices_ports (Optional[str]) – Specifies the names of the CompactDAQ chassis, C Series modules, or cDAQ Sync ports in comma separated form to search. If no names are specified, all cDAQ Sync ports on connected, non-simulated devices are scanned.
timeout (Optional[float]) – Specifies the time in seconds to wait for the device to respond before timing out.
- Returns:
Returns the port-to-port connections that failed verification.
- Return type:
- auto_configure_cdaq_sync_connections(chassis_devices_ports='', timeout=-1.0)[source]
Detects and configures cDAQ Sync connections between devices. Stop all NI-DAQmx tasks running on the devices prior to running this function because any running tasks cause auto-configuration to fail.
- Parameters:
chassis_devices_ports (Optional[str]) – Specifies the names of the CompactDAQ chassis, C Series modules, or cDAQ Sync ports in comma separated form to search. If no names are specified, all cDAQ Sync ports on connected, non-simulated devices are scanned.
timeout (Optional[float]) – Specifies the time in seconds to wait for the device to respond before timing out. If a timeout occurs, no configuration is changed.
- Returns:
Returns the configured port-to-port connections.
- Return type:
- connect_terms(source_terminal, destination_terminal, signal_modifiers=SignalModifiers.DO_NOT_INVERT_POLARITY)[source]
Creates a route between a source and destination terminal. The route can carry a variety of digital signals, such as triggers, clocks, and hardware events.
- Parameters:
source_terminal (str) – Specifies the originating terminal of the route. A DAQmx terminal constant lists all terminals available on devices installed in the system. You also can specify a source terminal by specifying a string that contains a terminal name.
destination_terminal (str) – Specifies the receiving terminal of the route. A DAQmx terminal constant provides a list of all terminals available on devices installed in the system. You also can specify a destination terminal by specifying a string that contains a terminal name.
signal_modifiers (Optional[nidaqmx.constants.SignalModifiers]) – Specifies whether to invert the signal this function routes from the source terminal to the destination terminal.
- property devices
Indicates the collection of devices for this DAQmx system.
- Type:
nidaqmx.system._collections.DeviceCollection
- disconnect_terms(source_terminal, destination_terminal)[source]
Removes signal routes you created by using the DAQmx Connect Terminals function. The DAQmx Disconnect Terminals function cannot remove task-based routes, such as those you create through timing and triggering configuration.
- Parameters:
source_terminal (str) – Specifies the originating terminal of the route. A DAQmx terminal constant lists all terminals available on devices installed in the system. You also can specify a source terminal by specifying a string that contains a terminal name.
destination_terminal (str) – Specifies the receiving terminal of the route. A DAQmx terminal constant provides a list of all terminals available on devices installed in the system. You also can specify a destination terminal by specifying a string that contains a terminal name.
- property driver_version
Indicates the major, minor and update portions of the installed version of NI-DAQmx.
major_version (int): Indicates the major portion of the installed version of NI-DAQmx, such as 7 for version 7.0.
minor_version (int): Indicates the minor portion of the installed version of NI-DAQmx, such as 0 for version 7.0.
update_version (int): Indicates the update portion of the installed version of NI-DAQmx, such as 1 for version 9.0.1.
- Type:
collections.namedtuple
- get_analog_power_up_states(device_name)[source]
Gets the power up states for analog physical channels.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
- Returns:
Contains the physical channels and power up states set. Each element of the list contains a physical channel and the power up state set for that physical channel.
physical_channel (str): Specifies the physical channel that was modified.
power_up_state (float): Specifies the power up state set for the physical channel specified with the physical_channel input.
channel_type (
nidaqmx.constants.AOPowerUpOutputBehavior
): Specifies the output type for the physical channel specified with the physical_channel input.
- Return type:
power_up_states (List[nidaqmx.types.AOPowerUpState])
Deprecated since version 0.8.0: Use get_analog_power_up_states_with_output_type instead.
- get_analog_power_up_states_with_output_type(physical_channels)[source]
Gets the power up states for analog physical channels.
- Parameters:
physical_channels (List[str]) – Indicates the physical channels that were modified.
- Returns:
Contains the physical channels and power up states set. Each element of the list contains a physical channel and the power up state set for that physical channel.
physical_channel (str): Specifies the physical channel that was modified.
power_up_state (float): Specifies the power up state set for the physical channel specified with the physical_channel input.
channel_type (
nidaqmx.constants.AOPowerUpOutputBehavior
): Specifies the output type for the physical channel specified with the physical_channel input.
- Return type:
power_up_states (List[nidaqmx.types.AOPowerUpState])
- get_digital_logic_family_power_up_state(device_name)[source]
Gets the digital logic family for a device.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
- Returns:
Specifies the logic family to set the device to when it powers up. A logic family corresponds to voltage thresholds that are compatible with a group of voltage standards. Refer to device documentation for information on the logic high and logic low voltages for these logic families.
- Return type:
- get_digital_power_up_states(device_name)[source]
Gets the power up states for digital physical lines.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
- Returns:
Contains the physical channels and power up states set. Each element of the list contains a physical channel and the power up state set for that physical channel.
physical_channel (str): Indicates the physical channel that was modified.
power_up_state (
nidaqmx.constants.PowerUpStates
): Indicates the power up state set for the physical channel specified with the physical_channel output.
- Return type:
- get_digital_pull_up_pull_down_states(device_name)[source]
Gets the resistor level for lines when they are in tristate logic.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
- Returns:
Contains the physical channels and power up states set. Each element of the list contains a physical channel and the power up state set for that physical channel.
physical_channel (str): Indicates the physical channel that was modified.
power_up_state (
nidaqmx.constants.ResistorState
): Indicates the power up state set for the physical channel specified with the physical_channel output.
- Return type:
- property global_channels
Indicates the collection of global channels for this DAQmx system.
- Type:
nidaqmx.system._collections.PersistedChannelCollection
- static remote(grpc_options)[source]
nidaqmx.system.system.System: Represents the remote DAQmx system.
- Parameters:
grpc_options (
GrpcSessionOptions
) – Specifies the gRPC session options.
- remove_cdaq_sync_connection(ports_to_disconnect)[source]
Removes a cDAQ Sync connection between devices. The connection is not verified.
- Parameters:
ports_to_disconnect (nidaqmx.types.CDAQSyncConnection) – Specifies the cDAQ Sync ports to disconnect.
- property scales
Indicates the collection of custom scales for this DAQmx system.
- Type:
nidaqmx.system._collections.PersistedScaleCollection
- set_analog_power_up_states(device_name, power_up_states)[source]
Updates power up states for analog physical channels.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
power_up_states (List[nidaqmx.types.AOPowerUpState]) –
Contains the physical channels and power up states to set. Each element of the list contains a physical channel and the power up state to set for that physical channel.
physical_channel (str): Specifies the physical channel to modify.
power_up_state (float): Specifies the power up state to set for the physical channel specified with the physical_channel input.
channel_type (
nidaqmx.constants.AOPowerUpOutputBehavior
): Specifies the output type for the physical channel specified with the physical_channel input.
Deprecated since version 0.8.0: Use set_analog_power_up_states_with_output_type instead.
- set_analog_power_up_states_with_output_type(power_up_states)[source]
Updates power up states for analog physical channels.
- Parameters:
power_up_states (List[nidaqmx.types.AOPowerUpState]) –
Contains the physical channels and power up states to set. Each element of the list contains a physical channel and the power up state to set for that physical channel.
physical_channel (str): Specifies the physical channel to modify.
power_up_state (float): Specifies the power up state to set for the physical channel specified with the physical_channel input.
channel_type (
nidaqmx.constants.AOPowerUpOutputBehavior
): Specifies the output type for the physical channel specified with the physical_channel input.
- set_digital_logic_family_power_up_state(device_name, logic_family)[source]
Sets the digital logic family to use when the device powers up.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
logic_family (nidaqmx.constants.LogicFamily) – Specifies the logic family set to the device to when it powers up. A logic family corresponds to voltage thresholds that are compatible with a group of voltage standards. Refer to device documentation for information on the logic high and logic low voltages for these logic families.
- set_digital_power_up_states(device_name, power_up_states)[source]
Updates power up states for digital physical channels.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
power_up_states (List[nidaqmx.types.DOPowerUpState]) –
Contains the physical channels and power up states to set. Each element of the list contains a physical channel and the power up state to set for that physical channel.
physical_channel (str): Specifies the digital line or port to modify. You cannot modify dedicated digital input lines.
power_up_state (
nidaqmx.constants.PowerUpStates
): Specifies the power up state to set for the physical channel specified with the physical_channel input.
- set_digital_pull_up_pull_down_states(device_name, power_up_states)[source]
Sets the resistor level to pull up or pull down for lines when they are in tristate logic.
- Parameters:
device_name (str) – Specifies the name as configured in MAX of the device to which this operation applies.
power_up_states (List[nidaqmx.types.DOResistorPowerUpState]) –
Contains the physical channels and power up states to set. Each element of the list contains a physical channel and the power up state to set for that physical channel.
physical_channel (str): Specifies the digital line or port to modify. You cannot modify dedicated digital input lines.
power_up_state (
nidaqmx.constants.ResistorState
): Specifies the power up state to set for the physical channel specified with the physical_channel input.
- property tasks
Indicates the collection of saved tasks for this DAQmx system.
- Type:
nidaqmx.system._collections.PersistedTaskCollection
- tristate_output_term(output_terminal)[source]
Sets a terminal to high-impedance state. If you connect an external signal to a terminal on the I/O connector, the terminal must be in high-impedance state. Otherwise, the device could double-drive the terminal and damage the hardware. If you use this function on a terminal in an active route, the function fails and returns an error.
- Parameters:
output_terminal (str) – Specifies the terminal on the I/O connector to set to high-impedance state. A DAQmx terminal constant lists all available terminals on installed devices. You also can specify an output terminal by using a string that contains a terminal name.
- nidaqmx.system.collections
- nidaqmx.system.device_collection
- nidaqmx.system.persisted_channel_collection
- nidaqmx.system.persisted_scale_collection
- nidaqmx.system.persisted_task_collection
- nidaqmx.system.physical_channel_collection
- nidaqmx.system.device
Device
Device.__eq__()
Device.__hash__()
Device.__init__()
Device.__ne__()
Device.__repr__()
Device.accessory_product_nums
Device.accessory_product_types
Device.accessory_serial_nums
Device.add_network_device()
Device.ai_bridge_rngs
Device.ai_charge_rngs
Device.ai_couplings
Device.ai_current_int_excit_discrete_vals
Device.ai_current_rngs
Device.ai_dig_fltr_lowpass_cutoff_freq_discrete_vals
Device.ai_dig_fltr_lowpass_cutoff_freq_range_vals
Device.ai_dig_fltr_types
Device.ai_freq_rngs
Device.ai_gains
Device.ai_lowpass_cutoff_freq_discrete_vals
Device.ai_lowpass_cutoff_freq_range_vals
Device.ai_max_multi_chan_rate
Device.ai_max_single_chan_rate
Device.ai_meas_types
Device.ai_min_rate
Device.ai_num_samp_timing_engines
Device.ai_num_sync_pulse_srcs
Device.ai_physical_chans
Device.ai_resistance_rngs
Device.ai_samp_modes
Device.ai_simultaneous_sampling_supported
Device.ai_trig_usage
Device.ai_voltage_int_excit_discrete_vals
Device.ai_voltage_int_excit_range_vals
Device.ai_voltage_rngs
Device.anlg_trig_supported
Device.ao_current_rngs
Device.ao_gains
Device.ao_max_rate
Device.ao_min_rate
Device.ao_num_samp_timing_engines
Device.ao_num_sync_pulse_srcs
Device.ao_output_types
Device.ao_physical_chans
Device.ao_samp_clk_supported
Device.ao_samp_modes
Device.ao_trig_usage
Device.ao_voltage_rngs
Device.bus_type
Device.cal_acc_connection_count
Device.cal_dev_temp
Device.cal_recommended_acc_connection_count_limit
Device.cal_user_defined_info
Device.cal_user_defined_info_max_size
Device.carrier_serial_num
Device.chassis_module_devices
Device.ci_max_size
Device.ci_max_timebase
Device.ci_meas_types
Device.ci_physical_chans
Device.ci_samp_clk_supported
Device.ci_samp_modes
Device.ci_trig_usage
Device.co_max_size
Device.co_max_timebase
Device.co_output_types
Device.co_physical_chans
Device.co_samp_clk_supported
Device.co_samp_modes
Device.co_trig_usage
Device.compact_daq_chassis_device
Device.compact_daq_slot_num
Device.compact_rio_chassis_device
Device.compact_rio_slot_num
Device.delete_network_device()
Device.dev_is_simulated
Device.dev_serial_num
Device.device_supports_cal
Device.di_lines
Device.di_max_rate
Device.di_num_samp_timing_engines
Device.di_ports
Device.di_trig_usage
Device.dig_trig_supported
Device.do_lines
Device.do_max_rate
Device.do_num_samp_timing_engines
Device.do_ports
Device.do_trig_usage
Device.ext_cal_last_date_and_time
Device.ext_cal_last_temp
Device.ext_cal_recommended_interval
Device.field_daq_bank_devices
Device.field_daq_device
Device.hwteds_supported
Device.is_simulated
Device.name
Device.num_dma_chans
Device.num_time_trigs
Device.num_timestamp_engines
Device.pci_bus_num
Device.pci_dev_num
Device.product_category
Device.product_num
Device.product_type
Device.pxi_chassis_num
Device.pxi_slot_num
Device.reserve_network_device()
Device.reset_device()
Device.restore_last_ext_cal_const()
Device.self_cal()
Device.self_cal_last_date_and_time
Device.self_cal_last_temp
Device.self_cal_supported
Device.self_test_device()
Device.serial_num
Device.tcpip_ethernet_ip
Device.tcpip_hostname
Device.tcpip_wireless_ip
Device.tedshwteds_supported
Device.terminals
Device.time_trig_supported
Device.unreserve_network_device()
- nidaqmx.system.physical_channel
PhysicalChannel
PhysicalChannel.__eq__()
PhysicalChannel.__hash__()
PhysicalChannel.__init__()
PhysicalChannel.__ne__()
PhysicalChannel.__repr__()
PhysicalChannel.ai_input_srcs
PhysicalChannel.ai_meas_types
PhysicalChannel.ai_power_control_enable
PhysicalChannel.ai_power_control_type
PhysicalChannel.ai_power_control_voltage
PhysicalChannel.ai_sensor_power_open_chan
PhysicalChannel.ai_sensor_power_overcurrent
PhysicalChannel.ai_sensor_power_types
PhysicalChannel.ai_sensor_power_voltage_range_vals
PhysicalChannel.ai_term_cfgs
PhysicalChannel.ao_manual_control_amplitude
PhysicalChannel.ao_manual_control_enable
PhysicalChannel.ao_manual_control_freq
PhysicalChannel.ao_manual_control_short_detected
PhysicalChannel.ao_output_types
PhysicalChannel.ao_power_amp_channel_enable
PhysicalChannel.ao_power_amp_gain
PhysicalChannel.ao_power_amp_offset
PhysicalChannel.ao_power_amp_overcurrent
PhysicalChannel.ao_power_amp_scaling_coeff
PhysicalChannel.ao_supported_power_up_output_types
PhysicalChannel.ao_term_cfgs
PhysicalChannel.ci_meas_types
PhysicalChannel.clear_teds()
PhysicalChannel.co_output_types
PhysicalChannel.configure_teds()
PhysicalChannel.di_change_detect_supported
PhysicalChannel.di_port_width
PhysicalChannel.di_samp_clk_supported
PhysicalChannel.di_samp_modes
PhysicalChannel.dig_port_logic_family
PhysicalChannel.do_port_width
PhysicalChannel.do_samp_clk_supported
PhysicalChannel.do_samp_modes
PhysicalChannel.name
PhysicalChannel.teds_bit_stream
PhysicalChannel.teds_mfg_id
PhysicalChannel.teds_model_num
PhysicalChannel.teds_serial_num
PhysicalChannel.teds_template_ids
PhysicalChannel.teds_version_letter
PhysicalChannel.teds_version_num
PhysicalChannel.write_to_teds_from_array()
PhysicalChannel.write_to_teds_from_file()
- nidaqmx.system.storage
- nidaqmx.system.watchdog
WatchdogTask
WatchdogTask.__init__()
WatchdogTask.cfg_watchdog_ao_expir_states()
WatchdogTask.cfg_watchdog_co_expir_states()
WatchdogTask.cfg_watchdog_do_expir_states()
WatchdogTask.clear_expiration()
WatchdogTask.close()
WatchdogTask.control()
WatchdogTask.expir_trig_dig_edge_edge
WatchdogTask.expir_trig_dig_edge_src
WatchdogTask.expir_trig_trig_on_network_conn_loss
WatchdogTask.expir_trig_trig_type
WatchdogTask.expiration_states
WatchdogTask.expired
WatchdogTask.name
WatchdogTask.reset_timer()
WatchdogTask.start()
WatchdogTask.stop()
WatchdogTask.timeout
- nidaqmx.system.expiration_state
- nidaqmx.system.expiration_states_collection