Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69240

Using a TypeDef from a TypeDef

$
0
0

LV2013 (moving to 2017 soon). LVRT

 

I have a TypeDef called "Units".

It's an ENUM, with 40+ values, like "DegC, DegF, kPa, Pa, MPa, etc...

 

The user sets a given channel to have certain units, units are displayed when they plot that channel, sometimes units are converted for analysis.

 

As a CONTROL, I want it to match my other controls - 15 pt black normal font.  I have maybe 10 instances of that.

 

As an INDICATOR, I have maybe 30 instances where I want it to be bold yellow italic 15-pt font.  Maybe 30 other instances where I want it to be bold yellow italic 20-pt font.

 

I had all this set up nicely, but now I had to make a change to the location of the typedef, so it broke every instance.  When I relink them, they all revert to the master copy.

 

What I want is a sub-Typedef, where the CTL includes a copy of the original, but changes the font.  So each window would use an instance of the original, or an instance of the little yellow one, or the big yellow one, as needed.  Then If I changed the list of units, all would follow suit.

 

But LV2013 will not let me do that. A TypeDef cannot start with another TypeDef.

I want to avoid type conversions, if they cost time.  I could cluster a new typedef, but that means bundling / unbundling.

It has to work on RT, since some of the display clusters might be used on RT, simply as connections.

I could live with two or three separate TypeDefs, if i could easily copy the list of items from one to another.

 

Any ideas?

 


Viewing all articles
Browse latest Browse all 69240

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>