Example programs – Measurement Computing ADLIB WIN User Manual
Page 24

Chapter 5 Program Development
5-4
errnum& = AL_ReleaseDevice(gblLhld&)
If errnum& < 0 Then
MsgBox "AL_ReleaseDevice Error", MB_ICONSTOP, "ADLIB Error"
End If
errnum& = AL_ReleaseEnvironment()
If errnum& < 0 Then
MsgBox "AL_ReleaseEnvironment Error", MB_ICONSTOP, "ADLIB Error"
End If
5.3 EXAMPLE PROGRAMS
Included with ADLIB WIN is an extensive set of programming examples that provide conceptual
interpretations of interfacing to ADLIB to assist in the development design of the user application. Each
example program is designed to exercise a specific area of the library to simplify the understanding of the
example's specific concept. See also, the comments provided at the beginning of each example program file
for detailed descriptions.
The following is the list of example programs:
Example programs are also provided for each specific board type, and are not necessarily generic to all
boards. The examples are located in each board (NAME) directory.
\Adlai01
examines the BUFFER_DONE message response handler
\Adlai02
examines the User polling of the BUFFER_DONE flag.
\Adlai04
examines the ABOUT Trigger mode.
\Adlai05
examines the BURST/SCAN MODE option.
\Adlai07
examines the Software Transfer method.
\Adlai08
examines the CALLBACK buffer response handler (MSC only).
\Adlda01
examines the Software Transfer method.
\Adlda02
examines the Single DAC BUFFER_DONE message response handler
\Adlda03
examines the Dual DAC BUFFER_DONE message response handlers
\Adldio01
examines the Software Transfer Digital Input/Output ports 0 & 1.
\Adldio23
examines the Software Transfer Digital Input/Output ports 2 & 3.
\Adlctr01
examines the Counter IN and Counter OUT functions.