<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use TypeDefs for control AND indicator? in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403443#M200367</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi CMB,&lt;/P&gt;
&lt;P&gt;While this isn't an answer to your question (which it looks like you figured out) - it is related to managing&amp;nbsp;cluster-type-defs&amp;nbsp;where there's a need to have a Strictly-typed GUI representation.&lt;/P&gt;
&lt;P&gt;If you continue using type-defs, you'll probably come to a point where a GUI-friendly representation isn't program friendly.&amp;nbsp; For instance, it may be nice to manage some data as an array of&amp;nbsp;clusters, but present the&amp;nbsp;data to the user&amp;nbsp;in a multi-column list box.&amp;nbsp; Or maybe the program-representation is an Enum, but you want the user to have a Menu Ring.&amp;nbsp; I'll sometimes keep a program-friendly version of clusters and&amp;nbsp;when these clusters need to be presented to the user,&amp;nbsp;a translator-VI&amp;nbsp;converts&amp;nbsp;the program-friendly &lt;STRONG&gt;non-strict&lt;/STRONG&gt; representation to (and from)&amp;nbsp;a Strictly-typed GUI representation.&lt;/P&gt;
&lt;P&gt;It's probably&amp;nbsp;over-kill in this case - but&amp;nbsp;someday&amp;nbsp;you may find yourself sacrificing an elegant-diagram because the data-representation is [only]&amp;nbsp;GUI friendly!&lt;/P&gt;
&lt;P&gt;Cheers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message Edited by tbd on &lt;SPAN class="date_text"&gt;08-12-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:36 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Aug 2006 04:34:52 GMT</pubDate>
    <dc:creator>tbd</dc:creator>
    <dc:date>2006-08-13T04:34:52Z</dc:date>
    <item>
      <title>How to use TypeDefs for control AND indicator?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403407#M200340</link>
      <description>I'm an old hand at LabVIEW, but fairly new at using TypeDefs.  They have really made my life easier on my current project, but now I've run into something I can't quite figure out.&lt;P&gt;
In stuck on LV 7.0, but I don't think that matters; I don't see anything different in 8.0&lt;/P&gt;&lt;P&gt;

  My policy is for numeric indicators to be BOLD text, and be transparent (no frame, no background). Numeric controls, have the default frame around them, and plain text.  I think this makes for a pleasing appearance.&lt;/P&gt;&lt;P&gt;

&lt;/P&gt;&lt;P&gt;I use STRICT typedefs when possible, but I understand there are times when it is not.&lt;/P&gt;&lt;P&gt;

  I have a certain cluster (TypeDef) which is arranged to be good looking.  It's always been an indicator, so I TypeDefed (is that a word?) it with transparent frame and bold text.  It works fine.&lt;/P&gt;&lt;P&gt;

Now, I need to make the same cluster into a control, so the user can edit it.  So, my question is, how can I use the typedef I have, yet change it to be a different-looking control?    I realize that I can make it a non-strict typedef.  But then every instance has to be customized.  If I add or remove an itme from the master, all the CONTROL instances lose their frames, which I don't want to happen.  If I make the master a CONTROL, then all the INDICATOR instances gain their frames, which I also do not want.&lt;/P&gt;&lt;P&gt;


I've read &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=174916&amp;amp;query.id=44707#M174916" target="_blank"&gt;this thread&lt;/A&gt;, but the advice doesn't work:&lt;/P&gt;&lt;P&gt;
1... You can't use a typedef within a typedef unless you change it somehow: put it inside a cluster or array.&lt;BR /&gt;


2... Even when you do that, if you change the master, one or the other of the slaves gets clobbered.&lt;BR /&gt;

&lt;/P&gt;&lt;P&gt;

I suppose the only way is to make TWO typedefs, one fro controls and one for indicators, and add or remove items to BOTH.  But that's against the purpose of typedefs.&lt;/P&gt;&lt;P&gt;

Any other way out?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2006 12:29:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403407#M200340</guid>
      <dc:creator>CoastalMaineBird</dc:creator>
      <dc:date>2006-08-12T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TypeDefs for control AND indicator?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403413#M200346</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;If you have a strict control, it can never become an indicator unless the same strict rules apply to the control as well as indicator. I think your only way out is to create both strict type control as well as another strict type indicator. You're just going to have to keep track of them yourself. I think you might be trying to defeat the purpose of the strict typedef trying to do both.&lt;BR /&gt;&lt;BR /&gt;PaulG.&lt;BR /&gt;7.1 with 8.2 "in the mail". &lt;SPAN&gt;&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://ni.lithium.com/i/smilies/16x16_smiley-tongue.gif" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 12 Aug 2006 13:50:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403413#M200346</guid>
      <dc:creator>PaulG.</dc:creator>
      <dc:date>2006-08-12T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TypeDefs for control AND indicator?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403414#M200347</link>
      <description>&lt;I&gt; I think you might be trying to defeat the purpose of the strict typedef trying to do both.&lt;/I&gt;&lt;P&gt;
Well, the STRICT aspect is not a requirement.  It's not the STRICT aspect that's the stumbling block, as far as I can see.&lt;/P&gt;&lt;P&gt;
If I could make it work with NON-STRICT typedefs, I would do that.  But I don't see how.&lt;/P&gt;&lt;P&gt;
I suppose it's a fundamental oxymoron: I want the typedef to force these things to be the same, but they have to be different.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2006 13:58:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403414#M200347</guid>
      <dc:creator>CoastalMaineBird</dc:creator>
      <dc:date>2006-08-12T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use TypeDefs for control AND indicator?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403443#M200367</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi CMB,&lt;/P&gt;
&lt;P&gt;While this isn't an answer to your question (which it looks like you figured out) - it is related to managing&amp;nbsp;cluster-type-defs&amp;nbsp;where there's a need to have a Strictly-typed GUI representation.&lt;/P&gt;
&lt;P&gt;If you continue using type-defs, you'll probably come to a point where a GUI-friendly representation isn't program friendly.&amp;nbsp; For instance, it may be nice to manage some data as an array of&amp;nbsp;clusters, but present the&amp;nbsp;data to the user&amp;nbsp;in a multi-column list box.&amp;nbsp; Or maybe the program-representation is an Enum, but you want the user to have a Menu Ring.&amp;nbsp; I'll sometimes keep a program-friendly version of clusters and&amp;nbsp;when these clusters need to be presented to the user,&amp;nbsp;a translator-VI&amp;nbsp;converts&amp;nbsp;the program-friendly &lt;STRONG&gt;non-strict&lt;/STRONG&gt; representation to (and from)&amp;nbsp;a Strictly-typed GUI representation.&lt;/P&gt;
&lt;P&gt;It's probably&amp;nbsp;over-kill in this case - but&amp;nbsp;someday&amp;nbsp;you may find yourself sacrificing an elegant-diagram because the data-representation is [only]&amp;nbsp;GUI friendly!&lt;/P&gt;
&lt;P&gt;Cheers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message Edited by tbd on &lt;SPAN class="date_text"&gt;08-12-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:36 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2006 04:34:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-use-TypeDefs-for-control-AND-indicator/m-p/403443#M200367</guid>
      <dc:creator>tbd</dc:creator>
      <dc:date>2006-08-13T04:34:52Z</dc:date>
    </item>
  </channel>
</rss>

