ection 9: Speed scanning for increased test throughput DAQ6510 Data Acquisition / Multimeter System
9-4 DAQ6510-900-01Rev. A / April 2018
Using SCPI commands
This sequence of SCPI commands executes a 20-channel scan 1000 times and saves the data to the
controlling computer.
You may need to make changes so that this code will run in your programming environment. In the
table, the SCPI commands have a light gray background. The light green shaded code represents
pseudocode that will vary depending on the programming environments you use.
Send the following SCPI commands for this example application:
Commands Descriptions
Pseudocode
Create a variable to hold the scan
Create a variable to hold the full
sample count (total number of
Create a variable to hold the
Create a variable to hold the actual
Create a string buffer to hold
Start a timer to help capture
Put the instrument in a known state
Format data as an ASCII string
ROUT:SCAN:COUN:SCAN scanCnt
FUNC 'VOLT:DC',(@101:120)
Set the fixed range at 1 V
VOLT:AVER:STAT OFF,
(@101:120)
Disable background statistics
DISP:VOLT:DIG 4, (@101:120)
Front panel shows only four
VOLT:NPLC 0.0005, (@101:120)
Set fastest NPLC possible
VOLT:LINE:SYNC OFF,
(@101:120)
Turn off line sync
VOLT:AZER:STAT OFF,
(@101:120)
Turn off auto zero
CALC2:VOLT:LIM1:STAT OFF,
(@101:120)
Turn off limit tests
CALC2:VOLT:LIM2:STAT OFF,
(@101:120)
Set trigger interval between scans
Clear the reading buffer