Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Long measurements using Keithley 2450 SMU, USB Communication

Solved!
Go to solution

Since you are using USB, I should point out a problem I've found with several PCs. 

I've had issues with USB ports on some PCs with Windows 7/8/10.  

 

In newer windows versions there's a power saving options that allows USB ports to go into a low power "sleep" mode. I've found that going into low power mode the VISA sessions gets dropped and the instrument stop responding often with odd errors. Since it can happen at random times, the errors are often different.

 

If that's your problem the solution is to change the power saving plan to "always on", and also make sure that the USB power saving mode is disabled.

 

Hope this helps..easier than writing code to catch a instrument dropping out.

 

I was finally able to download the K2450 driver form their website.  The code I posted should do exactly the same thing as your driver, just using their provided functions.  If it drops out randomly the same way then the problem is not with the measurement and I'd look into the USB.  Maybe try a GPIB or LAN connection.

0 Kudos
Message 11 of 27
(2,832 Views)

Hello,

I think that I've solved the problem. Excuse me for so much delay in anwsering but I have to be sure that it will be working for long term. The problem was, as you mentioned with VISA Clear. When I removed VISA Clear everything is working pretty good. Now I have 3rd week of working my vi and it looks good. 

I want to thank all of you for helping me with that.

Have a nice measurements !! 

0 Kudos
Message 12 of 27
(2,825 Views)

That's great.  If you do try my code I'd be curious if it worked.  I have lots of 2400, but not 2450 to test it on.  

 

The other source of error that might come up in your code is that you try to read only 20 bytes.  Look at the Keithley driver Read.vi, it uses something huge like 20k bytes.  That way you never read too little.  The end of line character will finish the read so setting extra space, 20k vs 20, doesn't matter just like setting a very long timeout.

 

Good luck.

0 Kudos
Message 13 of 27
(2,819 Views)

I have the same problem. I tried to use your code but unfortunately I have Labview 11 and it doesn't open it. Could you please save it in such a way to open it with the v. 11?

Thanks in advance

0 Kudos
Message 14 of 27
(2,787 Views)

Oh, sorry. I misssed your message. I will try your code as soon as I finished my current measurements. 

0 Kudos
Message 15 of 27
(2,785 Views)

Thank you very very much!

 

0 Kudos
Message 16 of 27
(2,778 Views)

Hi MIKLO & SpainUcm,

 

So its working now?  Which version of the code?  If someone needs my code in LV2011 I can re-post, just let me know.

 

Craig

0 Kudos
Message 17 of 27
(2,769 Views)

"Poor form Peter." from the movie Hook. 

 

You marked yourself as the solution when another is the one who posted the idea that brought you to the solution.  It sounds to me like cstorey from message 9 of this post should be marked as the solution if the issue was removing the VISA Clear.  All other inputs that were of benefit at arriving at the solution should be given Kudos.

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

Is your code working for LV11? I'd like to try it, thanks!

0 Kudos
Message 19 of 27
(2,747 Views)

Hi SpainUcm,

I attached my current Keithley driver and killer program saved for Lv11.

 

Download All
0 Kudos
Message 20 of 27
(2,740 Views)