05-18-2016 04:22 AM
Hello,
a simple situation: I have a wire which changes dynamically its value, but it's assured to have values corresponding to a typedef 'd enum. Now I want to wire this wire to a case structure and have a case for each value of the typedef 'd enum - which is possible to only do manually. But is there a way to have the case structure maintain its subdiagrams reflecting the enum keys? So that if i swap two keys in the enum's typedef, the cases in the case structure swap too? Would you think of another approach to produce the same functionality?
(my current kind of workaround is to put the case structure in a subVI and set the typedef'd enum as Control which makes the case structure reflect on the enum values, but the actual incomming value changes according to the outer VI)
Thank you for any ideas!
Solved! Go to Solution.
05-18-2016 05:14 AM
Hi ravyh,
use the little function shown in this LabVIEW Idea!
(Don't forget to support that idea in case you find it helpful…)
05-18-2016 06:07 AM
1. Is there a reason your "other VI" could not output the type def?
2. The Coerce To Type is really what you want, but you could likely get away with the Type Cast as well.