beautypg.com

Measurement Computing ADAC-LVi User Manual

Page 114

background image

Chapter 2 Buffer Config Library

ADAC LabVIEW VI

108

$'$& *HW %XIIHU 6WDWXV FRQ¶W

BUFFER_IDLE = 0 The buffer is available for use, but acquisition has not
started on this buffer.

BUFFER_DONE = 1 The buffer has been filled with samples and is available
for use in the user application.

BUFFER_INUSE = 2 The buffer is currently being filled with samples

StatusFlag [U32] StatusFlag:
The Status Flag specifies the completion status of a buffer. This flag can be set
to any of the four following conditions.

BUFFER_EMPTY = 1 No samples are available in the buffer.

BUFFER_INCOMPLETE = 2 The output buffer has not read completely or
and input has not filled to capacity.

BUFFER_COMPLETE = 4 The output buffer has been read completely.

BUFFER_FULL = 8 The input buffer has filled to capacity.

ErrorFlag [i32] ErrorFlags:
The Error Flags specify the condition which has stopped a buffer from
successfully completing. Although an error may be reported, this does not
indicate the BUFFER_FULL flag is not set. This would be the case if an error
was detected and enough samples were available to fill the buffer to capacity.
One or more of these flags may also be set together. If any of these flags have
set, checking the current hardware error conditions will usually reveal the actual
condition that caused the acquisition runtime error. This flag can be set to any of
the four following conditions.

BUFFER_STOPPED = 1 An error occurred and the buffer(s) are no longer
being serviced.

BUFFER_OVERRUN = 2 An error occurred when attempting to place the next
sample beyond the bounds of the buffer.

BUFFER_UNDERRUN = 4 An error occurred and the buffer is incomplete.

BUFFER_NEXTBUSY = 8 When attempting to access the next buffer, the
current state of the DoneFlag indicated the buffer was not yet available for use.