AINx: Analog input channels
MINx: Miscellaneous input channels. You can use VkDaqGetDeviceAttribute and VkDaqSetDeviceAttribute to read or write the MINx data source. For example, set the "dev1/MIN1" data source to encoder "Encoder1"
DINx: Digital input channels
AOUTx: Analog output channels
- Note
- Read: Attributes can be read
Write: Attributes can be written
- Use VkDaqGetChannelAttribute to Read device attributes.
For example: Read the device sampling frequency. char inputType[65536] = {0};
int ret =
VkDaqGetChannelAttribute(
"dev1/AIN1",
"InputType", inputType,
sizeof(inputType) - 1);
int32_t VkDaqGetChannelAttribute(const char *chan, const char *attrName, char attrValue[], int32_t size)
Get device channel attribute value.
- Use VkDaqSetChannelAttribute to write device attributes.
For example: write the device sampling frequency.
int32_t VkDaqSetChannelAttribute(const char *chan, const char *attrName, const char *attrValue)
Set device channel attribute value.