10-12-2018 02:46 PM
Lets say I wanted to update a typedef cluster contain an array of enums to a different style, like the new NXG style available in LabVIEW 2018. How would I go about doing that?
I can right-click replace the enum, but if I right-click replace the array, the enum inside is gone, and if I right-click replace the cluster, everything in the cluster is gone...
Thanks for your help!
Solved! Go to Solution.
10-12-2018 03:14 PM
Use a strict typedef for your cluster and ENUM. When you change the appearance of the typedef all your instances of that typedef will be updated.
10-12-2018 03:32 PM
You'll probably have to re-create your clusters, but good job making a typedef, it should make the pain minimal!
10-15-2018 07:30 AM
Mark,
I'm aware that all instances will update when I update one. What I'm trying to do is update the the typedef without recreating it from scratch.
10-15-2018 12:08 PM - edited 10-15-2018 12:12 PM
So a while ago I wrote some code to modernize the front panel. My reasoning was that many controls are there just for debugging and for an API that the user never sees. So wasting space with silver controls irked me. This code does drill into clusters and will replace them with a while loop recursion. I looked into what it would take to replace with the NXG style and unfortunately I don't see the obvious way to do that. The Style of the Replace action may have NXG style controls but I don't know what they are called. Only the NXG Tab style is obvious.
EDIT: Okay it seems NI didn't make new styles for these controls, they just made custom CTL files which can be found here <vi.lib>\NXG_controls Someone could re-write my code to do a replace with the file path and it might work.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord