Operator`s manual
Signametrics 48
M.
hen it loads it will take a few seconds to initialize and self calibrate the hardware before the front panel is
disp e
The s d V, I, etc. control the DMM function. As you push a function, the front panel application
will it the selected range and function. Autorange mode is selected by pushing the AutoRange
chec o s the DMM, leaving the DMM in the same state prior to operation. (This is an
inte ent from the external calibration, which writes to the SM40CAL.DAT file.
S-C s ffset and gain drifts due to changes in operating temperature).
The q ontext sensitive and appear in ACV and ACI. When freq is enabled, the
eq c at the same time. In this mode, the reading rate is slower than indicated. When
er is enabled, the period is shown. The SM2042 and SM2044 panel have additional capabilities, which are
on
e various ranges, rates and other parameters that are required. These definitions are the duplicates
ong with
as and
xt Box to display the DMM readings, and a
Opti
.
it Lib "sm204032.dll" (ByVal nDmm as long, ByVal calFile As String) As Long
yVal nDmm As Long, ByVal nRate As Long) As Long
l" (ByVal nDmm As Long, ByVal nFunc As Long) As Long
Lib "sm204032.dll" (ByVal nDmm As Long, ByVal nRange As Long) As Long
Decl m204032.dll" (ByVal nDmm As Long, dResult As Double) As Long
' De
' for
= 4
Global Const Ohm2Func = 21
Global nDmm as Long
' for DMMSetRange()
Global Const Range0 = 0
Global Const Range1 = 1
Global Const Range2 = 2
Global Const Range3 = 3
'for DMMSetRate(): Reading rates
Global Const RATE_5 = 5 '5 rps
Global Const RATE_10 = 10 '10 rps
Global Const RATE_30 = 30
'Global variables
Global nDmm As Long ' Global store for the DMM number
SimplePanel.frm Form file contents:
Private Sub Form_Load() 'Fomr_Load allways gets executed first.
Dim i As Long
nDmm = 0 ‘Set to first DMM in the system
5.3 Visual Basic Front Panel Application
The Visual Basic front panel application, SM2044.EXE, is an interactive control panel for the SM2040 DM
W
lay d.
pu h buttons labele
sw ch the DMM to
k b x. The S-Cal box recalibrate
er
rnal calibration only, and is diff
al i used to correct for any internal o
fre and per check boxes are c
uen y and amplitude are shown
fr
p
disabled if an SM2040 is detected.
The source code file GLOBAL.BAS (in the V_BASIC directory of the distribution diskette) contains the functi
eclarations and th
d
of the “C” header files required to write Visual Basic applications which interact with the driver DLL, al
some global variables required for this particular front-panel application.
5.3.1 Visual Basic Simple Application
The following is a simple panel application for VisualBasic, which includes two files, Global.B
SimplePanel.frm. It has a panel that contains two objects, a Te
igger.
Command Button that acts as a reading tr
Global.bas module file contents:
on Explicit
' De
Declare Function DMMIn
clare all functions we are going to be using: From SM204032.H file
Declare Function DMMSetRate Lib "sm204032.dll" (B
Declare Function DMMSetFunction Lib "sm204032.dl
Declare Function DMMSetRange
are Function DMMRead Lib "s
finitions from UserDMM.H
DMMSetFunction()
Glob
Global Const VACFunc
al Const VDCFunc = 0