Using Scpi Commands - Keithley DAQ6510 User Manual

Data acquisition and multimeter system
Hide thumbs Also See for DAQ6510:
Table of Contents

Advertisement

Section 9: Speed scanning for increased test throughput

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:
Pseudocode
DAQ6510
9-4
Commands
int scanCnt = 1000
int sampleCnt
int chanCnt
int actualRdgs
string rcvBuffer
timer1.start()
*RST
FORM:DATA ASCII
ROUT:SCAN:COUN:SCAN scanCnt
FUNC 'VOLT:DC',(@101:120)
VOLT:RANG 1, (@101:120)
VOLT:AVER:STAT OFF,
(@101:120)
DISP:VOLT:DIG 4, (@101:120)
VOLT:NPLC 0.0005, (@101:120)
VOLT:LINE:SYNC OFF,
(@101:120)
VOLT:AZER:STAT OFF,
(@101:120)
CALC2:VOLT:LIM1:STAT OFF,
(@101:120)
CALC2:VOLT:LIM2:STAT OFF,
(@101:120)
ROUT:SCAN:INT 0
TRAC:CLE
DISP:LIGH:STAT OFF
DAQ6510 Data Acquisition / Multimeter System User's Manual
Descriptions
Create a variable to hold the scan
count
Create a variable to hold the full
sample count (total number of
readings)
Create a variable to hold the
channel count
Create a variable to hold the actual
reading count
Create a string buffer to hold
extracted readings
Start a timer to help capture
elapsed time
Put the instrument in a known state
Format data as an ASCII string
Apply the scan count
Set function to DCV
Set the fixed range at 1 V
Disable background statistics
Front panel shows only four
significant digits
Set fastest NPLC possible
Turn off line sync
Turn off auto zero
Turn off limit tests
Set trigger interval between scans
to 0s
Clear the reading buffer
Turn the display off
DAQ6510-900-01Rev. A / April 2018

Advertisement

Table of Contents
loading

Table of Contents