LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I update Shared Variable when cluster typedef changes?

I'm trying to use shared variables to greatly simplify some legacy code that I need to support (a real-time system).  I wrote a simple test routine passing a cluster that defined the data I need to communicate, and using a shared variable based on the cluster definition (a typedef).  During development, I made a change to the typedef (changed a Dbl to an Int32) -- all the code that refers to the typedef directly was modified, but the shared variables did not update, i.e. they still show a Dbl (I learned of this when I saw a Coersion Dot appear when trying to update the variable).

How do you "apply changes" when the control on which the shared variable is based changes?  Do I need to delete and then recreate the variable?  If so, what is the "safe" way to do this?  [I assume "Remove from Project" is only the first step ...].

Bob Schor
Message 1 of 2
(2,953 Views)
Bob,
I noticed the same bad behavior in the past.
The best and I guess fastes workaround for now, concerning all the settings made among the data type,  is to set the data type to variant (or something else), submit the SV properties dialog, to reopen the dialog and to choose the customized data type again.

ThSa
Message 2 of 2
(2,928 Views)