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: 

1D Array Of String To For-Loop

Solved!
Go to solution

Hi fellow engineers,

 

I'm new to LabVIEW.

 

I got a question,

 

If I got a 1D array of string and I want to loop my program to the same number of times (Iteration) in conjunction with the numbers of sub-folders generated by the "list folder" function. How can I do it?

 

Any help is greatly appreciated.

 

0 Kudos
Message 1 of 2
(4,878 Views)
Solution
Accepted by topic author saintalan94

Wire the string array to the border of the for loop. LabVIEW will automatically iterate through each element of the array; you should not wire anything to the N terminal of the for loop. This is the default behavior for arrays entering a loop; if you do not want auto-indexing, right-click on the tunnel (where the array enters the loop) to change the behavior.

Message 2 of 2
(4,875 Views)