I'm struggling to find a way to generate a voltage output from my NI DAQMX, using C/C++.
I can't figure out how to use the NI device libraries, and I can't find any helpful examples online.
Does anyone have any examples or insight that they can share to solve this?
You should take a look at this , as already suggested. Particularly,
DAQmxWriteAnalogF64(taskHandle, 1000, 0, 10.0, DAQmx_Val_GroupByChannel, data, &written, NULL);
should be what you are looking for. Also, have a look at the reported examples "GenVoltageUpdate" and "WriteDigChan" for implementation insight.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.