10-25-2017 09:44 AM
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
10-28-2017 05:41 AM - edited 10-28-2017 05:44 AM
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
10-28-2017 06:05 AM
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
10-28-2017 10:10 AM
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...."
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
10-30-2017 05:25 AM
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 VISA
I send you the block diagram with the errors, what do you think?
Thanks,
Dave
10-30-2017 06:49 AM - edited 10-30-2017 06:52 AM
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
11-01-2017 09:45 AM
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.
11-01-2017 11:59 AM
Thank you but I have lv11 and I cannot open it.can you send it as lv11?
Cheers
11-01-2017 01:39 PM
Try this
11-02-2017 04:05 AM
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