<?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: Get specific data type of numeric control by reference in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263178#M1241663</link>
    <description>&lt;P&gt;I have a .ctl containing different Rings and Numerics. I hand this .ctl via it's reference to my SubVI, because the Rings StringsAndValues[] are edited.&lt;/P&gt;
&lt;P&gt;If I pass the .ctl via Value those StringsAndValues[] are lost. That is the reason I have to pass by Ref.&lt;/P&gt;
&lt;P&gt;So can I cast my reference to my specific control then? If yes, how do I generate a class from my specific .ctl ?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 07:49:01 GMT</pubDate>
    <dc:creator>Quiztus2</dc:creator>
    <dc:date>2022-10-26T07:49:01Z</dc:date>
    <item>
      <title>Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263113#M1241631</link>
      <description>&lt;P&gt;Is there a property to figure out if a numeric controls data type is e.g U32 or I64? I hand the control to a SubVI by reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:06:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263113#M1241631</guid>
      <dc:creator>Quiztus2</dc:creator>
      <dc:date>2022-10-25T21:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263117#M1241634</link>
      <description>&lt;P&gt;There is a property called "Representation" when you enable scripting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Type.png" style="width: 306px;"&gt;&lt;img src="https://ip1.i.lithium.com/12437901a0318303ab0be4759a37e8bd0f3d5447/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303935393069433744434144414645333742383346372f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="Data Type.png" alt="Data Type.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:11:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263117#M1241634</guid>
      <dc:creator>Gregory</dc:creator>
      <dc:date>2022-10-25T21:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263174#M1241660</link>
      <description>&lt;P&gt;Thanks for suggesting Representation. I can't find this on my properties.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there no way without Scripting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: I enabled scripting and now Representation shows up. Thx&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 07:35:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263174#M1241660</guid>
      <dc:creator>Quiztus2</dc:creator>
      <dc:date>2022-10-26T07:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263177#M1241662</link>
      <description>&lt;P&gt;Beware that scripting properties are not available in executables.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 07:36:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263177#M1241662</guid>
      <dc:creator>pincpanter</dc:creator>
      <dc:date>2022-10-26T07:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263178#M1241663</link>
      <description>&lt;P&gt;I have a .ctl containing different Rings and Numerics. I hand this .ctl via it's reference to my SubVI, because the Rings StringsAndValues[] are edited.&lt;/P&gt;
&lt;P&gt;If I pass the .ctl via Value those StringsAndValues[] are lost. That is the reason I have to pass by Ref.&lt;/P&gt;
&lt;P&gt;So can I cast my reference to my specific control then? If yes, how do I generate a class from my specific .ctl ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 07:49:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263178#M1241663</guid>
      <dc:creator>Quiztus2</dc:creator>
      <dc:date>2022-10-26T07:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263180#M1241665</link>
      <description>&lt;P&gt;You can pass your reference as generic Control (as you probably are already doing), use "To More Specific Class" and check whether an error is thrown. But you must try with all possible types.&lt;/P&gt;
&lt;P&gt;Edit: if the subvi expects only one type, you must pass a typed reference. To change the reference type, drag a control of desired type into the reference terminal control of the subvi.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 07:54:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263180#M1241665</guid>
      <dc:creator>pincpanter</dc:creator>
      <dc:date>2022-10-26T07:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263212#M1241681</link>
      <description>&lt;P&gt;As simpler way is to use the Get Type Information.vi.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Type test.png" style="width: 351px;"&gt;&lt;img src="https://ip1.i.lithium.com/ede80aba1e968d4b4877f87bac0e6a442442b25a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303936303969374633444334454636344434443042362f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="Type test.png" alt="Type test.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Control reference is a generic Control GObject. Make this into a subVI and wire your control reference to it. You'll get a coercion dot, since it converts to the generic GObject class. However, you'll still get the correct data type.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Type Test Result.png" style="width: 216px;"&gt;&lt;img src="https://ip1.i.lithium.com/65ddbb31f61def6041fd2c5e8f57e4041e2234b3/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303936313169373735413131383137433631363334432f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="Type Test Result.png" alt="Type Test Result.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Basjong53_1-1666777312244.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/08db556b0ddfe41c5d55de8c7d3fc635294f7675/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303936313269453735313336413544334344423033352f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Basjong53_1-1666777312244.png" alt="Basjong53_1-1666777312244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 09:42:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263212#M1241681</guid>
      <dc:creator>Basjong53</dc:creator>
      <dc:date>2022-10-26T09:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263281#M1241715</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/40467"&gt;@pincpanter&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Beware that scripting properties are not available in executables.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I believe this one is available in the runtime engine.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:19:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263281#M1241715</guid>
      <dc:creator>Gregory</dc:creator>
      <dc:date>2022-10-26T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263437#M1241774</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/172572"&gt;@Gregory&lt;/a&gt;&amp;nbsp; ha scritto:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/40467"&gt;@pincpanter&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Beware that scripting properties are not available in executables.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I believe this one is available in the runtime engine.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are right. Thanks, I learned something new.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 08:30:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263437#M1241774</guid>
      <dc:creator>pincpanter</dc:creator>
      <dc:date>2022-10-27T08:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263826#M1241944</link>
      <description>&lt;P&gt;If I understand correctly, not all festures of scripting are available in builds. How does one know? What about real time targets?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 14:27:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263826#M1241944</guid>
      <dc:creator>Quiztus2</dc:creator>
      <dc:date>2022-10-29T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get specific data type of numeric control by reference</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263860#M1241962</link>
      <description>&lt;P&gt;Look at the help for the property in question.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 05:26:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Get-specific-data-type-of-numeric-control-by-reference/m-p/4263860#M1241962</guid>
      <dc:creator>Gregory</dc:creator>
      <dc:date>2022-10-30T05:26:03Z</dc:date>
    </item>
  </channel>
</rss>

