Hi,
I'm using the NI-6220 DAQ card on Windows XP and the DAQmx C drivers.
My application needs to do the following:
Read samples continously at full speed (250,000 samps/sec)
Use an external digital singal runing at 1PPS (from a GPS device) to precisely time stamp the beginning of a second.
When the 1PPS comes in, transfer the last 1 sec of data (250,000 samples) to memory and keep going.
This process runs continously and I need to do processing while new samples are being taken.
The prolem I am running into is that if I use the "DAQmx_Val_FiniteSamps" with the "DAQmxCfgSampClkTiming" function, the line of code blocks until the DAQ reads all the data. Therefore, there is never any time to process the data (i.e you have to stop reading.... process data... start reading... stop. process data. start... etc). This is unacceptable in that I need to continously sample.
If is use the "
DAQmx_Val_ContSamps" setting with the "DAQmxCfgSampClkTiming" function, I get a error that say you can't use
"DAQmx_Val_ContSamps" with a reference trigger.
Can anyone help or tell me who to cal at NI who can?
Thanks
Stephen