LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

typedef'd mechanical action

I have some typedef clusters that include some boolean switches. I needed to change the mechanical actions but the mechanical actions did not update on the application FP  when I updated the typedef. I had to go to the main application FP and change the mechanical actions on each control. Is this normal? And am I going to have to track down every instance of this control? If I do it wouldn't make sense.
PaulG.
Retired
Message 1 of 4
(2,688 Views)
I think mechanical action is considered part of a control's appearance, not its data type, so changing the mechanical action in your typedef will not affect instances of your typedef.  You'll need to switch to a strict typedef in order to force the change in mechanical action to propagate.
Message 2 of 4
(2,679 Views)

Paul,

It depends on the type of typedef.  If it is a typedef then it simply stores the types of all the controls, so in this case boolean.  However, if it is a strict type def then the controls also inherit the properties.  To update all your VIs:

  1. Open them up
  2. Change the typedef to strict
  3. Change the mechanical action
  4. Select File>>Apply Changes
  5. Change the typedef back to typdef
  6. Save all the VIs
0 Kudos
Message 3 of 4
(2,678 Views)
Thanks everyone. I shy away from strict typedefs, but in this instance ...
PaulG.
Retired
Message 4 of 4
(2,668 Views)