Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Acquiring analogue input data before event is fired (DAQmxRegisterEveryNSamplesEvent)

Highlighted

Acquiring analogue input data before event is fired (DAQmxRegisterEveryNSamplesEvent)

In short: I wonder if it is possible to fire the event callback before the 'nSamples' are reached?

 

Right now I am acquiring data via the DAQmxRegisterEveryNSamplesEvent every nSamples, which works just fine. However if I finish my measurements at any given time, I will have some remaining samples in the buffer. This data I'd like to access as well.

 

The information for DAQmxRegisterEveryNSamplesEvent states:

'When you stop a task explicitly any pending events are discarded. For example, if you call DAQmxStopTask then you do not receive any pending events.'

Therefore I believe I'll miss out on this data, even though I haven't actually stopped the task yet. 

 

http://zone.ni.com/reference/en-XX/help/370471AE-01/daqmxcfunc/daqmxregistereverynsamplesevent/ 

 

0 Kudos
Message 1 of 2
(181 Views)

Re: Acquiring analogue input data before event is fired (DAQmxRegisterEveryNSamplesEvent)

Hi,

 

Were you able to solve this problem?

Best Regards,
TK
Certified LabVIEW Architect (CLA)

0 Kudos
Message 2 of 2
(11 Views)