Hi all,
Ahhhhhh.... I have a typ-def cluster array with many elements in each cluster. I created a vi, in which I delcared a 20 elements with specified values (a vi that contain constant values). I made a minor change in my typ-def, and all the values that I keyed in got reset. How do I avoid that in the future? Thx!
Yik
Solved! Go to Solution.
One thing you can do is create an "initialize" sub-VI for your typedef, which wires the default values you want (specified as constants on the subVI's block diagram) into the appropriate places. The output of the subVI would be your typedef, containing the default values.
Did that make any sense?
Here's a picture...
That's what your "initialize" subVI would contain.
See attachment for what I am doing.
Diane's way will work fine. I will just put it in my loop for all my elements in the array. thanks!
Yik