LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Older instruments do not respond to Meas and Auto Explorer Commands

We use Measurement and Automation Explorer running on an XP PC to send simple commands to instruments via the NI GPIB-USB-B adaptor. Nothing fancy, just enough to confirm the instrument's GPIB interface is working. We repeatedly find that some older instruments (pre-SCPI) don't respond, even though 'Scan for Instruments' correctly finds them. If we send commands using a VERY OLD HP 85 computer, the instrument rsponds without a problem. Is there anything about the way NI software interacts over the GPIB that might cause this? Thanks.
0 Kudos
Message 1 of 6
(2,876 Views)

Try increasing the timeout.  I use a number of non-SCPI instruments here and found that LV software that works with the instruments on a slower PC wouldn't work on faster PCs (all with XP) until I added some delay (I had to go as long as 5S in one case).

 

Regards,

 

Michael Tracy

Synergy Microwave

 

0 Kudos
Message 2 of 6
(2,871 Views)

If the scan for instruments finds them, then everything is ok. The only other thing that is done is that MAX sends each found instrument the *IDN? query and if your instrument does not support that command, then obviously the command will fail. Just ignore it. The other thing is that the GPIB defaults are set to IEEE.488-2 and that assumes the only thing required is the EOI line. Older, non-standard instruments often required an additional termination character. You can change this in the GPIB properties window.

 

All GPIB utilities will probably make the same assumptions. The standard has been in place for over 20 years.

0 Kudos
Message 3 of 6
(2,869 Views)

Hi All. Thanks for your brisk responses. I'm currently using a 10 second timeout, which times out! I tried messing around with various combinations of termination. Out of the blue, the unit started working over the GPIB. However, I couldn't find a consistent termination setting which worked every time.

 

The instrument reports a syntax error when it fails. I'm thinking that somewhere along the line, the message may be getting 'shifted' due to extra or missing characters (as expected by the unit), so the wrong sequence of characters is read by the instrument. None of this happens when using the HP 85.

 

I could almost walk away from this as a quirk of one unit, but I have seen this same issue many times, pretty much always with older Agilent (HP) instruments.

0 Kudos
Message 4 of 6
(2,822 Views)

There is also a bus timing setting in MAX for your GPIB controller. Try setting it to the maximum.

 

If you have the instrument manuals, you should not have to guess at what additional termination characters you need besides EOI.

 

I've worked with numerous old Agilent instruments and the vast majority of problems have been fixed with bus timing and the use of correct termination. I have also found that using the GPIB functions instead of VISA works better. You also have the termination options (mode input) with the GPIB Read and GPIB Write that you don't have with VISA and you can use different settings for different instruments.

Message 5 of 6
(2,814 Views)

Excellent advice, as always, from Dennis. I have also seen several GPIB issues which have been resolved by reconfiguring the GPIB timing. For more information on Dennis' suggestion, please peruse the following KB.

 

Changing the Bus Timing Speed of the GPIB Bus

http://digital.ni.com/public.nsf/allkb/736C655699AE2A938625709800737D9F?OpenDocument

 

I hope this was helpful,

Best wishes,

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/
0 Kudos
Message 6 of 6
(2,753 Views)