07-12-2013 10:02 AM
Dear Developer Zone,
i am a bit of a newbie when it comes to DAQ, but i am working on a project using the DAQmx C interface. So far i am able
to define voltage buffers and put them through an analog output. I still have a few questions though:
1. Is there a way to apply a DC voltage to an analog output other than writing an array full of the target value and using the sampled output?
2. I am trying to aquire the voltage on two ports on-demand. Right now, i am using DAQmxReadAnalogF64 for that. This works the first time, but not in subsequent calls. I suspect that this is because of buffered aquisition, so that i am only pulling values from the buffer filled at the first call to that function.
Is there a way to get voltages non-buffered and on-demand from C?
Thank you for your time.
07-16-2013 03:25 AM
Hi!
@ 1. There is an example which does exactly that: output of a single (DC)Value. Open the CVI Example Finder, you will find it under Hardware Input and Output>>DAQmx>>Analog generation>>Voltage>>VoltUpdate.prj
@2.I don´t know exactly, what you are doing, but when you aquire a finite amount of data with the internal clock on 1 or more channels, than there is also exactly that ready as an example:
Hardware Input and Output>>DAQmx>>Analog Measurements>>Voltage>>Acq-IntClk.prj
Regards
René