06-14-2005 03:04 PM
06-15-2005 06:50 PM
06-16-2005 10:26 AM - edited 06-16-2005 10:26 AM
Message Edited by Alexch on 06-16-2005 10:28 AM
Message Edited by Alexch on 06-16-2005 10:28 AM
06-16-2005 11:37 AM
@HAL L wrote:
Hi Alex,
A circular buffer is similar to a regular buffer with one exception: when you reach the end of the buffer, you will start over at the beginning instead of stopping.
The circular buffer is not completely cleared at every loop iteration. The data that has been transferred from the FIFO (First In First Out) buffer to the LabVIEW buffer has been cleared. DAQmx does this automatically. Data will not disappear from a buffer. If the data at the beginning of the buffer has not been cleared before new data is written, LabVIEW will generate an overwrite error.
Reference triggers establish a reference point in a set of input examples. Data acquired before the reference point in pretrigger data. Data acquired after the reference point is post trigger data. You must have at least 2 pretrigger samples when using a reference trigger.
For your application, I would recommend using a retriggerable start trigger. You can set the DAQmx read to acquire a specific number of samples after a trigger. There is a good example of this in the
LabVIEW example finder. In the LabVIEW example finder: go to Hardware Input and Output>>DAQmx>>
Analog Measurements>>Voltage>>Acq&Graph Voltage-Int Clk-HW Trig Restarts.vi.
Regards,
Hal L.
06-16-2005 06:32 PM
06-17-2005 10:02 AM
06-17-2005 11:34 AM