Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Long measurements using Keithley 2450 SMU, USB Communication

I cannot perform IV curves and properly download the data with Sourcemeter Keitley 2450. I tried with the example program "Keitley 2450 Sweep and Acquire Measurements.vi" from keithley.com but I got the following error:

 

Error -1073807346 occurred at VISA Write in Keithley 2450.lvlib:Error Query.vi->Keithley 2450.lvlib:Enable Measurement Auto Range.vi->Keithley 2450.lvlib:Configure Measurement Range.vi->Keithley 2450 Sweep and Acquire Measurements.vi

 

VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.

 

Any suggestiong/help please?

 

Thank you

 

Dave

0 Kudos
Message 1 of 16
(9,139 Views)

Hi Dave,

 

How are you physically connected to the 2450?  GPIB,  lan, usb, serial?  Hopefully not a serial to usb adaptor.

 

Can you communicate with the instrument with other software?  Kite or other?

 

If you run ñi-max.do you see your instrument listed?  Can you run the communicate with instrument?  

 

What is the VISA resource name you supply in the program?

 

Did you install ni-visa when you installed LabVIEW?  

 

You problem is related to connection, not software settings..

 

Craig

0 Kudos
Message 2 of 16
(9,108 Views)

Hi Craig,

It's usb connected and I can communicate and run the 2450v1.2.vi posted program.i also control it with matlab but not with the sweep and acquire program from keithley. Just run an iv curve saving data.

 

Dave

0 Kudos
Message 3 of 16
(9,102 Views)

Hi Dave,

 

I'm pretty sure that error means you aren't specifying the right VISA address for the instrument.

 

Did you remember to specify the VISA reource in the "Sweep and Acquire.vi"?  See red circle in image below.  This tells the VISA session which instrument you want to use and what methode of communications.  Pull down the drop-down, select the right USB, or hit refresh.  If you don't see it then get the value you used in the other code.  It should look something like "USB0::0x...." 

2450_visa.png

 

 

If you've done that, then enable debugging and watch the data flow through the subvis.  Which vi the error occurs in first and report back.

 

Craig

 

0 Kudos
Message 4 of 16
(9,093 Views)

Hi  Craig,

thank you for your interest and your time. I specified the address. I show you the errors that I got, probably you're right and they are related with the VISAsweep.jpgsweep2.jpg

I send you the block diagram with the errors, what do you think?

 

Thanks,

 

Dave

0 Kudos
Message 5 of 16
(9,084 Views)

Hi Dave,

 

Ok, now we'll get someplace.  The error says to the VISA object or session is invalid.

 

You've got the USB specified, but it fails immediately.   Can you check if there are other USB addresses available? 

 

Do you have NI VISA instlled? 

 

Which version of labview?

Which version of NI-VISA?

 

You can use NI MAX to check those.  And also see if there are conflicts or problems with them.

 

Craig

 

0 Kudos
Message 6 of 16
(9,081 Views)

Try to use this Simple VISA vi.  Select from your available VISA resource name options then press the run arrow and await a response from the instrument in the read buffer.  This instrument should respond to this SCPI query.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 7 of 16
(9,067 Views)

Thank you but I have lv11 and I cannot open it.can you send it as lv11?

Cheers

0 Kudos
Message 8 of 16
(9,058 Views)

Try this

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

I tried and it works, but this is not the real problem. The problem is to makeIV curves and save the data


Minions escribió:

Try this


 

0 Kudos
Message 10 of 16
(9,035 Views)