libvkdaq
VKINGING DAQ Library API Reference
 
Loading...
Searching...
No Matches
Channel Attributes
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 VirtualCounter "VirtualCounter"
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);
    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");
    int32_t VkDaqSetChannelAttribute(const char *chan, const char *attrName, const char *attrValue)
    Set device channel attribute value.

VE3658 Channel list:
AIN1:8
MIN1
DIN1
Name Applicable channels Read|Write Available Value Factory Value Unit

Remark

AccelSensitivity AIN1:8

Read|Write

0.05

Acceleration sensor sensitivity

Bandwidth AIN1:8

Read

20400 Hz

Bandwidth

InputRange AIN1:8

Read|Write

0~10.0000000000 10.0000000000 V

Input range

InputType AIN1:8

Read|Write

Differential,SingleEnded,
IEPE,Current
SingleEnded

Differential: Differential voltage input
SingleEnded: SingleEnded voltage input
IEPE: IEPE input
Current: Current input

Tip:
Due to hardware differences at the input end,
the supported input types are.
Please read the channel property:
InputTypeAvailable

Raw AIN1:8
MIN1
DIN1

Read
Read
Read

AIN1:8 raw value
MIN1 raw value
DIN1 raw value

Rsense AIN1:8

Read

250 Ω

The resistance of the sampling resistor is only applicable to current input type

Save AIN1:8
MIN1
DIN1

Read|Write
Read|Write
Read|Write
Read|Write

Disable

AIN1:8 offline saving
MIN1 offline saving
DIN1 offline saving

ScaleDivisor AIN1:8

Read
Read

1.3871626420454546

AIN1:8 Scale divisor

ScaleMultiplier

AIN1:8
Read

1000000

AIN1:8 Scale multiplier

Voltage AIN1:8

Read
Read|Write

V

Voltage

Source MIN1

Read|Write

VirtualCounter VirtualCounter

MIN1 Data source selection
VirtualCounter: Virtual counter value