Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Keithley 2470 ID Query Failure

Hello,

 

I'm connecting a Keithley 2470 SMU through LAN to my computer. I have the latest version of their driver and LabView 2018 SP1.

 

When I do an ID Query on the instrument through it's Initialize VI, provided by Keithley, occasionally I will get the following error.

 

-1073807312
VISA Read in Common Framework.lvlib:Keithley 2450.lvlib:Initialize.vi->
Common Framework.lvlib:Keithley 2400.lvclass:Initialize.vi->SMU Test.vi

 

VISA: (Hex 0xBFFF0030) User abort occurred during transfer.

 

The error does not occur every single time I call the Initialize VI with an ID Query request, maybe 1 out of 20 calls, the error will be thrown, it seems completely random when it happens. When I run the code without requesting an ID Query, everything works fine without any issues. This leads me to believe that something is happening with the VISA Read VI, but I can't figure out what.

 

Any help or info is appreciated. I've attached a picture of the VI in question.

0 Kudos
Message 1 of 6
(3,666 Views)

Try adding the suffix "\n" or ";" to your query.  "*IDN?\n" or "*IDN?;"

It may be that it isn't always recognizing the terminate character configuration.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 2 of 6
(3,648 Views)

Can you show the rest of the code you are using?  Are you closing VISA session after calling the INIT.vi?  Perhaps show us the code you are using and not a picture of the driver VI.

 

Are you using the latest Keithley 2470 firmware?  That's a fairly new instrument, but there have been 2 firmware updates since its release.

https://www.tek.com/source-measure-units/2400-series-smu/2470-software/model-2470-firmware-revision-...

 

Craig

0 Kudos
Message 3 of 6
(3,613 Views)

Hello,

 

Thanks for your reply. When adding the "\n" suffix, the SMU throws an error that an invalid character has been encountered. When using the ";" suffix, the SMU continues to display the same behavior as my original code.

0 Kudos
Message 4 of 6
(3,585 Views)

Hello,

 

Yes, I am closing the VISA session, but not immediately after calling INIT.VI. First I take a measurement across a 15 Ohm resistor, read the measurement, then close the VISA session. I'm using the default firmware that came with the device, version 1.6.8d, I'll update the firmware and see if that gives me any new behavior. I've attached a copy of my VI in this replay. Most of the modules/VIs won't load since I can't upload them, but it should give you a good idea of what I am doing, It's a simple VI.

0 Kudos
Message 5 of 6
(3,583 Views)

Thanks for posting code.   Unfortunately without the subvis (SMU.lvclass) I can't really see how you are calling the SMU or handling hte VISA session..

 

Just curious when your VISA session is opened.  Does "Read SMU Config.vi" talk to the instrument or just read a config file.  I happens before INIT, and if you talk to the instrument before that then you would need to close the VISA session before INIT was called.  Typically INIT is the first call the SMU and it opens the VISA session.

 

Craig

0 Kudos
Message 6 of 6
(3,578 Views)