Parallel port control software – Teledyne LeCroy Hot Swapping PCI Cards User Manual
Page 9

5
Parallel Port Control Software
Controlling the Hot Swap extenders using software commands
All Hot Swap extenders can be turned On-Off via the software. In order not to effect the signal integrity of the UUT the PCI
bus is not used to decode the software instructions, instead the instructions are sent via the parallel port and a cable to the
PCI extenders. In none NT environment any output commands may be used to write to the parallel port, please see the user
manual for each board for details on commands. For the NT operating systems utility Parallel.exe may be used in
conjunction with the provided Catalyst IO driver. For more details, please refer to the documentation for the Parallel
Software.
This program, parallel.exe, allows to user to write to the system parallel port in Windows 95, 98, NT, 2000, XP.
1. To install the Parallel.exe program perform one of the following steps
a. If Parallel.exe was download form the Catalyst Web site. Run Parallel.exe. This program will install all the required
files on your hard drive. (For installations in Windows NT, the computer mu st be restarted in order to start the
Parallel Port Driver.)
b. If Parallel was provided as a part of the PCI Utilities package. Execute Setup.exe, located on disk one. The package
will bring up a section screen, select the software you wish to install. (For installations in Windows NT, the
computer must be restarted in order to start the Parallel Port Driver.)
2. To operate the software, use the following commands.
a. From Run Menu or from MS-DOS prompt of Windows, type path\Parallel A B CC
•
Where path is the location of the program
•
A is the Parallel port you wish to use 1 for LPT1 (378), 2 for LPT2 (278), 3 for LPT3 (3bc)
•
B is the base address offset 0 for data register, 2 for command register
•
CC is the data to be sent to the parallel port in Hex.
•
If you wish to use the run menu, ensure to include to entire path to Parallel.exe and the desired data.
For example to issue commands to the PCIBX, the user must enter the directory where the parallel.exe program is
"c:\program files\catalyst\parallel\parallel.exe"
and then type the commands
parallel 1 2 de
set LPT port to write mode
b. To insert a call command in your software. Insert a system call in your software to perform the above operation.
•
In Microsoft C++ and Borland C++ for Windows, the command is system(“dir”), to use this command in your
program to write 80 to the LPT1 data register insert:
system(“C:\\Program Files\\Catalyst\\ parallel 1 2 de”)