03-26-2014 11:33 AM
I am programming my Sourcemeter with Labview with SCPI commands to set up a measurement. I want to make 2 measurements, one point at each configuration. When I load the script into the sourcemeter, it appears that the first point's settings are overwritten by the second point's settings. Any idea what I'm doing wrong?
Script to load:
*RST
*CLS
:OUTP:SMODE HIMP
*SRE 1
:STAT:MEAS:ENAB 512
:SOUR:CLE:AUTO ON
:FORM:ELEM VOLT, CURR
:SOUR:FUNC CURR
:SOUR:CURR
:SENS:FUNC 'VOLT'
:SENS:VOLT:PROT 12
:SOUR:DEL 0.1
:SOUR:MEM:SAVE 1
:SOUR:FUNC CURR
:SOUR:CURR
:SENS:FUNC 'VOLT'
:SENS:VOLT:PROT 12
:SOUR:DEL 0.1
:SOUR:MEM:SAVE 2
:TRIG:CLE
:TRIG:COUN 1
:TRAC:POIN 1
:TRAC:FEED SENS
:TRAC:FEED:CONT NEXT
Scrip to call:
:SOUR:MEM:POIN 1
:SOUR:MEM:STAR 1
and
:SOUR:MEM:POIN 1
:SOUR:MEM:STAR 2
03-27-2014 02:58 PM
Did you download drivers for the device from ni.com? It doesn't sound like you are experiencing problems with LabVIEW connecting to the device. This seems more like an issue with the commands you are sending and what they do. I would suggest contacting Keithley or searching their support to learn how to write a script for you application.