03-23-2012 05:24 PM
Hello, I am using Labview 2010 to try to control a Keithley 2400 Sourcemeter by GPIB. I am using the labview drivers from the Keithley 24XX drivers package which I downloaded from the "Find Instrument Drivers" in Labview.
I am trying to use the device as a current source to power an electromagnet. I have the device set up and it will output current, but no matter how high I adjust the compliance value, the voltage output of the sourcemeter will not exceed 2 volts.
I'm pretty sure this is not a device limitation because when I adjust the compliance and current manually the device has no trouble. For some reason when I control the device with labview it just won't go over 2 volts. Any help would be great.
I have included my program here. If anyone needs screenshots to diagnose this issue, let me know.
Solved! Go to Solution.
03-23-2012 06:48 PM
Is your voltage reading set to autorange? If not, then you're probably reaching range-compliance. Throw in a Keithley "Configure Measurement.vi" in after the reset, and make sure autorange is True.
Range compliance is when the little mA (or uA, A, mV, V, etc) in the lower right of the front panel display is blinking. Standard compliance is when the "Compl" is blinking.
03-28-2012 02:24 PM
Yep, the "Compl" light is blinking, so it is the range compliance. The range compliance is set at 2.1V. I added the "Configure Measurement" vi and set the vi to Auto, but this didn't change the range compliance.
Also, I set the Auto to false and tried adjusting the "Manual Range." When I get above 2.1 V, I get a message that says :
Instrument reports:
824,"Cannot exceed compliance range"
I have included the latest VI here
Is there a VI that changes the compliance range, or a VI that sets it to auto?
03-28-2012 03:27 PM
Oops, I meant the Units are blinking. It is range compliance, not standard compliance.
03-28-2012 04:14 PM
I think I got it. I made a little modification to the "Configure Over Voltage Protection." I changed the String in the GPIB command from "%.;SOUR:VOLT:PROT %g" to "%.;SENS:VOLT:PROT %g" which changes the range compliance.