nidaqmx.system.physical_channel

class nidaqmx.system.physical_channel.PhysicalChannel(name, *, grpc_options=None)[source]

Bases: object

Represents a DAQmx physical channel.

__eq__(other)[source]

Return self==value.

__hash__()[source]

Return hash(self).

__init__(name, *, grpc_options=None)[source]
Parameters
  • name (str) – Specifies the name of the physical channel.

  • grpc_options (Optional[GrpcSessionOptions]) – Specifies the gRPC session options.

__ne__(other)[source]

Return self!=value.

__repr__()[source]

Return repr(self).

property ai_input_srcs

Indicates the list of input sources supported by the channel. Channels may support using the signal from the I/O connector or one of several calibration signals.

Type

List[str]

property ai_meas_types

Indicates the measurement types supported by the channel.

Type

List[nidaqmx.constants.UsageTypeAI]

property ai_power_control_enable

Specifies whether to turn on the sensor’s power supply.

Type

bool

property ai_power_control_type

Specifies the type of power supplied to the sensor.

Type

nidaqmx.constants.SensorPowerType

property ai_power_control_voltage

Specifies the voltage level for the sensor’s power supply.

Type

float

property ai_sensor_power_open_chan

Indicates whether there is an open channel or undercurrent condition on the channel.

Type

bool

property ai_sensor_power_overcurrent

Indicates whether there is an overcurrent condition on the channel.

Type

bool

property ai_sensor_power_types

Indicates the types of power supplied to the sensor supported by this channel.

Type

List[nidaqmx.constants.SensorPowerType]

property ai_sensor_power_voltage_range_vals

Indicates pairs of sensor power voltage ranges supported by this channel. Each pair consists of the low value followed by the high value.

Type

List[float]

property ai_term_cfgs

List[nidaqmx.constants.TerminalConfiguration]: Indicates the list of terminal configurations supported by the channel.

property ao_manual_control_amplitude

Indicates the current value of the front panel amplitude control for the physical channel in volts.

Type

float

property ao_manual_control_enable

Specifies if you can control the physical channel externally via a manual control located on the device. You cannot simultaneously control a channel manually and with NI-DAQmx.

Type

bool

property ao_manual_control_freq

Indicates the current value of the front panel frequency control for the physical channel in hertz.

Type

float

property ao_manual_control_short_detected

Indicates whether the physical channel is currently disabled due to a short detected on the channel.

Type

bool

property ao_output_types

Indicates the output types supported by the channel.

Type

List[nidaqmx.constants.UsageTypeAO]

property ao_power_amp_channel_enable

Specifies whether to enable or disable a channel for amplification. This property can also be used to check if a channel is enabled.

Type

bool

property ao_power_amp_gain

Indicates the calibrated gain of the channel.

Type

float

property ao_power_amp_offset

Indicates the calibrated offset of the channel in volts.

Type

float

property ao_power_amp_overcurrent

Indicates if the channel detected an overcurrent condition.

Type

bool

property ao_power_amp_scaling_coeff

Indicates the coefficients of a polynomial equation used to scale from pre-amplified values.

Type

List[float]

property ao_supported_power_up_output_types

List[nidaqmx.constants.AOPowerUpOutputBehavior]: Indicates the power up output types supported by the channel.

property ao_term_cfgs

List[nidaqmx.constants.TerminalConfiguration]: Indicates the list of terminal configurations supported by the channel.

property ci_meas_types

Indicates the measurement types supported by the channel.

Type

List[nidaqmx.constants.UsageTypeCI]

clear_teds()[source]

Removes TEDS information from the physical channel you specify. This function temporarily overrides any TEDS configuration for the physical channel that you performed in MAX.

property co_output_types

Indicates the output types supported by the channel.

Type

List[nidaqmx.constants.UsageTypeCO]

configure_teds(file_path='')[source]

Associates TEDS information with the physical channel you specify. If you do not specify the filename of a data sheet in the file_path input, this function attempts to find a TEDS sensor connected to the physical channel. This function temporarily overrides any TEDS configuration for the physical channel that you performed in MAX.

Parameters

file_path (Optional[str]) – Is the path to a Virtual TEDS data sheet that you want to associate with the physical channel. If you do not specify anything for this input, this function attempts to find a TEDS sensor connected to the physical channel.

property di_change_detect_supported

Indicates if the change detection timing type is supported for the digital input physical channel.

Type

bool

property di_port_width

Indicates in bits the width of digital input port.

Type

int

property di_samp_clk_supported

Indicates if the sample clock timing type is supported for the digital input physical channel.

Type

bool

property di_samp_modes

Indicates the sample modes supported by devices that support sample clocked digital input.

Type

List[nidaqmx.constants.AcquisitionType]

property do_port_width

Indicates in bits the width of digital output port.

Type

int

property do_samp_clk_supported

Indicates if the sample clock timing type is supported for the digital output physical channel.

Type

bool

property do_samp_modes

Indicates the sample modes supported by devices that support sample clocked digital output.

Type

List[nidaqmx.constants.AcquisitionType]

property name

Specifies the name of this physical channel.

Type

str

property teds_bit_stream

Indicates the TEDS binary bitstream without checksums.

Type

List[int]

property teds_mfg_id

Indicates the manufacturer ID of the sensor.

Type

int

property teds_model_num

Indicates the model number of the sensor.

Type

int

property teds_serial_num

Indicates the serial number of the sensor.

Type

int

property teds_template_ids

Indicates the IDs of the templates in the bitstream in teds_bit_stream.

Type

List[int]

property teds_version_letter

Indicates the version letter of the sensor.

Type

str

property teds_version_num

Indicates the version number of the sensor.

Type

int

write_to_teds_from_array(bit_stream=None, basic_teds_options=WriteBasicTEDSOptions.DO_NOT_WRITE)[source]

Writes data from a 1D list of 8-bit unsigned integers to the TEDS sensor.

Parameters
  • bit_stream (Optional[List[int]]) – Is the TEDS bitstream to write to the sensor. This bitstream must be constructed according to the IEEE 1451.4 specification.

  • basic_teds_options (Optional[nidaqmx.constants.WriteBasicTEDSOptions]) – Specifies how to handle basic TEDS data in the bitstream.

write_to_teds_from_file(file_path='', basic_teds_options=WriteBasicTEDSOptions.DO_NOT_WRITE)[source]

Writes data from a virtual TEDS file to the TEDS sensor.

Parameters
  • file_path (Optional[str]) – Specifies the filename of a virtual TEDS file that contains the bitstream to write.

  • basic_teds_options (Optional[nidaqmx.constants.WriteBasicTEDSOptions]) – Specifies how to handle basic TEDS data in the bitstream.