Skip to content

NI DAQMX Physical Channel Attributes

Greg Stoll edited this page Sep 10, 2021 · 2 revisions

Physical Channel Attributes

See how to get and set attributes.

Analog Input

DAQmx_PhysicalChan_AI_SupportedMeasTypes

Data Type: int32*
Description: Indicates the measurement types supported by the channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_Voltage 10322 Voltage measurement.
DAQmx_Val_VoltageRMS 10350 Voltage RMS measurement.
DAQmx_Val_Current 10134 Current measurement.
DAQmx_Val_CurrentRMS 10351 Current RMS measurement.
DAQmx_Val_Voltage_CustomWithExcitation 10323 Voltage measurement with an excitation source. You can use this measurement type for custom sensors that require excitation, but you must use a custom scale to scale the measured voltage.
DAQmx_Val_Bridge 15908 Measure voltage ratios from a Wheatstone bridge.
DAQmx_Val_Freq_Voltage 10181 Frequency measurement using a frequency to voltage converter.
DAQmx_Val_Resistance 10278 Resistance measurement.
DAQmx_Val_Temp_TC 10303 Temperature measurement using a thermocouple.
DAQmx_Val_Temp_Thrmstr 10302 Temperature measurement using a thermistor.
DAQmx_Val_Temp_RTD 10301 Temperature measurement using an RTD.
DAQmx_Val_Temp_BuiltInSensor 10311 Temperature measurement using a built-in sensor on a terminal block or device. On SCXI modules, for example, this could be the CJC sensor.
DAQmx_Val_Strain_Gage 10300 Strain measurement.
DAQmx_Val_Rosette_Strain_Gage 15980 Strain measurement using a rosette strain gage.
DAQmx_Val_Position_LVDT 10352 Position measurement using an LVDT.
DAQmx_Val_Position_RVDT 10353 Position measurement using an RVDT.
DAQmx_Val_Position_EddyCurrentProximityProbe 14835 Position measurement using an eddy current proximity probe.
DAQmx_Val_Accelerometer 10356 Acceleration measurement using an accelerometer.
DAQmx_Val_Acceleration_Charge 16104 Acceleration measurement using a charge-based sensor.
DAQmx_Val_Acceleration_4WireDCVoltage 16106 Acceleration measurement using a 4 wire DC voltage based sensor.
DAQmx_Val_Velocity_IEPESensor 15966 Velocity measurement using an IEPE Sensor.
DAQmx_Val_Force_Bridge 15899 Force measurement using a bridge-based sensor.
DAQmx_Val_Force_IEPESensor 15895 Force measurement using an IEPE Sensor.
DAQmx_Val_Pressure_Bridge 15902 Pressure measurement using a bridge-based sensor.
DAQmx_Val_SoundPressure_Microphone 10354 Sound pressure measurement using a microphone.
DAQmx_Val_Torque_Bridge 15905 Torque measurement using a bridge-based sensor.
DAQmx_Val_TEDS_Sensor 12531 Measurement type defined by TEDS.
DAQmx_Val_Charge 16105 Charge measurement.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Input Configuration

DAQmx_PhysicalChan_AI_TermCfgs

Data Type: int32
Description: Indicates the list of terminal configurations supported by the channel.
Restrictions: Not Settable
Valid values
DAQmx_Val_Bit_TermCfg_RSE 1 RSE terminal configuration
DAQmx_Val_Bit_TermCfg_NRSE 2 NRSE terminal configuration
DAQmx_Val_Bit_TermCfg_Diff 4 Differential terminal configuration
DAQmx_Val_Bit_TermCfg_PseudoDIFF 8 Pseudodifferential terminal configuration

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_AI_InputSrcs

Data Type: char*
Description: 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.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Signal Conditioning

Sensor Power

DAQmx_PhysicalChan_AI_SensorPower_Types

Data Type: int32*
Description: Indicates the types of power supplied to the sensor supported by this channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_DC 10050 Sensor power supply generates a single DC voltage level.
DAQmx_Val_AC 10045 Sensor power supply generates an AC voltage.
DAQmx_Val_BipolarDC 16147 Sensor power supply generates a pair of DC voltage levels.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_AI_SensorPower_VoltageRangeVals

Data Type: float64*
Description: Indicates pairs of sensor power voltage ranges supported by this channel. Each pair consists of the low value followed by the high value.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Power Control

DAQmx_PhysicalChan_AI_PowerControl_Voltage

Data Type: float64
Description: Specifies the voltage level for the sensor's power supply.

You can get/set/reset this attribute using:   DAQmxGetPhysicalChanAttribute   DAQmxSetPhysicalChanAttribute   DAQmxResetPhysicalChanAttribute

DAQmx_PhysicalChan_AI_PowerControl_Enable

Data Type: bool32
Description: Specifies whether to turn on the sensor's power supply.

You can get/set/reset this attribute using:   DAQmxGetPhysicalChanAttribute   DAQmxSetPhysicalChanAttribute   DAQmxResetPhysicalChanAttribute

DAQmx_PhysicalChan_AI_PowerControl_Type

Data Type: int32
Description: Specifies the type of power supplied to the sensor.

Valid values

DAQmx_Val_DC 10050 Sensor power supply generates a single DC voltage level.
DAQmx_Val_AC 10045 Sensor power supply generates an AC voltage.
DAQmx_Val_BipolarDC 16147 Sensor power supply generates a pair of DC voltage levels.

You can get/set/reset this attribute using:   DAQmxGetPhysicalChanAttribute   DAQmxSetPhysicalChanAttribute   DAQmxResetPhysicalChanAttribute

Status

DAQmx_PhysicalChan_AI_SensorPower_OpenChan

Data Type: bool32
Description: Indicates whether there is an open channel or undercurrent condition on the channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_AI_SensorPower_Overcurrent

Data Type: bool32
Description: Indicates whether there is an overcurrent condition on the channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Analog Output

DAQmx_PhysicalChan_AO_SupportedOutputTypes

Data Type: int32*
Description: Indicates the output types supported by the channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_Voltage 10322 Voltage generation.
DAQmx_Val_Current 10134 Current generation.
DAQmx_Val_FuncGen 14750 Function generation.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_AO_SupportedPowerUpOutputTypes

Data Type: int32*
Description: Indicates the power up output types supported by the channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_ 10322 Voltage output.
DAQmx_Val_ 10134 Current output.
DAQmx_Val_ 12527 High-impedance state.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Output Configuration

DAQmx_PhysicalChan_AO_TermCfgs

Data Type: int32
Description: Indicates the list of terminal configurations supported by the channel.
Restrictions: Not Settable
Valid values
DAQmx_Val_Bit_TermCfg_RSE 1 RSE terminal configuration
DAQmx_Val_Bit_TermCfg_NRSE 2 NRSE terminal configuration
DAQmx_Val_Bit_TermCfg_Diff 4 Differential terminal configuration
DAQmx_Val_Bit_TermCfg_PseudoDIFF 8 Pseudodifferential terminal configuration

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Advanced

Manual Control

DAQmx_PhysicalChan_AO_ManualControlEnable

Data Type: bool32
Description: 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.

You can get/set/reset this attribute using:   DAQmxGetPhysicalChanAttribute   DAQmxSetPhysicalChanAttribute   DAQmxResetPhysicalChanAttribute

DAQmx_PhysicalChan_AO_ManualControl_ShortDetected

Data Type: bool32
Description: Indicates whether the physical channel is currently disabled due to a short detected on the channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_AO_ManualControlAmplitude

Data Type: float64
Description: Indicates the current value of the front panel amplitude control for the physical channel in volts.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_AO_ManualControlFreq

Data Type: float64
Description: Indicates the current value of the front panel frequency control for the physical channel in hertz.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Power Amplifier

DAQmx_AO_PowerAmp_ChannelEnable

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

You can get/set/reset this attribute using:   DAQmxGetPhysicalChanAttribute   DAQmxSetPhysicalChanAttribute   DAQmxResetPhysicalChanAttribute

DAQmx_AO_PowerAmp_ScalingCoeff

Data Type: float64*
Description: Indicates the coefficients of a polynomial equation used to scale from pre-amplified values.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_AO_PowerAmp_Overcurrent

Data Type: bool32
Description: Indicates if the channel detected an overcurrent condition.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Calibration

DAQmx_AO_PowerAmp_Gain

Data Type: float64
Description: Indicates the calibrated gain of the channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_AO_PowerAmp_Offset

Data Type: float64
Description: Indicates the calibrated offset of the channel in volts.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Digital Input

DAQmx_PhysicalChan_DI_PortWidth

Data Type: uInt32
Description: Indicates in bits the width of digital input port.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Input Timing

DAQmx_PhysicalChan_DI_SampClkSupported

Data Type: bool32
Description: Indicates if the sample clock timing type is supported for the digital input physical channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_DI_SampModes

Data Type: int32*
Description: Indicates the sample modes supported by devices that support sample clocked digital input.
Restrictions: Not Settable

Valid values

DAQmx_Val_FiniteSamps 10178 Acquire or generate a finite number of samples.
DAQmx_Val_ContSamps 10123 Acquire or generate samples until you stop the task.
DAQmx_Val_HWTimedSinglePoint 12522 Acquire or generate samples continuously using hardware timing without a buffer. Hardware timed single point sample mode is supported only for the sample clock and change detection timing types.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_DI_ChangeDetectSupported

Data Type: bool32
Description: Indicates if the change detection timing type is supported for the digital input physical channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Digital Output

DAQmx_PhysicalChan_DO_PortWidth

Data Type: uInt32
Description: Indicates in bits the width of digital output port.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Output Timing

DAQmx_PhysicalChan_DO_SampClkSupported

Data Type: bool32
Description: Indicates if the sample clock timing type is supported for the digital output physical channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_DO_SampModes

Data Type: int32*
Description: Indicates the sample modes supported by devices that support sample clocked digital output.
Restrictions: Not Settable

Valid values

DAQmx_Val_FiniteSamps 10178 Acquire or generate a finite number of samples.
DAQmx_Val_ContSamps 10123 Acquire or generate samples until you stop the task.
DAQmx_Val_HWTimedSinglePoint 12522 Acquire or generate samples continuously using hardware timing without a buffer. Hardware timed single point sample mode is supported only for the sample clock and change detection timing types.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Counter Input

DAQmx_PhysicalChan_CI_SupportedMeasTypes

Data Type: int32*
Description: Indicates the measurement types supported by the channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_CountEdges 10125 Count edges of a digital signal.
DAQmx_Val_Freq 10179 Measure the frequency of a digital signal.
DAQmx_Val_Period 10256 Measure the period of a digital signal.
DAQmx_Val_PulseWidth 10359 Measure the width of a pulse of a digital signal.
DAQmx_Val_SemiPeriod 10289 Measure the time between state transitions of a digital signal.
DAQmx_Val_PulseFrequency 15864 Pulse measurement, returning the result as frequency and duty cycle.
DAQmx_Val_PulseTime 15865 Pulse measurement, returning the result as high time and low time.
DAQmx_Val_PulseTicks 15866 Pulse measurement, returning the result as high ticks and low ticks.
DAQmx_Val_DutyCycle 16070 Measure the duty cycle of a digital signal.
DAQmx_Val_Position_AngEncoder 10360 Angular position measurement using an angular encoder.
DAQmx_Val_Position_LinEncoder 10361 Linear position measurement using a linear encoder.
DAQmx_Val_Velocity_AngEncoder 16078 Angular velocity measurement using an angular encoder.
DAQmx_Val_Velocity_LinEncoder 16079 Linear velocity measurement using a linear encoder.
DAQmx_Val_TwoEdgeSep 10267 Measure time between edges of two digital signals.
DAQmx_Val_GPS_Timestamp 10362 Timestamp measurement, synchronizing the counter to a GPS receiver.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Counter Output

DAQmx_PhysicalChan_CO_SupportedOutputTypes

Data Type: int32*
Description: Indicates the output types supported by the channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_Pulse_Time 10269 Generate pulses defined by the time the pulse is at a low state and the time the pulse is at a high state.
DAQmx_Val_Pulse_Freq 10119 Generate digital pulses defined by frequency and duty cycle.
DAQmx_Val_Pulse_Ticks 10268 Generate digital pulses defined by the number of timebase ticks that the pulse is at a low state and the number of timebase ticks that the pulse is at a high state.

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

TEDS

DAQmx_PhysicalChan_TEDS_MfgID

Data Type: uInt32
Description: Indicates the manufacturer ID of the sensor.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_TEDS_ModelNum

Data Type: uInt32
Description: Indicates the model number of the sensor.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_TEDS_SerialNum

Data Type: uInt32
Description: Indicates the serial number of the sensor.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_TEDS_VersionNum

Data Type: uInt32
Description: Indicates the version number of the sensor.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_TEDS_VersionLetter

Data Type: char*
Description: Indicates the version letter of the sensor.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_TEDS_BitStream

Data Type: uInt8*
Description: Indicates the TEDS binary bitstream without checksums.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

DAQmx_PhysicalChan_TEDS_TemplateIDs

Data Type: uInt32*
Description: Indicates the IDs of the templates in the bitstream in DAQmx_PhysicalChan_TEDS_BitStream.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetPhysicalChanAttribute

Table of Contents

Internal Development

Creating and Setting Up a gRPC Server

Server Security Support

Creating a gRPC Client

gRPC Client Examples

Session Utilities API Reference

Driver Documentation

gRPC API Differences From C API

Sharing Driver Sessions Between Clients

C API Docs
NI-DAQmx
NI-DCPOWER
NI-DIGITAL PATTERN DRIVER
NI-DMM
NI-FGEN
NI-FPGA
NI-RFmx Bluetooth
NI-RFmx NR
NI-RFmx WCDMA
NI-RFmx GSM
NI-RFmx CDMA2k
NI-RFmx Instr
NI-RFmx LTE
NI-RFmx SpecAn
NI-RFmx TD-SCDMA
NI-RFmx WLAN
NI-RFSA
NI-RFSG
NI-SCOPE
NI-SWITCH
NI-TCLK
NI-XNET
Clone this wiki locally