07-16-2019 04:22 AM
So I made an FGV which reads and writes a cluster. However the cluster has about 10 items. In the current way as shown, each time I want to read one element, I get a full list of all the elements. Is there a way to have it more compact?
- One possibility am thinking is to have all the elements from the cluster as single ouputs from the FGV but this would defeat the point of having the cluster.
Is there a way to have a single output which can be toggled like an enum? Or will I need to read all of them to their respective indicators and then each time I need the value I would use local variables? I would want to avoid local variables.
Is there another way of doing this?
Thank you for the replies.
Solved! Go to Solution.
07-16-2019 04:27 AM
07-16-2019 04:48 AM - edited 07-16-2019 04:49 AM
Hi rajiv,
you should also make the cluster typedefined. Each element of that cluster needs to get a descriptive label.
Now you can use UnbundleByName to pick just the cluster element you need without having to use that huge Unbundle node!
Other things:
You should give that FGV VI a better icon… (Also that VI receiving that IO wire.)
Using AutoCleanup would help, too.
Create (and use!) typedefined Enums as well!
07-16-2019 05:06 AM
Thank you very very much!