LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

For loop without N input

Hi Guys,

I have looked at the I/O example and found that the for loop in the example can exist without an input of N. I tried the same thing in the VI created by myself. I think the problem is the type of the tunnel. Can I change the input tunnel into a indexed tunnel? I right-click the tunnel and there is no option to change the tunnel into a auto-indexed one. 

 

0 Kudos
Message 1 of 5
(5,605 Views)

The input to the for-loop must be an Array in the case of using auto-indexing and without N being wired.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 5
(5,602 Views)

Have you looked at the LabVIEW Help? This is explained in there.

 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the _

0 Kudos
Message 3 of 5
(5,596 Views)

With out N value the forloop could not execute.

Either give the N count or wire with an array.

 

17111i5CED6671AD258EEE

Message 4 of 5
(5,581 Views)

Thanks for your help. I finally know how to use it

0 Kudos
Message 5 of 5
(5,531 Views)