
9.9 Sample Programs
159
9
Set Measurement State
Sets up the measurement setting state.
'Measurement Setting Configuration
'Configures instrument settings for measurement
'Function: Resistance Measurement
'Range: 1
'Sampling: FAST
'Triggering: External trigger
'Comparator enabled, REF% mode, reference value 1
, tol1.0% /
–
1.5%, beep upon Hi or Lo
Private Sub SettingsSub()
Dim pad As Integer
'Controller Address
Dim gpibad As Integer
'Device Address
Dim timeout As Integer
'Timeout period
Dim ud As Integer
'State (unused)
pad = 0
'Board Address 0
gpibad = 1
'RM3542 Address 1
timeout = T10s
'Timeout about 10s
Call ibfind("gpib0", 0)
'Initialize GP-IB
Call ibdev(pad, gpibad, 0, timeout, 1, 0, ud)
Call SendIFC(pad)
Call Send(pad, gpibad, ":FUNC RES", NLend)
'Select Resistance function
Call Send(pad, gpibad, ":RES:RANG 1E+0", NLend)
'Select 1000 m
range
Call Send(pad, gpibad, ":SPEE FAST", NLend)
'Select FAST sampling
Call Send(pad, gpibad, ":TRIG:SOUR EXT", NLend)
'Select external triggering
Call Send(pad, gpibad, ":INIT:CONT ON", NLend)
'Continuous measurement ON
Call Send(pad, gpibad, ":CALC:LIM:MODE REF", NLend)
'From here on, comparator settings
Call Send(pad, gpibad, ":CALC:LIM:BEEP HL", NLend)
Call Send(pad, gpibad, ":CALC:LIM:REF 1E+0", NLend)
Call Send(pad, gpibad, ":CALC:LIM:PERC 1.0, -1.5", NLend)
Call Send(pad, gpibad, ":CALC:LIM:STAT ON", NLend)
'Comparator ON
Call ibonl(pad, 0)
End Sub
Summary of Contents for RM3542
Page 2: ......
Page 6: ...Contents iv ...
Page 16: ...Operating Precautions 10 ...
Page 26: ...1 3 Screen Organization 20 ...
Page 32: ...2 3 Turning the Power On and Off 26 ...
Page 46: ...3 8 Confirming Faulty Measurements 40 ...
Page 64: ...4 12 Compensating for Thermal EMF Offset Offset Voltage Compensation OVC 58 ...
Page 84: ...6 4 Auto Exporting Measured Values at End of Measurement Data Output Function 78 ...
Page 90: ...7 3 Printing 84 ...
Page 172: ...9 10 Device Compliance Statement 166 ...
Page 190: ...11 4 Disposing of the Instrument 184 ...
Page 200: ...Appendix 5 Dimensional Diagram A10 Appendix 5 Dimensional Diagram ...
Page 214: ...Index Index 4 ...
Page 215: ......
Page 216: ......
Page 217: ......
Page 218: ......