LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Open and Close on every iteration of loop

I have noticed that when you open the front panel of the Instrument I/O Assistant, the diagram starts with a visa session open, sets timeout property, writes, reads, parses data and ends with a visa session closed.  If I were to place this into a while loop the visa session would open and close on each iteration of the loop. 
 
Is it common practice to open and close the visa session on each iteration?
0 Kudos
Message 1 of 2
(2,826 Views)
No you would not want to open and close that often. If you want to use the Instrument I/O assistant what I would do is configure it the way you want and then save it under another name so you can open the block diagram. Pull the VISA open and close outside of your loop.
Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 2 of 2
(2,821 Views)