Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ_Monitor?

how can i get all and only new measurements since last query in double buffer mode. for example DAQ_Monitor return requested number of measurements. but i don't know how many points already available
0 Kudos
Message 1 of 2
(3,281 Views)
Hi Eidolon,

The DAQ_Monitor function will give you an error if the requested number of scans (specified by the numPts parameter) are not available when it executes. You can experiment with your code and initially set a large value of numPts and decrease it until you stop getting the error. This would roughly give you the performance you want, i.e reading all the points that are available. The sequential parameter lets you specify if you want to read the most recent data or the oldest data.

You may also want to check out the DAQ_DB_Transfer function if you are doing double buffered acquistion. This function waits until the specified number of data is available and then transfers it to a specified location.

Best Regards,


Afreen Siddiqi
National Instruments
0 Kudos
Message 2 of 2
(3,281 Views)