Adac set buffer done handler – Measurement Computing ADAC-LVi User Manual
Page 123

Chapter 2 Buffer Config Library
ADAC LabVIEW VI
117
$'$& 6HW $XWR ,QLW %XIIHUV FRQ¶W
The available options are:
0:OFF Buffers are not auto initialized on AI_StartAD. The user is responsible for calling
AL_ClearBufferDoneFlag on each buffer.
1:ON Buffers are auto initialized AI_StartAD.
The default Done Handler is 1:ON
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.
ADAC Set Buffer Done Handler
This VI sets the buffer done message handler method. The internal ADAC-LVi buffers
can be accessed in LabVIEW by either polling the buffer status information for a
completed buffer (CHECK_BUFFER) or asynchronously by using a LabVIEW
occurrence to receive buffer done messages (POST_MESSAGE_PARAMS). If
POST_MESSAGE_PARAMS is selected, an additional call to ADAC Occurrence
Config.vi must be made to configure the occurrence.
The occurrence can then be set to "wait on occurrence", this effectively puts your VI to
sleep saving precious processor time until a buffer done message is sent or the wait on
occurrence times out.
The ADAC Occurrence Config.VI automatically sets the Done Handler to
POST_MESSAGE_PARAMS and calls AL_SetBufferDoneHandlerMsg to configure the
occurrence done buffer messages to LabVIEW.