ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an array from an auto-indexing for loop

Solved!
Go to solution

Hello and greetings from a LabView novice,

In my program I wish to write several commands via VISA and read them in order. I have created an array of the commands, and auto-indexed it to a for loop.

I want to receive an array of the responses, in the order they have been read of course. However, I am unsure what is the best way to do it.

I'm sure the solution is simple but have been unable to find one. I have attached the vi for reference. (The VISA Read\Write vi is part of the device's LabView driver), which works, but seems like an unmodular and inelegant approach.

 

Thanks!

0 Kudos
Message 1 of 3
(3,393 Views)
Solution
Accepted by topic author cl0ck

Simple, you can auto-index the output!

 

2015-12-07_10-16-16.png

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 3
(3,383 Views)

Simple indeed, thanks! 🙂

0 Kudos
Message 3 of 3
(3,351 Views)