Operator`s manual

57 Signametrics
During initialization (DMMInit()), the driver reads various parameters such as DMM type (SM2060/44), and serial
number, and then reads th information from the SM60CAL.DAT file.
The DMMInit() function
parameters that are the names of these files. A qualified technician may modify individual entries in the calibration
ad them using
5.2 Using the SM
Install the SM206032.H an
for header files. This head and, you
will need to convert the SM h the
compiler. Install SM2060.
software must be installed
your program will do a Lo e DLL
automatically.
In using the SM2060 drive
the DMM function. The D H header file, and have names that
clearly indicate the function they invoke. Use DMMSetAperture and DMMSetReadInterval to set the reading
te defined in the header f
Two functions are provide
precision (double) resul atted string ready to be displayed.
DMMInit() function. For
can be retrieved as a string
5.2.1 Multiple
Single .EXE opera
e corresponding calibration
reads the information from these files to initialize the DMM. DMMInit accepts
file, then relo the DMMLoadCalFile command.
2060 Driver With C++ or Similar Software
d DMMUser.H header file in a directory that will be searched by your C/C++ compiler
er file is known to work with Microsoft Visual C++™. To compile using Borl
2060.DEF and SM2060.LIB using ImpDef.exe and ImpLib.exe, provided wit
LIB in a directory that will be searched by the linker for import libraries. The SM2060
prior to running any executable code. Install the SM2060.DLL in a location where either
adLibrary call to load it, or on the PATH so that Windows will load th
r, first call DMMInit to read the calibration information. Call DMMSetFunction to set
MM function constants are defined in the DMMUser.
ra ile.
d to return DMM readings. DMMRead returns the next reading as a scaled double-
t, and DMMReadStr returns the next reading as a form
All functions accept a DMM-number parameter, which must be set to the value nDmm, which was returned by
multiple DMM’s, this value will be 0,1,2.. n. Most functions return an error code, which
using DMMErrStr().
Card Operations under Windows
tion
’s from a single executabAccessing multiple DMM le is the most common way for running up to 10 DMM’s using
e Windows DLL. A com
hread) is used to control
using DMMInit(). The nD
Since this configuration ut
e at a time. For example L must finish
ading the DCV before it will proceed to take a Capacitance reading. Being a relatively slow measurement,
apacitance will dictate the measurement throughput. For improved performance, one can use the following:
Multiple .EXE operation
th bination of several SM2060s and SM2064s can be controlled, as long as the single .EXE
(T all of the units. Make sure that prior to issuing commands to any DMM, it is initialized
mm parameter is passed with each DLL command to define the DMM to be accessed.
ilizes the DLL to service all DMM’s, it must handle a single reading or control command
, when one DMM reads DCV, and another reads Capacitance, the DL
on
re
C
By having several M206032.D hem, you can run multiple DMM’s with separate
executables. For instance, having a copy named SM206032A.DLL in C:\windows\system (Win98/95), and having
two executable fi e0.exe and M ng
calls to the respective DLL. This can provide an execution throughput advantage over the method mentioned above.
If using Visual Ba xe.exe so
nDmm = 1. Also the first should declare th
MultiExe0.exe VB function declarations:
ng
ction DMM
NDmm = 0
MultiExe1.exe VB function declarations:
Declare Func "sm2043 Long
Declare Function DMMRead Lib "sm20432A.dll" (ByVal nDmm As Long, dResult As Double) As Long
NDmm = 1
*
copies of S LL, and renaming t
les, MultiEx ultiExe1.exe, each of the executables will run independently, maki
sic, the MultiE urce code should define nDmm = 0, and MultiExe1.exe should define
e SM2060.DLL and the second should declare SM2064.DLL:
Declare Function DMMInit Lib "SM2060.dll" (ByVal calFile As String) As Lo
Declare Fun Read Lib "SM2060.dll" (ByVal nDmm As Long, dResult As Double) As Long
tion DMMInit Lib 2A.dll" (ByVal calFile As String) As
/***********************************************************************
* Exmp2040.C Exmp2040.EXE