LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting wires to build array through VI Scripting

Solved!
Go to solution
Solution
Accepted by topic author HB.

You would probably see your problem if you ran the VI in highlight execution or single stepping mode and then you'll see that you have at least two bugs - the minor one is that you're assuming that the array of terminals is parallel to the array of control refs, but it's not, because the first terminal is the output one. The fastest way to resolve this is probably to only increment your counter inside the false case.

 

The more major is that you're reading the number of terminals on the node before you're resizing it, so that your loop only runs two times.


___________________
Try to take over the world!
Message 11 of 13
(697 Views)

Hi Darin,

 

Thanks a lot. It worked with your block diagram except that I had to pass the reference through "terminal" property node to define the source of wire. LV2012 version attached!

Thanks again. 


Regards
HB

0 Kudos
Message 12 of 13
(672 Views)

Thanks tst,

 

I got your point and it helped me solving the problem. 🙂

Regards

HB

0 Kudos
Message 13 of 13
(670 Views)