Series 3700A Switch and Control Cards Reference Manual
Section 13: Model 3750 multifunction control card
3700AS-909-01 Rev. A / Preliminary
13-17
print(rdg)
channel.calibration.step("" .. channel_num,10,rdg)
dmm.range=.1
channel.calibration.step("" .. channel_num,11)
delay(6)
rdg=dmm.measure()
print(rdg)
channel.calibration.step("" .. channel_num,12,rdg)
dmm.range=.01
channel.calibration.step("" .. channel_num,13)
delay(6)
rdg=dmm.measure()
print(rdg)
channel.calibration.step("" .. channel_num,14,rdg)
dmm.range=.1
channel.calibration.step("" .. channel_num,15)
delay(6)
rdg=dmm.measure()
print(rdg)
channel.calibration.step("" .. channel_num,16,rdg)
-- Final steps are to save and lock the calibration.
-- New calibration data is not used
-- if it is not saved.
channel.calibration.save()
channel.calibration.lock()
-- Clean up to restore analog channels to
-- an idle, unconnected state
channel.setmode("" .. (1000 * sl 10),channel.MODE_PROTECT_VOLTAGE_1)
channel.setmode("" .. (1000 * sl 11),channel.MODE_PROTECT_VOLTAGE_1)
channel.setoutputenable("" .. (1000 * sl 10) ,channel.OFF)
channel.setoutputenable("" .. (1000 * sl 11) ,channel.OFF)
channel.write("" .. (1000 * sl 10), 0)
channel.write("" .. (1000 * sl 10), 0)
end
-- Create a function called cal_tot that takes
-- slot number and channel number as parameters
-- No external measurements need to be taken
-- to calibrate the counter channels.
-- Be sure to disconnect all external circuits
-- before executing calibration!
function cal_tot(slot_num,chan_num)
channel_num = (1000 * slot_num) + chan_num
channel.calibration.unlock("slot" .. slot_num,"KI3706")
channel.calibration.step("" .. channel_num,1)
channel.calibration.step("" .. channel_num,2)
channel.calibration.save()
channel.calibration.lock()
end
endscript
Before running these calibration scripts, you must build the functions
cal_dac()
and
cal_tot()
by
typing
cal()
. Now you can calibrate any channel using this script.
Typing
cal_dac(1,10)
runs an internal DMM calibration on Slot 1, Channel 10.
Typing
cal_tot(2,6)
runs the totalizer calibration for Slot 2, Channel 6.