Pascal – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual
Page 165

9D. Getting Started
II. SOFTWARE GUIDES - 9. Driver488/SUB
II-150
Personal488 User’s Manual, Rev. 3.0
Required Libraries
Driver488/SUB can be accessed from QuickBASIC using the integrated environment and the DOS
command line. If the QuickBASIC integrated environment is used, the
iotmqb45.qlb
quick library
must be loaded into QuickBASIC. To do so, start QuickBASIC with the following DOS command:
qb /liotmqb45.qlb
If the command line compiler is used, the
iotmqb45.lib
library must be linked with your program
with the following commands:
bc hello.bas;
link hello.obj,,,iotmqb45.libc:\qb45\brun45.lib;
Use the example test program to query Driver488/SUB for its
Hello
message:
‘$INCLUDE: ‘iotmqb45.def’
response$ = SPACE$ (100)
rv% = iohello%(ieee%,response$)
PRINT response$
END
Upon execution, the following response is printed on the screen:
-- Driver488 ver 4.0........
To run this program, Driver488/SUB must be installed and resident. Successful operation of this
program proves that the driver is installed and the Driver488/SUB subroutines were properly linked to
the application program. Errors in setting up board parameters like DMA channel and interrupts will
not be detected by this program.
Pascal
To successfully operate Driver488/SUB, a library file must be included in the user’s application
program. The required library can be found in the language-specific subdirectory at the end of the path
\IEEE488\SUBAPI\TPAS60
, if installed under the default conditions.
Required Libraries
All programs need to include the following library file to run with Driver488/SUB:
iottp60.tpu
This library file must be included in your test program. To do so, insert the following line:
uses iottp60;
This line must be included at the top of your program before any calls to the Driver488/SUB subroutine
functions are made.
Use the following command-line commands to compile and link your program. For example, the
following command creates a compact model executable file:
tpc hello.c
Use the example test program to query Driver488/SUB for its
Hello
message:
Required Definition File
All programs must include the
iotmqb45.def
definition file to run with Driver488/SUB. To include
this program in your test program, insert the following line:
‘$INCLUDE: ‘iotmqb45.def’
This line should be included at the top of your program before any calls to the Driver488/SUB
subroutine functions are made.