LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to operate two devices k-237 and k-2410 simaltanouly

Hello All,

I have made a labview program to operate both the devices i.e. Keithley 237 and Keithley 2410 simaltanously where K-237 is being used as Sourcemeter and Keithley 2410 as an Ammeter. However, K-237 is not able to read the current and K-2410 is also showing only one value. So I am not able to debug which command is conflicting.

 

The Commands which I am using for K-237 sourcemeter:

 

F0,1X

L10e-3,7X

B400,4,500X

Q1,0,200,5,4,500X

Q7,200,400,5,4,500X

T2,0,4,1X

R1X

N1X

G5,0,2X

V1X

H0X

 

The Commands for K-2410:

 

*RST;

:SOUR:FUNC VOLT;

:SOUR:VOLT 0;

:SENS:FUNC "CURR";

:SENS:CURR:RANG 10E-6;

:DISP:DIG 5;

:OUTP ON;

:READ?;

:OUTP OFF;

 

Please suggest me something to debug this in right direction.

0 Kudos
Message 1 of 26
(2,989 Views)

sorry in place of smiley it is :S.

 

Please reply fast!!!

0 Kudos
Message 2 of 26
(2,983 Views)

it is : S

0 Kudos
Message 3 of 26
(2,980 Views)

Hi,

 

Is your devices connected to your PC? If so, what did you use to connect your PC to the Keithley devices? Are you sending command via GPIB? 

 

Have you tried testing them individually? 

 

Do you have a VI which we can look at for us to see what is the problem?

 

Here's some additional info that might help you:

http://digital.ni.com/public.nsf/allkb/0A12C1142461275A86256FC0001D932E

http://digital.ni.com/public.nsf/allkb/0A12C1142461275A86256FC0001D932E

 

I'll presume that the command you used for those devices are correct.

 

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 4 of 26
(2,979 Views)

Thanks for your quick reply!!!!

Actually I am using VISA to operate these devices. The VI is attached.

 

Please suggest something.

0 Kudos
Message 5 of 26
(2,969 Views)

Hi,

 

Are you running the code once? It seems that you are running your code once. 2 things that I think you should try:

 

  1. Just like what was shown in http://digital.ni.com/public.nsf/allkb/0A12C1142461275A86256FC0001D932E , wrap the code in while loop (this will allow it to run continuously until conditional terminal is met): http://www.ni.com/white-paper/7588/en/
  2. Add a error cluster indicator after each of your VISA Close's error out terminal (just right click on error out terminal and create indicator). This is to see what went wrong. 
  3. Can you not put them in the same sequence structure?

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 6 of 26
(2,960 Views)

Hello,

I have made this program according to your suggestion but I am not sure is it correct or not. So can you please check and tell me whether it is wrong or right. Actually I am not so perfect in programming.

0 Kudos
Message 7 of 26
(2,944 Views)

Hi,

 

Actually, that's not what I meant. What I was trying to say is something like the below screenshot:

 

 Untitled3.jpg

 

I just use concatenate strings and end of the line constant to create a few line sentance. I also added a while loop to let it run continuously and error cluster indicator to see where the problem lies (if any). 

 

Just try it out. I'm not sure if that work unless I try it out myself.

 

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 8 of 26
(2,940 Views)

Hi,

 

Additionally, have you tried operate two devices k-237 and k-2410 individually? Like 1 Vi for K 237 to see if you get any reading and then run another Vi for K2410 to see if it works.   

 

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 9 of 26
(2,939 Views)

Yes I have tried , still then it is not showing any reading on device k-237 but storing abrupt data in file.

0 Kudos
Message 10 of 26
(2,930 Views)