88 Pamux User’s Guide
USING THE PAMUX DRIVER UNDER WINDOWS
INSTALLATION
The Pamux driver is provided on one disk. You should make a backup copy of this disk before installing
the driver.
The Pamux driver disk includes DOS and WIN directories. To use the driver under Windows, you will
need to copy files from the WIN directory to appropriate directories on your hard drive.
For complete installation instructions, view the README.TXT file on the driver disk.
Briefly, you will need to copy the file Pamux.DLL to your application directory or your Windows System
directory. Note that Windows searches for DLLs first in memory, then in the current working directory,
and finally in the Windows and Windows System directories.
In addition, you will need to copy header files (Pamux.H for C and Pamux.BAS for BASIC) to the directory
in which your application source code is located.
The driver disk also includes the import library file Pamux.LIB. This file tells the linker that the Pamux
APIs are part of a DLL. If this library file is used, the Pamux APIs do not need to be included in the
imports section of the application’s DEF file. Import libraries are not required for Visual Basic; the
Pamux.BAS file serves this purpose.
ARCHITECTURE
The Pamux driver is implemented as a Microsoft Windows DLL that allows Windows applications
(such as Visual Basic) to communicate with Pamux I/O. The driver, Pamux.DLL, provides a set of APIs in
the C language. This driver may be used with any Windows language that supports DLLs, such as Visual
Basic, C, or C++.
The Pamux driver allows up to four AC28 cards to be used. Before an application can access an AC28
using the driver, the PamuxCardOpen() function must be used to acquire a handle to the AC28.
The driver allows multiple applications to access the AC28s simultaneously, although it does not provide
a means of locking I/O for exclusive access by one application.
The driver keeps track of inputs and outputs to prevent a “1” from being written to a digital input.
Writing a “1” to a digital input causes a “1” to be read from the input regardless of the actual state
of the input module.
PROGRAMING WITH THE PAMUX DRIVER