LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB communication problem with labview only (not MAX)

Hi,

I am using Labview to control a Keithley 2420C. The device is connected with a NI USB GPIB cable.

Sometimes the Keithley 2420C will just not communicate at all if I use Labview even though it will communicate perfectly with Measurement Automation Exporer.(MAX)

Restarting the computer solve the problem.

I dont understand how the communication can be made by MAX but fail with a simple "GPIB write" on Labview.

Please if you have any idea where the problem can come from let me know.

Thanks

0 Kudos
Message 1 of 4
(2,511 Views)

Have you tried using the Instrument Driver from here?

 

Keithley 2420C Driver

 

You may have more success with it than using raw GPIB.

0 Kudos
Message 2 of 4
(2,501 Views)

Hello,

 

First thank you for your help. 

I was using such driver before and the problem was the same. I believe the drivers are VIs which use "GPIB write" and "GPIB read" of labview so if the drivers work a simple "*IDN?" ou "*rst" should work as well.

I will try those drivers anyway. I will write down a new post later to keep you informed of the result.

0 Kudos
Message 3 of 4
(2,472 Views)

If you can, go ahead and post your code as well.

 

It sounds like something is not getting initialized or cleared properly.

0 Kudos
Message 4 of 4
(2,468 Views)