10-14-2016 08:51 AM
I got the same error when the Keithley is set to the TSP command set. Switching to SCPI solved the problem (Front Panel: Push Menu - Settings). Keithley's Test Script Builder uses TSP, the LV driver requires SCPI.
10-18-2016 01:10 PM - edited 10-18-2016 01:11 PM
Hi all
I am trying to talk to the Keithley Sourcemeter 2410 through NI VISA I/O . I am using a GPIB-USB connection. I have already configured the SMU 2410 to the SCPI settings through the front panel. I see the instrument in the NI MAX software.
When I use the following commands through the I/O of VISA, I get the following results:
_____________________________________________________________________
Command: *IDN?
Write: Write Operation (*IDN?)
No Error
Read: Read Operation
Return Count: 82 bytes
KEITHLEY\sINSTRUMENTS\sINC.,MODEL\s2410,4116375,
C33\s\s\sMar\s31\s2015\s09:32:39/A02\s\s/J/M\n
____________________________________________________________________
After this I try to use the sourcemeter for measuring current using the following command sequence. I WRITE these commands into the I/O of VISA, one by one:
*RST
:SOUR:FUNC VOLT
:SOUR:VOLT:MODE FIX
:SOUR:VOLT:RANG 0.2
:SOUR:VOLT:LEV 0
:SENS:FUNC "CURR"
:SENS:CURR:PROT 100e-3
:SENS:CURR:RANG 10e-3
:OUTP ON
:READ?
_____________________________________________________________________
I see no change on the display of the sourcemeter. Nothing changes.
Can you please tell me where I am going wrong?
Also, if you need more information regarding this, let me know.
Thanks
Avinay
10-18-2016 01:31 PM
@avinaysyr wrote:Hi all
I am trying to talk to the Keithley Sourcemeter 2410 through NI VISA I/O . I am using a GPIB-USB connection. I have already configured the SMU 2410 to the SCPI settings through the front panel. I see the instrument in the NI MAX software.
When I use the following commands through the I/O of VISA, I get the following results:
_____________________________________________________________________
Command: *IDN?
Write: Write Operation (*IDN?)
No ErrorRead: Read Operation
Return Count: 82 bytes
KEITHLEY\sINSTRUMENTS\sINC.,MODEL\s2410,4116375,
C33\s\s\sMar\s31\s2015\s09:32:39/A02\s\s/J/M\n____________________________________________________________________
After this I try to use the sourcemeter for measuring current using the following command sequence. I WRITE these commands into the I/O of VISA, one by one:
*RST
:SOUR:FUNC VOLT
:SOUR:VOLT:MODE FIX
:SOUR:VOLT:RANG 0.2
:SOUR:VOLT:LEV 0
:SENS:FUNC "CURR"
:SENS:CURR:PROT 100e-3
:SENS:CURR:RANG 10e-3
:OUTP ON
:READ?
_____________________________________________________________________
I see no change on the display of the sourcemeter. Nothing changes.
Can you please tell me where I am going wrong?
Also, if you need more information regarding this, let me know.
Thanks
Avinay
Does anything show up in the read buffer? That's the main thing.
10-18-2016 01:38 PM
:READ? is a query. (Anything with a question mark is a query.) You have to either do a write followed by a read, or use the query button (which is really just a write followed by a read, made conveniently into one button).
10-18-2016 01:42 PM
Thank you for your reply.
After each time I WRITE the command, I get the following error on READing it:
Read Operation
Error
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
It doesn't make sense to me. Can you help me out with this?
10-18-2016 02:02 PM
Can you :SENSE:CURR? instead?
10-18-2016 02:09 PM
I tried that but I'm still getting the same error.
Read Operation
Error
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
10-18-2016 02:16 PM
Wow. I am at a loss. The *IDN? query was successful, so we know communications is fine, yet a simple read won't work. All those SCPI commands look right, except the :SENS:FUNC "CURR" has quote marks around it. I don't know if this even relevant, though.
10-18-2016 02:26 PM
What is interesting is that even after that first reset command I enter, I still get the same error.
_______________________________________________________________
Command : *RST
WRITE:Write Operation (*RST)
Return Count: 4 bytes
READ: Read Operation
Error
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
_______________________________________________________________
Also, same thing happens when I READ after WRITE(ing) the next command
:SOUR:FUNC VOLT
What could possibly be wrong? Anything to do with communications?
Also, sometimes I get the 420 QUERY UNTERMINATED error as well when I use some example VIs on LV
10-18-2016 02:50 PM
Remember that you only read when you are doing a query (with the question mark). If you read at any other time, you should get a timeout because there is nothing to be read.
I can only suggest that you read this to see if you can get it up and running.