NI DAQMX Channel Attributes - ni/grpc-device GitHub Wiki
See how to get and set attributes.
- Analog Input
- Analog Output
- Digital Input
- Digital Output
- Counter Input
- Counter Output
- General Properties
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
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
Data Type: | char* |
---|---|
Description: | Specifies a user-defined description for the channel. |
You can get/set/reset this attribute using:
DAQmxGetChanAttribute
DAQmxSetChanAttribute
DAQmxResetChanAttribute
Data Type: | bool32 |
---|---|
Description: | Indicates whether the channel is a global channel. |
Restrictions: | Not Settable |
You can get this attribute using:
DAQmxGetChanAttribute
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