Adac clear buffer done – Measurement Computing ADAC-LVi User Manual

Page 119

Advertising
background image

Chapter 2 Buffer Config Library

ADAC LabVIEW VI

113

ADAC Clear Buffer Done

The AL_ClearBufferDoneFlag function informs the ADAC-LVi driver that a buffer is
available for use. All buffers are flagged as done when completed. It is the user's
responsibility to inform the ADAC-LVi driver that a buffer is once again available. This
function is therefor required when the ADAC-LVi cycle mode is set to
CONTINUOUS_CYCLE, otherwise an error will be generate when the driver attempts to
reuse a buffer that has not been flagged as available. Setting lBuffNum to -1 will
reinitialize all buffers for the specified device, this is most useful in the
SINGLE_CYCLE mode when all buffers have been completed.

This VI is available for use when ADAC AI READ.VI is not used. The ADAC AI
READ.VI gets the current buffers status; if status is complete, it copies the data to
LabVIEW and releases the buffer back to the ADAC-LVi driver.

Device Handle (0) Device Handle is a numeric value that is used to identify the device
subsystem. The default Device Handle is 0.

Buffer Number (-1:all) Specifies the ID number of the buffer to be released back to the
ADAC-LVi driver. Setting Buffer Number to -1 releases all buffers back, the -1 option is
most useful in the SINGLE_CYCLE mode after all buffers have been completed.

error in (no error) Error in describes error conditions occurring before this VI executes.
This cluster defaults to no error.

Device Handle out Device Handle out contains the value of Device Handle in.

error out Error out contains error information. If the error in cluster indicated an error,
the error out cluster contains the same information. Otherwise, error out describes the
error status of this VI.

Advertising