having sorted out some issues while moving form traditional ni-daq to daqmx based programming, I'm still facing new problems,
e.g., in ni-daq, there was a 'SCAN_to_Disk()' function to directly redirect acquired data to disk instead of memory.
now I can't find an equivalent for this in daqmx ??
another problem is how to monitor a running acquisition.
in ni-daq, I used a construct like:
SCAN_Start(Board, buffer, Nch * Nsamp, Timebase, Interval, 0, 0);
while ((!Finished) && (!AbortMeas))
{
Err = DAQ_Check(Board, &Finished,
&PointsAcqd);
SetCtrlVal(panel, InfoAcqd, PointsAcqd);
ProcessSystemEvents();
}
which would allow for
- display numof currently acquired samples (PointsAcqd)
- abort acquisition by pressing <esc> or thelike
(which would be processed by a callback, setting 'AbortMeas' value
appropriately)
now, how to achieve this with daqmx ?
(e.g. using 'DAQmxReadAnalogF64()' which obviously can't be aborted by keypress)
--
Once the game is over, the king and the pawn go back into the same box.