LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

keithley 2400, error -113

Hi, dear NI engineers,

I'm encountering a problem  with Keithley 2400 when doing a J-V sweep.

The thing is, the program runs well at the beginning, but when time goes, the program will stop at a random time, a few seconds to a few tens of seconds, never kept minutes. At the same time, Keithley will display a -113 error.
After checking this error in the manual, the manual told me 'This error indicates that the command you sent to the instrument did not contain a recognizable command name.' But this doesn't make sense to my program, coz the program uses the module instead of operating the fundamental functions.

And I googled too, someone says increasing the timeout time works, but it still didn't work for mine.

So, could you help me with this?

Thank you very much.

 

 

Download All
0 Kudos
Message 1 of 3
(5,861 Views)

Hi Tom,

 

the manual told me 'This error indicates that the command you sent to the instrument did not contain a recognizable command name.'

Then you should create a log file where you write the commands send to your device and it's responses. (As it's an error message from your Keithley device you need to assure the commands send are correctly formatted!)

 

But this doesn't make sense to my program, coz the program uses the module instead of operating the fundamental functions.

I mostly create my own device drivers because I found too many bugs/"features" in the drivers from IDNet…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(5,837 Views)

You are calling the "Enable Output.vi" to turn on the K2400 output inside every loop, but it can't do that because you only turn it off after all the loops complete. Move that outside the loop, or turn it off inside the loop.  Personally I'd setup the voltage initial state and enable the output before the loop, then only do the measurement and voltage increments in the loop.  Now, I'm guessing that's your error, but you should use highlight debugging to see exactly what subvi throughs the error.  

 

Use a shift register for changing the scan_step time rather than two local variables.  Likewise use a shift register to increment the voltage setting.

 

You can also use the instruments built in sweep mode as follows..

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Adding-a-I-V-graph-to-the-Sweep-and-Acquire-...

 

If you want to sweep out and then back looking for hysteresis then consider this example...

https://forums.ni.com/t5/LabVIEW/Source-voltage-using-Keithley-2400/m-p/3803093/highlight/true#M1073...

 

Good luck,

Craig

 

0 Kudos
Message 3 of 3
(5,827 Views)