
Signametrics
30
SMX4032.exe
Visual Basic Scanner control panel executable
Msvcrt.dll
System file. Installs in your
C:\WINDOWS\SYSTEM
directory.
Windrvr.vxd
Win98/95 Virtual Device Driver. Installs in your
C
:\WINDOWS\SYSTEM\VMM32
directory.
Windrvr.sys
Win NT/Win 2000 Virtual Device Driver. Installs in your
C
:\WINNT\SYSTEM32\DRIVERS
directory.
SMX4032.INF
Plug-and-Play driver
Install.doc
Installation instructions in MS Word
During initialization (
SCANInit()
), the driver reads various parameters such as Scanner type (SM4020/22/40/42),
and serial number etc..
5.2 Using the SMX4032 Driver with C++ or Similar Software
Install the
SMX4032.H
and
ScanUser.H
header files in a directory that will be searched by your C/C++ compiler
for header files. These header files are known to work with Microsoft Visual C++™.To compile using Borland, you
will need to convert the
SMX4032.DEF
and
SMX4032.LIB
using
ImpDef.exe
and
ImpLib.exe
, provided with the
compiler. Install
SM4040.LIB
in a directory that will be searched by the linker for import libraries. The SMX4032
software must be installed prior to running any executable code. Install the
SMX4032.DLL
in a location where
either your program will do a
LoadLibrary
call to load it, or on the
PATH
so that Windows will load the DLL
automatically. A common place for the DLL is at C:\WINDOWS\SYSTEM directory for Win9X/ME/XP or at
C:\WINNT\SYSTEM32 directory for NT and Windows 2000.
In using the SMX4032 driver, first call
SCANInit
to initialize the scanner hardware and software. This function
should only be used once. Call
SCANSetConfig
to set the Scanner to a desired configuration, be it
TwoWire
,
FourWire
etc. The Scanner function constants are defined in the
ScanUser.H
header file, and have names that
clearly indicate the function they invoke.
Two functions are provided to set channel-relays,
SCANSelectChannel
and
SCANSetChannelRelay
. The first
opens all channels in a group, and closes the specified channel. The second function is usable while the scanner is in
the
Universal
configuration, and opens or closes a specified channel relay,.
Most functions accept a Scanner number parameter, which must be set to the
iScan
value when initializing the
scanner with the
SCANInit.
For multiple Scanners this
iScan
value will be 0,1,2..n. Most functions return an error
code that can be retrieved as a string using
SCANErrStr.
5.2.1 Multiple Card Operations under Windows
5.2.1.1 Single .EXE operation
Accessing multiple Scanners from a single executable is the most common way for running up to 12 Scanners using
the Windows DLL. A combination of several SMX403X can be controlled, as long as the single .EXE (Thread) is
used to control all of the units. Make sure that prior to issuing commands to any Scanner, it is initialized using
SCANInit
. The
iScan
parameter is passed with each DLL command to define the unit to be accessed. Since this
configuration utilizes the DLL to service all units, it must handle one command at a time. For example, when one
Scanner’s channel is selected (with a non polled command the DLL must finish the operation prior to addressing
another Scanner. For improved performance, one can use the following:
5.2.1.2 Multiple .EXE operation
By having several copies of
SMX4032.DLL
, and renaming them, you may multiple Scanners with separate
executables. For instance, having a copy named
SM4040A.DLL
and one named
SM4040B.DLL
in
C:\WINDOWS\SYSTEM (Win98/95), and having two executable files,
MultiExeA.exe
and
MultiExeB.exe
, each