NI DAQMX Channel Attributes - ni/grpc-device GitHub Wiki

Channel Attributes

See how to get and set attributes.

General Properties

DAQmx_ChanType

Data Type: int32
Description: Indicates the type of the virtual channel.
Restrictions: Not Settable

Valid values

DAQmx_Val_AI 10100 Analog input channel.
DAQmx_Val_AO 10102 Analog output channel.
DAQmx_Val_DI 10151 Digital input channel.
DAQmx_Val_DO 10153 Digital output channel.
DAQmx_Val_CI 10131 Counter input channel.
DAQmx_Val_CO 10132 Counter output channel.

You can get this attribute using:   DAQmxGetChanAttribute

DAQmx_PhysicalChanName

Data Type: char*
Description: Specifies the name of the physical channel upon which this virtual channel is based.

You can get/set this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute

DAQmx_ChanDescr

Data Type: char*
Description: Specifies a user-defined description for the channel.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

DAQmx_ChanIsGlobal

Data Type: bool32
Description: Indicates whether the channel is a global channel.
Restrictions: Not Settable

You can get this attribute using:   DAQmxGetChanAttribute

DAQmx_Chan_SyncUnlockBehavior

Data Type: int32
Description: Specifies the action to take if the target loses its synchronization to the grand master.

Valid values

DAQmx_Val_StopTaskAndError 15862 Stop task and return an error.
DAQmx_Val_IgnoreLostSyncLock 16129 Ignore the loss of synchronization and do nothing.

You can get/set/reset this attribute using:   DAQmxGetChanAttribute   DAQmxSetChanAttribute   DAQmxResetChanAttribute

⚠️ **GitHub.com Fallback** ⚠️