beautypg.com

Measurement Computing ADAC-LVi User Manual

Page 77

background image

Chapter 2 Digital I/O VIs

ADAC LabVIEW VI

71

$'$& ',2 5HDG FRQ¶W

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.

BufferNum [U32] BuffNum
Buffer Number ID (0-n)

Buffer Complete Buffer Complete is TRUE if this VI was able to successfully obtain a
done buffer. A completed buffer may only indicate the buffer is no longer being serviced
and the status is available, always check the StatusFlag and ErrorFlag.

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.