
Manual Number: 00650-004-5
Page 4-6
ADIO1600 Manual
Programming with the CDM Driver
The most common method of programming with the CDM will be to create a program as usual, call
GETADDATA to acquire data from the card, manipulate and/or display the data and repeat the
process as usual. Alternatively, one of the other GETADxxxDATA routines can be used to satisfy
specific needs.
If a program needs lower-level control of the data acquisition process, typical code might look like
the following outline:
CARDEXISTS
if not, end.
SETCHANNEL
SETGAIN
STARTCONVERSION
CHECKFOREOC
If not EOC, repeat the check
RETRIEVEANALOGCONVERSION
Repeat at SETCHANNEL as many times as desired
Multiplexer Driver Module (MDM)
Each Multiplexer Driver Module provides routines to access a specific sub-multiplexer card and is
designed to provide simple access to the full functionality of that MDMs specific sub-multiplexer.
These drivers are provided in the form of .OBJ object files that can be linked to any language that
supports the Pascal calling convention (QuickBASIC, VisualBASIC, C, C
++
, Fortran, Assembler,
and Pascal , just to name a few.) Each object file is named the same as the sub-multiplexers six-
character model number.
The MDM file is used in conjunction with the Card Driver Module (CDM) to provide seamless
access to any A/D card (assuming that the A/D card supports use of the specific sub-multiplexer)
without re-programming. In effect, the non-A/D-card-specific functionality of the CDM system is
retained when using the Multiplexer Driver Modules. This allows your code to be written to take
advantage of a sub-multiplexers advanced features without worrying about A/D card compatibil-
ity. By changing the link statement (during program creation) to reflect which CDM is desired, the
same source code can be re-used for any CDM-supported A/D card.