Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

Controlling Multiple Instruments: Continuous Read and Dynamic Parameter Update

$
0
0

Hello,

 

I am trying to control three instruments via LabVIEW. My DC power supply and function generator are connected to the computer with a GPIB/ENET 1000 while my scope is connected via USB. I am trying to have the scope take a reading during every iteration of the while loop and have the Event Handler check if there are any changes to the supply parameters. I went by the instrument's respective examples and came up with the VI attached. I've wondered for some time about a setup where you are constantly logging and are able to change the parameters dynamically; this is my first crack at it.

 

The idea is to expand this VI into logging the readings to a text file, automating a sweep from 1K-1MHz and taking averages from that sweep to plot in Excel. For now, I need to get the basic down and I'm getting constant freezes when I run the VI. Sometimes it runs without issue but begins to freeze when I try to set the DC supply voltage and other times it just freezes from the start. I'm wondering if it has to do with the placement of the scope read; before versus after the event handler, but I can't test the theory now as I'm away from the lab.

Would appreciate any advice you can give,

Yusif Nurizade


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>