LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

not executed Commands from Testprograms written in Labview communicating over GPIB

Hello

 

Sometimes I have the problem that the commands sent from testprograms written in Labview aren't executed from the devices

(for example a counter or a power supply).

An extension of the the wait time between Write and Read couldn't solve the problem (We use VISA-VIs or the Manufacturers-VIs).

 

First workaround is to send the command again.

 

Somebody else ever had the same problems to deal with? What did you do?

 

Many thanks

 

Best Regards

 

Silvio

0 Kudos
Message 1 of 11
(3,552 Views)

Hi

 

So what kind of devices are you using ? LabVIEW version ?

Did you still contact de third party device manufacturer ?

 

Kind regards

0 Kudos
Message 2 of 11
(3,530 Views)

Usually stuff like this is caused by incomplete understanding of communications using the GPIB bus (either by the programmer OR by the supplier of the drivers - the latter reason being why I almost always write my own drivers).

 

Many times, an instrument fails to respond in what we considre a "timely" manner - a prime example is an instrument that takes several seconds to complete a measurement.  Many times, instruments don't queue commands, so if you send a command to an instrument while it is still processing a previous command, it won't be aware of the command you just sent, and you will get a timeout.  In this case, it's best to make the VISA timeout something like 5000 ms and - if your instrument accepts the command - use *OPC? to turn your command into a query.  This way, your application always waits for a response - usually a "1" - from the instrument being commanded before sending the next command. 

 

Bill

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 3 of 11
(3,524 Views)

Hi Bill

 

Fact is, that with the same kind of devices (for example a Agilent counter 53131) and the same test adapter, the same testprogram exe and the same DUT we see different results, that means:

 

I have tested everything on my computer and then transferred all the equipment in the test room and with some computers it works without any problems with others not (Installation on the computer is the same). We do not use always the same computer to test the same DUT.

 

Best Regards


Silvio

 

0 Kudos
Message 4 of 11
(3,511 Views)

Oops, I forgot to post the LabVIEW Version we use Smiley Surprised

 

We have installed on the computers:

 

1. the Agilent IO Libraries

2. LabVIEW Runtime Engine 8.2.1 (because we still have programs written in LV 8.2.1 and we don't want to update them)

3. LabVIEW Runtime Engine 2010

 

The device we always use is the Agilent Data Acquisition/Switch Unit 34970A with measurement and switch modules.

Usually the communication to the computer goes over Agilent USB to GPIB converters 82357, but

we have some computer with a built-in GPIB card. Could that be a problem/difference?

 

Best Regards

 

Silvio

0 Kudos
Message 5 of 11
(3,509 Views)

Hi Silvio

 

So you are not using a LabVIEW development version but only a LabVIEW application (.exe) ?

 

Then you have to check if you have all the drivers installed like NI-488.2, NI-VISA etc.

 

If you don't have the source code (LabVIEW project or VI) it will be very hard to find the problem.

 

Kind regards

0 Kudos
Message 6 of 11
(3,498 Views)

You've also added an extra level of complexity by using Agilent GPIB controllers. You have to make sure you add tulip support in order to use these with LabVIEW. I don't quite understand the decision when a controller from NI is the same price and you don't have to change anything in MAX.

0 Kudos
Message 7 of 11
(3,493 Views)

@sly21 wrote:

 

Usually the communication to the computer goes over Agilent USB to GPIB converters 82357, but

we have some computer with a built-in GPIB card. Could that be a problem/difference?

 


Well, is there a pattern you can recognize like its working with the USB-GPIB and not with the built-in GPIB card?

 

Ben64

0 Kudos
Message 8 of 11
(3,491 Views)

Hi everbody!

 

Yes, we have installed all drivers like NI-488.2, NI-VISA.

And, yes, tulip is set in MAX.

 

I'm not quite sure if it is a problem of the GPIB card or not. That's what I'm trying to find out.

Anybody ever had a problem like that?

 

Best Regards

 

Silvio

 

 

0 Kudos
Message 9 of 11
(3,483 Views)

Can you attach your NI-Spy/NI-Trace file?

0 Kudos
Message 10 of 11
(3,475 Views)