Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual
Page 162

II. SOFTWARE GUIDES - 9. Driver488/SUB
9D. Getting Started
Personal488 User’s Manual, Rev. 3.0
II-147
•
These header files must be included in your test program. To do so, insert the following lines:
#include “iotmc60.h”
#include “iot_main.h”
These lines must be included at the top of your program before any calls to the Driver488/SUB
subroutine functions are made. Notice that the header file
iot_main.h
must be in the module
containing your
main ( )
function and may not appear in any other modules.
For Turbo C Users
•
All programs must include the following header files to run with Driver488/SUB:
iottc20.h
iot_main.h
•
These header files must be included in your test program. To do so, insert the following lines:
#include “iottc20.h”
#include “iot_main.h”
These lines must be included at the top of your program before any calls to the Driver488/SUB
subroutine functions are made. Notice that the header file
iot_main.h
must be in the module
containing your
main ( )
function and may not appear in any other modules.
For Turbo C++ and Borland C++ Users
•
All Turbo C++ programs must include the following header files to run with Driver488/SUB:
iottx20.h
iot_main.h
•
These header files must be included in your test program. To do so, insert the following lines:
#include “iottx10.h”
#include “iot_main.h”
These lines must be included at the top of your program before any calls to the Driver488/SUB
subroutine functions are made. Notice that the header file
iot_main.h
must be in the module
containing your
main ( )
function and may not appear in any other modules.
Required Libraries
For Microsoft C & Quick C Users
•
Driver488/SUB supports four memory models: “small,” “medium,” “compact” and “large.”
Include the
iotm60.h
and
iot_main.h
header files in your program and link in the proper
Driver488/SUB library files, as shown below:
iotmc60s.lib
for small memory model programs.
iotmc60m.lib
for medium memory model programs.
iotmc60c.lib
for compact memory model programs.
iotmc60l.lib
for large memory model programs.
For more information on memory models, see the Sub-Chapter “Other Languages” in Chapter 8.
•
Use the following command-line commands to compile and link your program. For example, the
following commands create a compact model executable file using Microsoft C:
cl/AC hello.c iotmc60c.lib;
Required Headers
For Microsoft C and Quick C Users
•
All programs must include the following header files to run with Driver488/SUB:
iotmc60.h
iot_main.h