08-31-2015 04:10 PM - edited 08-31-2015 04:13 PM
I have a very complex LV program that I am trying to ammend to use it with Keithley 2602 dual-channel SMU. I am able, most of the time, to use the ammended program nicely, but many times I get two errors.
The first, -410, Querey Interrupted, and happen after the send function shown in the picture below:
The second, -420, Querey Unterminated, and happen after the recieve function shown in the picture below:
Note that I do not use ready-made drivers, instead I simply write the necessary SCPI commands.
Can anyone tell me what's wrong?
Solved! Go to Solution.
08-31-2015 04:21 PM
08-31-2015 06:19 PM
Hello,
I use LV 2014 Full Development System. While I can use the VISA drivers, I would prefer legacy GPIB drivers for sending and recieving the command for backward compatability, and also simply because I am modifying a program as opposed to writing a new one, and would prefer keeping the same style throughout.
08-31-2015 06:27 PM
08-31-2015 06:35 PM - edited 08-31-2015 06:38 PM
As for the first error, it occurs after the very first command sent ever. As soon as I send: smua.reset() followed by smua.source.output=1, I get the error, so it is kind of wierd.
For the second error...when using a GPIB read function, is it OK if I specifiy the number of bytes higher than what it might actually be?
08-31-2015 07:16 PM
08-31-2015 07:37 PM
I kind of found the problem. After reading the buffer (in some later step), the instrument is in a TALK state. The reset does not take it out of that. So, when I run the program for the first time, no error occure. However, when I run it afterwards, the instrument will generate an error since it is still in TALK state.
I tried sending GTL (Go To Local) but it seems the sytnax is not that simple. I am not able to find any SCPI command that corresponds to GTL to try if that will help...
08-31-2015 07:47 PM - edited 08-31-2015 07:51 PM
I just tried the GPIB EnableLocal vi but it did not take the instrument out of the TALK status (even though I did not wire the address list terminal, which supposedly should have put ALL the instruments into the local mode).
08-31-2015 08:34 PM
So the problem was solved by specifying a large number of count bytes for the GPIB recieve funcition, this automatically ends the TALK state of the instrument.
08-31-2015 08:53 PM
I still think VISA is the way to go. What are you trying to be backwards compatible with?