LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scripting create array indicator

Solved!
Go to solution

I scripted a vi that has a for loop with a vi inside it.  How do I script the array indicator outside the loop and wire it?

mcnearymw
0 Kudos
Message 1 of 3
(3,203 Views)
Solution
Accepted by topic author mcnearymw

I would be interested to know if there was a better way to create a numeric array, but I created a void array and then created a numeic control with the void array as the owning object. Once you have array reference and subVI reference, get references to the terminals and use the Connect Wire method. The method works like you were using the wiring tool and selected the two terminals so the wire will be there but there is a possibility that the wire is broken.

 

This is what I came up with.

 

ScriptIt.png

Matt J | National Instruments | CLA
Message 2 of 3
(3,182 Views)

Awesome...! That worked just fine. Additionally I did have to use "Adapt to Source" node since the output from my vi was an enum TypeDef.  Thanks

mcnearymw
0 Kudos
Message 3 of 3
(3,171 Views)