03-15-2010 04:24 PM
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.
03-15-2010 04:30 PM - edited 03-15-2010 04:35 PM
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.
03-15-2010 04:38 PM
03-15-2010 04:47 PM
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
03-15-2010 05:03 PM