| libvkdaq VKINGING DAQ Library API Reference |

Loading...
Searching...
No Matches
Device Attributes
VK DAQ Attribute » VK7016_VK7018

Note
  Read: Attributes can be read
  Write: Attributes can be written
  1. Use VkDaqGetDeviceAttribute to Read device attributes.
     For example: Read the device sampling frequency.
     char samplingFrequency[65536] = {0}; int ret = VkDaqGetDeviceAttribute("dev1", "SamplingFrequency", samplingFrequency, sizeof(samplingFrequency) - 1);
     VkDaqGetDeviceAttribute
     int32_t VkDaqGetDeviceAttribute(const char *dev, const char *attrName, char attrValue[], int32_t size)
     Get device attribute value.
  2. Use VkDaqSetDeviceAttribute to write device attributes.
     For example: write the device sampling frequency.
     int ret = VkDaqSetDeviceAttribute("dev1", "SamplingFrequency", "100000");
     VkDaqSetDeviceAttribute
     int32_t VkDaqSetDeviceAttribute(const char *dev, const char *attrName, const char *attrValue)
     Set device attribute value.