Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Starting a read from arbitrary point in buffer

Solved!
Go to solution
Using the DAQmx API, is there a way to read out a section of the buffer starting at some aribitrary (non-zero) index?  I would like to combine such a technique with the DAQmxRegisterEveryNSamplesEvent callback, so that I can post a visual monitor to the GUI of what the system is doing during a long acquistion.
0 Kudos
Message 1 of 2
(7,199 Views)
Solution
Accepted by JasonAtSeagate

There are two properties in DAQmx that may be useful to you: the Offset, and the RelativeTo properties.  The Offset parameter changes where in the buffer a read begins, and the RelativeTo parameter determines what that offset is relative to (such as the first sample or the most recent sample). 

 

int32 __CFUNC DAQmxSetReadRelativeTo(TaskHandle taskHandle, int32 data);

int32 __CFUNC DAQmxSetReadOffset(TaskHandle taskHandle, int32 data);

 

-Christina

Message 2 of 2
(7,174 Views)