CIGAL Reference Manual, Chapter 7 (Hardware): Parallel Port Interface
usage: init pport [flag ArevPol devNum base_address]
The PPORT software interface in CIGAL makes use of the INPOUT32.DLL parallel port function library and driver.
Device initialization options for the initialize pport command are:
FLAG: 8 - FBIRN a/d input device AREVPOL: Analog reverse polarity. If AREVPOL != 0, input a/d value will be inputval = arevpol - valuefromdevice DEVNUM: LPT device number 1,2,3 (default = LPT1) BASE_ADDRESS: LPT base address (0=Default). Only change this address with great care!
CIGAL is currently distributed with a copy of the “inpout32.dll” library file. This file contains both the application interface functions, as well as the device driver. In order to use the interface the device driver needs to be installed into Windows on your computer. This should happen automatically the first time you use the INPOUT32 library. However, you will probably need System Administrator priveleges for the first-time installation step to work.
To install the driver, log into your computer as a system Administrator. If you do not have Administrator priveleges you may need to find someone who does. Once logged in, start CIGAL. Then initialize the INPOUT32 parallel port interface by entering the command:
That should be all you need to do. To test the device try setting values in the parallel port output variable LPT100 as:
lpt100 = 0 lpt100 = 255
Any 8-bit value you assign to CIGAL's LPT100 variable should be immediately sent as output data on the parallel port.
Once the driver has been used once it should remain installed. If you had to do this step as Administrator you can now log back in as a regular user.
In order for CIGAL to use this device it must be told to look for it via its init pport command. Usually that is done by using the CIGAL Configure(1) program to put the appropriate Init(2) command into the automatic start-up scripts. To do so, simply start CIGAL, enter the configure command, and click yes when asked if you have a parallel port device (click no in response to other parallel port configuration options). (Alternatively you could simply edit your userconfig.imp or sysconfig.imp file if it already exists and manually change the commands in the initialize section.)
CIGAL: Initialize, Configure, LPT data variables
Inpout32 Library: Inpout32.dll for Windows 98/2000/NT/XP, Jan Axelsons Parallel Port Site