6485 Sample Rate with Labview
Posted: September 28th, 2015, 9:09 am
Hi all,
I am trying to take very small ~5-10pA measurements with my 6485 and record the readings in Excel using LabView. There is also another component where the voltage steps with a Keithley 3390 function generator happening in my program but that part shouldn't be interfering. Right now, I am getting about 4 samples/second with a GPIB connction. My goal is ~200 samples/second.
I have integrated the suggested SENSE:CURR:NPLC 0.01 command to get the 6485 off of the "slow" rate mode but as soon as I reach the "KE6485 Read" function, it goes back to the slow mode. I have tried replacing that function with a "GPIB read command" and using a "decimal sting to number" function to feed into the "Build Array" Function but then I get an error 6 (Generic File I/O Error) on labview and an error 420 (Query Unterminated.) on the 6485. This makes me think it doesn't know what to read on the screen.
Looking back at the - manual (Example E-3 in appendix E) there is a code for a 900 readings/second method but I am unsure how to incorporate it into labview. The code is:
*RST ' Return 6485 to RST defaults.
FORM:ELEM READ ' Return readings only
FORM:BORD SWAP ' Set for swapped byte order
FORM:DATA SRE ' Return single precision floating point binary
TRIG:DEL 0 ' Set trigger delay to zero seconds
TRIG:COUNT 8 ' Set trigger count to 8
SENS:CURR:NPLC .01 ' Set integration rate to .01 PLC
SENS:CURR:RANG .002 ' Use 2mA range
SENS:CURR:RANG:AUTO OFF ' Turn auto-range off
SYST:ZCH OFF ' Turn zero check off
SYST:AZER:STAT OFF ' Turn auto-zero off
DISP:ENAB OFF ' Turn display off
*OPC? ' Operation complete query (synchronize completion of commands)
read back result of *opc?
for i = 1 to 1000
"talk" the Model 6485. ' In 488.1 mode this will automatically do a READ? (see “Trigger-on-talk,” page G-7)
read back the binary data
next i
DISP:ENAB ON ' Turn display back on
When I looked up the trigger on talk section, it seemed like it should be reading whatever is on the screen by default which makes the 420 error more mysterious.
I have attached my VI (Run it with waveform 1 for DC). Does anyone have any suggestions?
I am trying to take very small ~5-10pA measurements with my 6485 and record the readings in Excel using LabView. There is also another component where the voltage steps with a Keithley 3390 function generator happening in my program but that part shouldn't be interfering. Right now, I am getting about 4 samples/second with a GPIB connction. My goal is ~200 samples/second.
I have integrated the suggested SENSE:CURR:NPLC 0.01 command to get the 6485 off of the "slow" rate mode but as soon as I reach the "KE6485 Read" function, it goes back to the slow mode. I have tried replacing that function with a "GPIB read command" and using a "decimal sting to number" function to feed into the "Build Array" Function but then I get an error 6 (Generic File I/O Error) on labview and an error 420 (Query Unterminated.) on the 6485. This makes me think it doesn't know what to read on the screen.
Looking back at the - manual (Example E-3 in appendix E) there is a code for a 900 readings/second method but I am unsure how to incorporate it into labview. The code is:
*RST ' Return 6485 to RST defaults.
FORM:ELEM READ ' Return readings only
FORM:BORD SWAP ' Set for swapped byte order
FORM:DATA SRE ' Return single precision floating point binary
TRIG:DEL 0 ' Set trigger delay to zero seconds
TRIG:COUNT 8 ' Set trigger count to 8
SENS:CURR:NPLC .01 ' Set integration rate to .01 PLC
SENS:CURR:RANG .002 ' Use 2mA range
SENS:CURR:RANG:AUTO OFF ' Turn auto-range off
SYST:ZCH OFF ' Turn zero check off
SYST:AZER:STAT OFF ' Turn auto-zero off
DISP:ENAB OFF ' Turn display off
*OPC? ' Operation complete query (synchronize completion of commands)
read back result of *opc?
for i = 1 to 1000
"talk" the Model 6485. ' In 488.1 mode this will automatically do a READ? (see “Trigger-on-talk,” page G-7)
read back the binary data
next i
DISP:ENAB ON ' Turn display back on
When I looked up the trigger on talk section, it seemed like it should be reading whatever is on the screen by default which makes the 420 error more mysterious.
I have attached my VI (Run it with waveform 1 for DC). Does anyone have any suggestions?