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 encoder "Encoder1"
DINx: Digital input channels
AOUTx: Analog output channels
Read: Attributes can be read
Write: Attributes can be written
Modify: Attributes can be modified during data collection
Save: Attributes can be saved to ini files
  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.

VK6088 Channel list:
AIN1:8
MIN1:2
DIN1
AOUT1:2
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.00000000 10.00000000 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:2
DIN1
AOUT1:2

Read
Read
Read
Read|Write

AIN1:8 raw value
MIN1:2 raw value
DIN1 raw value
AOUT1:2 raw value

Rsense AIN1:8

Read

250 Ω

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

Save AIN1:8
MIN1:2
DIN1

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

Disable

AIN1:8 offline saving
MIN1:2 offline saving
DIN1 offline saving

ScaleDivisor AIN1:8

Read
Read

1.953125000

AIN1:8 Scale divisor

ScaleMultiplier AIN1:8

Read
Read

1000000
1000000

AIN1:8 Scale multiplier

Source MIN1:2

Read|Write

VirtualCounter,
Counter1,Counter2,Counter3,Counter4,
Encoder1,Encoder2
VirtualCounter

MIN1:2 Data source selection
VirtualCounter: Virtual counter value
Counter1: Dio1.1 input pulse count value
Counter2: Dio1.2 input pulse count value
Counter3: Dio1.3 input pulse count value
Counter4: Dio1.4 input pulse count value
Encoder1: Count value of rotary encoder 1 connected to Dio1.1 and Dio1.2
Encoder2: Count value of rotary encoder 2 connected to Dio1.3 and Dio1.4

TriggerLevel AIN1:8
MIN1:2

Read|Write

AIN:-10.00000000~10.00000000
MIN:0~4294967295
AIN:0.00000000
MIN:0
V

AIN1:8 Analog trigger voltage value
MIN1:2 Trigger value

Voltage AIN1:8
AOUT1:2

Read
Read|Write

V
V

Voltage
Voltage

Waveout AOUT1:2

Read|Write

Disable,Enable Enable

Waveform output:
Disable:Do not output waveform
Enable:Output waveform