LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent 34970A Visa session randomly disconnecting

Solved!
Go to solution

MOJO_FZJ has made good suggestions and improvements to the code.

 

What's missing is some error checking and handling.  I'd add a Error Query.vi call in each loop since you are using the EZ Temperature and EZ Volts VIs which do not check the error status of the instrument but simply VISA read/write errors.  If you are getting errors from the instrument that might prevent communications and be why you think the connections is dropping.

 

Craig

 

0 Kudos
Message 11 of 13
(607 Views)

You are doing it wrong...

 

  1. Don't use the "EZ" vi's, those are analogous to using "Express Vi's"
  2. Also you don't need them if you are using the advanced config vi's in the first place.

 

Setting up an HP/Agilent/Keysite 3497xA takes a couple steps

  1. Configure all of the channels for the  measuring mode, range, tranduser, scaling, etc...
  2. Build a scan list
  3. Scan the instrument 

 

When you "read" the instrument you trigger a "scan" and the instrument takes all the measurements you have programmed into it sequentially from the lowest numbered channel to the highest, and returns all of the measurements in a numeric array.

 

I have gone over the proper programming of this instrument a couple times, check out these links

https://forums.ni.com/t5/LabVIEW/Continuous-data-acquisition-with-Agilent-34972A/m-p/3188716

https://forums.ni.com/t5/LabVIEW/What-should-be-the-possible-reason-for-fluctuation-the-voltage/m-p/...

 

========================
=== Engineer Ambiguously ===
========================
Message 12 of 13
(596 Views)
Solution
Accepted by topic author jhirschey

Thanks all for the suggestions.  I tried the DAQ on another computer and it worked fine with all your suggestions.  So the issue is with the original computer I was working on.

0 Kudos
Message 13 of 13
(552 Views)