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

II. SOFTWARE GUIDES - 9. Driver488/SUB
9D. Getting Started
Personal488 User’s Manual, Rev. 3.0
II-149
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.
For Turbo C++ and Borland C++ Users
•
Driver488/SUB supports four memory models: “small,” “medium,” “compact” and “large.” (See
the Sub-Chapter “Other Languages” in Chapter 8, for more information on memory models.)
Include the
iottx10.h
and
iot_main.h
header files in your program and link in proper
Driver488/SUB library files, as shown below:
iottx10s.lib
for small memory model programs.
iottx10m.lib
for medium memory model programs.
iottx10c.lib
for compact memory model programs.
iottx10l.lib
for large memory model programs.
•
Use the following command-line command to compile and link your program. For example, the
following commands create a compact model executable file using Turbo C++:
tcc -mc hello.c iottx10c.lib
or
tcc -c -mc hello.c
tlink hello.obj + c0c.obj,,,cc.lib iottx10c.lib
Similarly, these commands create a compact model executable file, using Borland C++:
bcc -mc hello.c iottx10c.lib
or
bcc -c -mc hello.c
tlink hello.obj + c0c.obj,,,c.lib iottx10c.lib
•
Use the example test program to query Driver488/SUB for its
Hello
message:
#include “iottx10.h”
#include “iot_main.h”
main ( ) {
DevHandleT ieee;
char response [100];
Hello (ieee, response);
printf (“--%s\n”, response);
}
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.
QuickBASIC
To successfully operate Driver488/SUB, a definition file must be included in the user’s application
program. This definition file can be found in the
\IEEE488\SUBAPI\QB45
subdirectory, if installed
under the default conditions.
In the same directory as the definition file, are the libraries needed to access Driver488/SUB from
QuickBASIC.