Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

keithley 2700 driver problems

Hello,

 

Maybe it is usefull.

 

http://forums.ni.com/t5/LabVIEW/KEITHLEY-2400-code-problem/td-p/1424302

 

Regards,

 

 

0 Kudos
Message 11 of 23
(2,511 Views)

You confused me at first...because this thread was all about using a 2700 driver...in your case you are using a model 2400 and 2400 LV driver...better next time to start a new thread please.

 

I ran the Read Single.vi and it works perfectly for me.

I then looked at your spy file, but it turns out this is not a capture of the Read Single.vi

Please configure your NI Spy for options  as follows:

 

- Call history depth : 99999

- Buffer limit per parameter : Large Buffer

 

Run the example again using the default settings (except for the Visa resource for your device) and attach a new spy file.

Be sure that no other programs are open except NI Spy and LabVIEW.

Be sure that no other computers are wired to your instrument during this capture.

 

0 Kudos
Message 12 of 23
(2,492 Views)

this is the capture..

0 Kudos
Message 13 of 23
(2,464 Views)

Your spy file has error 0xBFFF009E. VI_ERROR_LIBRARY_NFOUND    

 

This is not a problem with the 24XX driver example, you have a very basic problem with NI-VISA using GPIB.

First thing I recommended earlier you should check:

 

To test VISA communication:

Open NI-Max and ensure the correct VISA passport is enabled. <-- in your case be sure the NI-VISA Passport for GPIB is marked ON.

Under Tools -> NI-VISA -> Visa Options select the "Passports" entry and on the VISA Options tab you will see a list of VISA passports. Ensure that the NI-VISA passport for GPIB is marked ON. Exit and save.

Run the Start Programs -> National Instruments -> VISA -> NI-VISA Interactive Control. You should see at least two entries if all is working:

 

GPIB0::INTFC <-- this is your GPIB interface

GPIB0::16::INSTR <-- this is your GPIB instrument if configured for GPIB at address 16, with GPIB enabled

 

If you want to talk to the instrument...just double click on the GPIB0::16::INSTR.

Click on the Write tab and press execute...Return Status should be x0.

Click on the Read tab and press execute...Reture Status should be x0 and Buffer should display instrument info.

If all is successful, proceed to LabVIEW and retest.

 

However, the online news is likely to indicate this test will fail...

According to this thread in the forum ( http://forums.ni.com/t5/LabVIEW/VISA-Error-code/td-p/298981 😞

 

"...you either don't have NI-VISA installed, or you have a corrupt installation"

So, you might have to uninstall and re-install NI-VISA.

 

Once you can pass the VISA test above, you can go back to LabVIEW and try basic viwrite and viread tests, then proceeed to retest the 24XX example.

 

0 Kudos
Message 14 of 23
(2,442 Views)

iI have already pass these test. You can look at the previous spy file. This test is included there.

0 Kudos
Message 15 of 23
(2,440 Views)

Is your NI-VISA passport for GPIB marked on?

Can you do a make a simple program using ViWRite and ViRead in LabVIEW and properly communicate with your device?

 

0 Kudos
Message 16 of 23
(2,438 Views)

I havent done this before. Could you give me a hint?

0 Kudos
Message 17 of 23
(2,433 Views)

To check your NI-VISA passports:

Open NI Max (start -> all programs -> national instruments -> Measurement & Automation)

Select from the main menu Tools -> Ni-VISA -> VISA Options

On the left side click on the General Settings "Passports" entry.

Ensure that the NiVi488.dll - NI-VISA Passport for GPIB is marked ON (is checked).

Turn off any other GPIB passports if they exist.

Save any changes and exit.

 

Run the attached vi to test simple NI-VISA communications (visa open, visa write, visa read, visa close).

Be sure to select your GPIB0::25::INSTR resource in the visa resource name and also to enter *idn? for the write buffer.

This should execute without errors and return proper identification from the instrument...if this fails look in NI-SPY and see what errors appear.

If the same 0xBFFF009E appears, uninstall and reinstall of NI-VISA seems to be the next step, possibly LabVIEW too.

 

Also, what is the version/number of GPIB driver are you using?

Is it installed as NI command compatible or Keithley Command Compatible?

 

0 Kudos
Message 18 of 23
(2,426 Views)

yeah i get the same error: 0xBFFF009E

 

I currenty using the Keithley comand compatible. When I had the NI I coulg get any communication with the instrument, using either the Keithley app or the NI for the VISA communication.

0 Kudos
Message 19 of 23
(2,409 Views)

I unistalled the NI-VISA 5.03 that I had. I downloaded the newer version 5.1.1 and installed it with the default options. Am I supposed to select anything more?

Same error from the VI's.

I also tried again the VISA Interactive Control app. It performs the first Write/Read operations successfully, but I get this if I perform again the Read Operation:

"Read Operation
Error

VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed."

 

You can see all this at the log attached (.nitrace)

0 Kudos
Message 20 of 23
(2,401 Views)