User manual

Series 3700 System Switch/Multimeter Reference Manual Section 8: Scanning
3700S-901-01 Rev. C / July 2008 8-17
-- Assign that configuration to Channels 1 to 60 on Slot 1.
dmm.setconfig( '1001:1060' , 'mydcvolts')
-- Set the scan mode to fixed ABR.
scan.mode=scan.MODE_FIXED_ABR
-- Create a scan list of Channels 1 to 60 on Slot 1.
scan.create('1001:1060')
-- Set the scan count to 10.
scan.scancount=10
-- Scan in the foreground.
scan.execute(reading_buffer)
-- Write the data out to a file on a USB flash drive.
dmm.savebuffer('reading_buffer', '/usb1/mydata.csv')
NOTE The NPLC setting is at .006 in the example, but the fastest NPLC
setting supported in a Series 3700 is .0005. Another speed
improvement option is to set the channel connect rule to OFF
(channel.connectrule = channel.OFF). Using this setting
allows channels to open and close at the same time, provided the
application supports this operation.
Example 5:
Command list to scan the entire Model 3723 card while measuring DC volts on
each channel, and store readings in a buffer called mybuffer (see the
comments for other specifics).
NOTE For the Model 3723, the channels are reed relays, while the analog
backplane relays are EMR relays. Therefore, to have the scan run
faster, set the scan mode to fixed ABR, which closes the backplane
relays before scanning starts and keeps them closed during the entire
scan.
-- Reset the Series 3700 to factory defaults.
reset()
-- Set the range of DC volts to the 10 volt range.
dmm.range = 10
-- Set NPLC to 0.1 NPLC.
dmm.nplc = .1
-- Save the DMM configuration as "mydcv."
dmm.configure.set('mydcv')
-- Make buffer named "mybuffer" and configure it to store
up to 1000 readings.
mybuffer = dmm.makebuffer(1000)