Hi all
I am programming an application using Visual C++ .Net
and PCI-6115 DAQ, I need to acquire 300 samples each
trigger event, I have an external trigger signal of
4 KHz, the sampling rate is 5 Ms/s, I suppose that the
DAQ spends 60 microseconds in order to acquire all
the samples, I expect that the next sequences of samples
should be acquired 190 microseconds after the last sample,
but the DAQ only acquires 16.6 milliseconds after the last
sample.
Below find the part of the c++ code that I am using
for(loop_t=0;loop_t<10;loop_t++)
{
ini=clock();printf("%f\t",(double)ini);
iStatus = DAQ_Op(iDevice, iChan, iGain, piBuffer, ulCount, dSampRate);
iRetVal = NIDAQErrorHandler(iStatus, "DAQ_Op", iIgnoreWarning);
iStatus = DAQ_VScale(iDevice, iChan, iGain, dGainAdjust, dOffset,
ulCount, piBuffer, pdVoltBuffer);
iRetVal = NIDAQErrorHandler(iStatus, "DAQ_VScale",
iIgnoreWarning);
iStatus = DAQ_Clear(iDevice);
}
My question is :
Is it possible to acquire each trigger event?
What should I do in order to acquire each 4KHz trigger event?
Thanks
R. Chiu