Chapter 5: Software
The following paragraphs describe the setup program, then the VisualBASIC utility program
SETUP.EXE
This program is supplied in the root or base directory as a tool for you to use in configuring jumpers on the card.
It is menu-driven and provides pictures of the card on the computer monitor. You make simple keystrokes to
select functions. The picture on the monitor then changes to show how to place the jumper to effect your
choices.
The setup program is a stand-alone program that can be run at any time. It does not require that the card be
plugged into the computer for any part of the setup. The program is self-explanatory with operation instructions
and on-line help.
To run this program, at the DOS prompt, enter SETUP.EXE followed by
-
.
VISUALBASIC UTILITY DRIVER
The CD provided with your card includes extentions to the VisualBASIC language for use with this card. The
extensions are in a directory named VBACCES. These extensions are in the form of a .DLL, a .GBL, and a
VisualBASIC sample. Together these files allow you to access the port and main memory space in a fashion
similar to BASIC, QuickBASIC, Pascal, C/C
++
, Assembly, and most other standard languages.
To use these files in a VisualBASIC program, you must create a .MAK file (File l New Project) similar to the
sample provided (or else, modify your existing project file) and include the .GBL file (File | Add File). Once this
has been done, VisualBASIC will be enhanced with the addition of the following functions.
InPortb
Function: Reads a byte from a hardware port. Due to limitations of VisualBASIC, the
number is returned in an integer.
Declaration:
function InPortb(byval address as integer) as integer
InPort
Function: Reads an integer from a hardware port. This function returns the 16-bit value
obtained from reading the low byte from address and the high byte from
1.
Declaration:
function InPort(byval address as integer) as integer
OutPortb
Function: Writes the lower eight bits of value to the hardware port at address. This
function returns the value output.
Declaration:
function OutPortb(byval address as integer, byval value
as integer) as integer
Manual PCI-DIO-48 H/HS
12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com