Hi Guys,
I would like to alter the operation setup of my DAQ (E Series 6014) in real-time after it has been initialised to certain value. In particular the only line of code that I want to update with new values is as follows:
iStatus = DAQ_Start(iDevice, iChan, iGain, piBuffer, ulCount, iSampTB, uSampInt);
iRetVal = NIDAQErrorHandler(iStatus, "DAQ_Start", iIgnoreWarning);
In this case, only ulCount varies so that my buffer size accounts for a corresponding change in the sampling frequency (higher sampling frequencies mean that I would like a larger buffer and vice versa).
If anyone knows whether this is possible it would be great.
My code is pretty simple. I use EXTCONV* to externally clock an
analog input. Therefore, I have an AI on the default pin AI0 and DAQ_Config has iExtConv = 1. The addition of double buffering to this means that I can acquire varying amounts of data depending upon the trigger rate.
Kind Regards,
Gaurav