| libvkdaq VKINGING DAQ Library API Reference |

Loading...
Searching...
No Matches
Channel Attributes
VK DAQ Attribute

Note
  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
  Read: Attributes can be read
  Write: Attributes can be written
  1. 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);
     VkDaqGetChannelAttribute
     int32_t VkDaqGetChannelAttribute(const char *chan, const char *attrName, char attrValue[], int32_t size)
     Get device channel attribute value.
  2. Use VkDaqSetChannelAttribute to write device attributes.
     For example: write the device sampling frequency.
     int ret = VkDaqSetChannelAttribute("dev1/AIN1", "InputType", "100000");
     VkDaqSetChannelAttribute
     int32_t VkDaqSetChannelAttribute(const char *chan, const char *attrName, const char *attrValue)
     Set device channel attribute value.