04-08-2019 01:34 PM
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
04-08-2019 03:09 PM - edited 04-08-2019 03:11 PM
You are doing it wrong...
Setting up an HP/Agilent/Keysite 3497xA takes a couple steps
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
04-15-2019 10:13 AM
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.