Installing the Direct I/O Driver
6-5
●
HRESULT CloseDevice();
Closes a previously opened PIO device.
The number of CloseDevice calls must match the number of
OpenDevice calls.
●
HRESULT Read(short Offset, unsigned char * Result);
Reads an 8-bit value from the PIO board.
Offset is the value of the register to read relative to the base I/O
address. Result is the value read from the register.
●
HRESULT Write(short Offset, unsigned char Value);
Writes an 8-bit value to the PIO board.
Offset is the value of the register to write relative to the base I/O
address. Value is the output to write to the register.
●
HRESULT OpenCount(long *Count);
Returns the number of times a client has called OpenDevice for this
Logical Device. Count is the address of the value for the result.
●
HRESULT Device(long *LogicalDevice);
Returns the Logical Device number if the device is open. Otherwise it
returns -1. LogicalDevice is the address of the value for the result.
Using the Direct I/O Driver in Visual Basic
The following instructions are for Version 5 of Microsoft Visual Basic. If
you have a different version, consult the Visual Basic documentation.
1. From VB’s Project menu, select References...
2. Scroll through the Available References, looking for Keithley ISA
PIO Direct I/O Library.
3. Check Keithley ISA PIO Direct I/O Library and then click OK.
4. From VB’s View menu, select Object Browser to display a list of
libraries.
5. Search for KISAPIOLib.
6. The Object Browser shows the VB syntax for the KISAPIO class.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com