LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Choose element from array

Hello all
I create VI
Why can't I choose element from array after the VI was stoped ?
With respect
Iakander
0 Kudos
Message 1 of 4
(2,869 Views)

That's because the Index Array VI you placed on the diagram is a function - the code needs to run for it to work. If you want to continually select an element from the array you should surround the Index Array VI with a while loop.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,862 Views)
If the VI is stopped, by definition it no longer runs. It is in edit mode. No data flows in any wires and It does not read your index terminal or execute any code until you run it again.
 
IF you had LabVIEW 8.0+, you could create an XControl that consists of an array indicator and an index control. In this case it would continue to operate even if the VI is stopped. 😉
0 Kudos
Message 3 of 4
(2,851 Views)

Hello

Thanks very much

I understand

Regards

Iskander

0 Kudos
Message 4 of 4
(2,839 Views)