47
Signametrics
DMM hardware.
DMMInit
accepts the name and location of the calibration file. A qualified technician may
e
DMMLoadCalFile
command.
h C++ or Similar Software
at will be searched by your C/C++ compiler
ft Visual C++™. To compile using Borland, you
d
SM204032.LIB
using
ImpDef.exe
and
ImpLib.exe
, provided with
in a directory that will be searched by the linker for import libraries. The
in a location
indows will load the
tomatically.
libration information. Call
DMMSetFunction
to set
the
UserDMM.H
header file, and have names that
hey invoke. Use
DMMSetRate
to set the reading rate defined in the header file.
provided to return DMM readings.
DMMRead
returns the next reading as a scaled double-
sult, and
DMMReadStr
returns the next reading as a formatted string ready to be displayed.
M -numb
as returned by
or multiple
ror code which can
DMM
nd
the
modify individual entries in the calibration file, then reload them using th
5.2 Using the SMX2040 Driver Wit
Install the
SM204032.H
and
UserDMM.H
header file in a directory th
for header files. This header file is known t
204032.DEF
an
o work with Microso
will need to convert the
SM
mpiler.. Install
SM204032.LIB
the co
SMX2040 software must be installed prior to running any executable code. Install the
SM204032.DLL
where either your program will do a
LoadLibrary
call to load it, or on the
PATH
so that W
DLL au
In using the SMX2040 driver, first call
DMMInit
to read the ca
M function constants are defined in
the DMM function. The DM
ction t
clearly indicate the fun
Two functions are
precision (
double
) re
All functions accept a D M
er parameter, which must be set to the value
nDmm
, which w
nction. F
DMMs this value will be 0,1,2..n. Most functions return an er
DMMInit()
fu
e retrie
b
ved as a string using
ErrStr().
Multiple Card Operations U
er Windows
Single .EXE operation
A
g multiple DMMs from a single e
cutable is the most common w
ccessin
xe
ay for running up to 10 DMMs using the
rolled, as long as the single .EXE
ds to any DMM, it is initialized
mand to define the DMM to be accessed.
reading or control command
ce, the DLL must finish
fore it will proceed to take a Capacitance reading. Being a relatively slow measurement,
Multiple .EXE operation
W
s DLL. A combination of several SMX
and SMX2044s can be
indow
2040s
cont
Thread)
g comman
(
is used to control all of the units. Make sure that prior to issuin
m
using
DMMInit()
. The
nDmm
parameter is passed with each DLL co
Since this configuration utilizes the DLL to service all DMMs, it must handle a single
ne at a
e. For
DMM
pacitan
o
tim
example, when one
reads DCV, and another reads Ca
reading the DCV be
Capacitance will dictate the measurement throughput. For improved performance, one can use the following:
ou can run multiple DMMs with separate
n C:\windows\system (Win98/95), and having
e.
Dmm
= 1. In addition, the first should declare the
SM204032.DLL
and the second should declare
*********************************************
Exmp2040.C Exmp2040.EXE
By having several copies of
SM204032.DLL
, and renaming them, y
xecutables. For instance, having a copy named
SM204032A.DLL
i
e
two executable files,
MultiExe0.exe
and
MultiExe1.exe
, each of the executables will run independently, making
calls to the respective DLL. This can provide an execution throughput advantage over the method mentioned abov
If using VisualBasic, the
MultiExe.exe
source code should define
nDmm
= 0, and
MultiExe1.exe
should define
n
SM204432.DLL
:
MultiExe0.exe VB function declarations:
Declare Function DMMInit Lib "sm204032.dll" (ByVal calFile As String) As Long
Declare Function DMMRead Lib "sm204032.dll" (ByVal nDmm As Long, dResult As Double) As Long
NDmm = 0
MultiExe1.exe VB function declarations:
Declare Function DMMInit Lib "sm20432A.dll" (ByVal calFile As String) As Long
Declare Function DMMRead Lib "sm20432A.dll" (ByVal nDmm As Long, dResult As Double) As Long
NDmm = 1
*************************
/*
*
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com