Keithley DAQ6510 User Manual page 72

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

Advertisement

DAQ6510 Data Acquisition / Multimeter System User's Manual
Send the following commands for this example application:
Pseudocode
DAQ6510
Pseudocode
DAQ6510
Pseudocode
DAQ6510
DAQ6510-900-01Rev. A / April 2018
Commands
int scanCount = 10
int channelCount = 6
int bufferSize = scanCount *
channelCount
int lastIndex
string tmpBuff
*RST
:TRAC:POIN bufferSize,
"defbuffer1"
:ROUT:SCAN:BUFF "defbuffer1"
FUNC 'VOLT:DC', (@101:106)
VOLT:DC:RANG:AUTO ON,
(@101:106)
VOLT:DC:NPLC 5, (@101:106)
VOLT:DC:AZER ON, (@101:106)
ROUT:SCAN (@101:106)
ROUT:SCAN:COUN:SCAN 10
INIT
for i = 1; i <= bufferSize;
delay 2000
lastIndex = TRACe:ACTual?
tmpBuff = "TRACe:DATA? i,
lastIndex, "defbuffer1",
READ
printBuffer (tmpBuffer)
i = lastIndex + 1
end for
:TRAC:SAVE "/usb1/MyData.csv",
"defbuffer1"
Section 6: Scanning low-level DCV
Descriptions
Create a variable to hold the scan
count
Create a variable to hold channel
count
The number of readings
The last scan index in the buffer
after every two seconds
A temporary buffer that store
scanned data every two seconds
Put the instrument in a known
state
Set the buffer size (not necessary
when using the default buffer, but
added to show command use
case)
Assign all scanned data to
"defbuffer1"
Set channels functions to DCV
Set the channels ranges to auto
Set NPLC to 5
Set autozero function to ON
Setup the scan list
Setup the number of repeated
scans
Initiate the scan
Delay two seconds to allow
readings to accumulate
Query the current buffer index
Query the readings available from
index i to index lastIndex
Print readings in temporary buffer
to console
Save buffer data from defbuffer1
to USB
6-5

Advertisement

Table of Contents
loading

Table of Contents