Operator`s manual

59 Signametrics
The freq and per check boxes are context sensitive and appear in ACV and ACI. When freq is enabled, the
frequency and am at the this mode, the reading rate is slower than indicated. When
per is enabled, the period is shown. The SM2064 panel have additional capabilities, which are disabled if an
skette) contains the function
clarations and the variou anges definitions are the duplicates
the “C” header files req o w he driver DLL, along with
me particular front-panel application.
ple Application
anel application for Visual Basic, which includes two files, Global.Bas and
SimplePanel.frm. It has a panel that contains two objects, a Text Box to display the DMM readings, and a
tton that ac
Global.bas module file c
Declare Function DMMInit Lib "SM2060.dll" (ByVal nDmm as long, ByVal calFile As String) As Long
Function DMM
Declare Function DMM
Declare Function DMM
Declare Function DMM
' Definitions from DMM
' for DMMSetFunction
Global Const VDCFun
Global Const VACFun
Global Const Ohm2Fu
Global nDmm as Long
' for DMMSetRange()
Global Const Range0 =
Global Const Range1
Global Const Range2
Global Const Range3
'Measurement Apertures for use w
Global Const APR_1p0666s =
Global Const APR_p96s = 5 '96
Global Const APR_p5333s = 6 '5
Global Const APR_p48s = 7 '480ms
Global Const APR_p2666s = 8 '2
Global Const APR_p16s = 9 '160ms
Global nDmm As Long ' Global
SimplePanel.frm Form file contents:
Private Sub Form_Load()
Dim i As Long
nDmm = 0 ‘Set to first DMM in the sy
etFunction
i = DMMSetRange(nDmm, Range2) 'Select the 24V range
i = DMMSetAperture(nDmm, APR_p16s) 'Set measurement Aperture to 160ms
End Sub
Private Sub ReadBotton_Click() 'Read Botton Click action.
Dim i As L is botton is pressed
Dim dRead akes a reading and displays it.
End Sub
plitude are shown same time. In
SM2060 is detected.
GLOBAL.BAS (in the V_BASIC direct e distribution di
The source code file ory of th
de s r , rates and other parameters that are
required. These
of uired t rite Visual Basic applications which interact with t
so global variables required for this
5.3.1 Visual Basic Sim
The following is a simple p
Command Bu ts as a reading trigger.
ontents:
Option Explicit
' Declare all functions we are going to be using: From SM206032.H file.
Declare SetAperture Lib "SM2060.dll" (ByVal nDmm As Long, ByVal nAperture As Long) _
As Long
SetFunction Lib "SM2060.dll" (ByVal nDmm As Long, ByVal nFunc As Long) As Long
SetRange Lib "SM2060.dll" (ByVal nDmm As Long, ByVal nRange As Long) As Long
Read Lib "SM2060.dll" (ByVal nDmm As Long, dResult As Double) As Long
User.H
()
c = 0
c = 4
nc = 21
0
= 1
= 2
= 3
ith DMMSetAperture()
4 '1.07s
0ms Aperture
33ms
66ms
store for the DMM number
'Fomr_Load allways gets executed first.
stem
i = DMMInit(nDmm,"C:\SM60CAL.dat") 'Initialize and load cal file
i = DMMS (nDmm, VDCFunc) 'Set DMM to DCV function
ong
ing As Double
'Any time th
'the DMM t
i = DMMRead(nDmm, dReading) 'Take a reading
TextReading.Text = dReading 'display it in a Text box.