Hey, hopefully this is a quick one (I tried googling but couldn't get an answer).
In my code I'm using a cluster of various data types, one of which is an array. The issue I'm having is I can't use unbundle by name to access the array- because it has no name.
The array starts off by being initialised using the initialise array subVI. I've attached a screenshot (ignore the rest of the code).
Is there a way for me to assign a name to this array so that I can unbundle it by name? It would make certain parts of my code a bit neater as at the moment I have to use a regular unbundle.
Solved! Go to Solution.
right-click the middle terminal of the bundle node -> create constant. In this cluster constant you set the label of the array…
(You should create a typedef for your cluster and use (Un)BundleByName anyway!)
Do it like this.
EDIT: Just saw the other reply which explains it, never mind
What would be the advantage of making my cluster a typedef?
when you change the typedef all instances of this typedef will automatically adapt…
(This becomes even more handy when you use subVIs to handle your cluster!)