From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resize build array function programmatically

Hi all,

 

I have been trying to programmatically resize the 'Buil Array' function by using VI scripting, but to no success 😞 I managed to create the attached block diagram with VI scripting but I would still need to programmatically wire the three refnums to the build array node...but I don't know how to add another two terminals.

 

Any help would be greatly appreciated,

 

Enrique

0 Kudos
Message 1 of 3
(2,531 Views)

When you work with the script you have to get the reference of the object that you want to play with. So once you got then you are done. Check the attached code for an example. This code expects a VI with a build array already dropped in.

 

 

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 3
(2,519 Views)

Hi P@Anand,

 

Thanks for your super quick reply and valuable code, which is exactly what I was looking for 🙂

 

Regards,

Enrique

0 Kudos
Message 3 of 3
(2,502 Views)