<?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: reference to a type in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286164#M150697</link>
    <description>&lt;P&gt;Hi Bigdave,&lt;/P&gt;
&lt;P&gt;It sounds you are approaching this in a manner that is not consistant with how LV is intended to operate.&lt;/P&gt;
&lt;P&gt;Please post a zip of your top level and sub-VI's so we can look and advise.&lt;/P&gt;
&lt;P&gt;We are very good if we have pictures to work with!&lt;/P&gt;
&lt;P&gt;Trying to get you started out on the right foot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Nov 2005 15:43:46 GMT</pubDate>
    <dc:creator>Ben</dc:creator>
    <dc:date>2005-11-08T15:43:46Z</dc:date>
    <item>
      <title>reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285769#M150530</link>
      <description>&lt;DIV&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Hi,&lt;NAMESPACE prefix="o" ns="urn:schemas-microsoft-com:office:office"&gt;&lt;P&gt;&lt;/P&gt;&lt;/NAMESPACE&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;&amp;nbsp;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;I have created a subvi which I now use in my main VI, however, I now want to use the values from the subvi WITHOUT having to have a control in my main VI.&amp;nbsp; I can't seem to find a tool to convert a reference to a type.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;&amp;nbsp;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Anyhelp would be much appreciated.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Thanks,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB" style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Paul.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Nov 2005 17:52:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285769#M150530</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-07T17:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285774#M150532</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Paul,&lt;/P&gt;
&lt;P&gt;can you not take a constant? You have to wire the SubVI to start it. If you like to transfer values to a&amp;nbsp;started SubVI, you can take local or global variables for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards ThomasD&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2005 18:01:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285774#M150532</guid>
      <dc:creator>ThomasD</dc:creator>
      <dc:date>2005-11-07T18:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285788#M150538</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Hi,&lt;NAMESPACE prefix="o" ns="urn:schemas-microsoft-com:office:office"&gt;&lt;P&gt;&lt;/P&gt;&lt;/NAMESPACE&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Thanks for your prompt reply.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;When I try and connect my subvi to a variable&amp;nbsp;I receive the following error&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;"A wire must be connected to one and only one data source, such as a control's terminal or a function output. This wire is connected to two data sinks but zero sources. You must add a source, perhaps by changing an indicator to a control."&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;I need to convert the reference type outputted by my subvi to a type (i.e. string, integer, etc) than I can use it without the need for a reference from a control or indicator.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;&amp;nbsp;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Thanks again,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Paul.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2005 18:32:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285788#M150538</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-07T18:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285803#M150548</link>
      <description>If, in your subVI, you are using a value property to &lt;STRONG&gt;write&lt;/STRONG&gt; to a reference, at the input to the value property, right click and select Create Indicator. If, in your subVI you are using a value property to &lt;STRONG&gt;read&lt;/STRONG&gt; from a reference, at the output of the property node, right click and select Create Control. Delete the wire from the value property and wire your control to where the property output was. In either case, you should wire the control/indicator to the connector pane in order to pass/get the value from a main.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Nov 2005 19:00:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285803#M150548</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2005-11-07T19:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285834#M150563</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi, thanks for your reply.&lt;/P&gt;
&lt;P&gt;When I connect the indicator or control in the subvi to the connector plane, the value from the mainvi does not get passed down in run time, hence why I used references.&amp;nbsp; Is it possible to dereference (as such) the reference?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example&lt;/P&gt;
&lt;P&gt;SUBVI -&amp;gt;passes value to main&amp;nbsp;-&amp;gt;&amp;nbsp;change reference to a type (boolean,&amp;nbsp;integer) -&amp;gt;&amp;nbsp;to a case statement in main vi WITHOUT a control or indicator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Paul.&lt;/P&gt;&lt;P&gt;Message Edited by bigdave on &lt;SPAN class="date_text"&gt;11-07-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:21 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2005 20:18:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285834#M150563</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-07T20:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285836#M150564</link>
      <description>If you wire something from the main VI to the subVI, it will get passed to the subVI. If you expect to pass a new value from main to a subVI while the subVI is running (i.e. it's got a while loop running), that is not how a subVI or a function call in any other programming language works. To pass a new value once a subVI has started and before it returns to main, you have to use a reference or a global variable.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Nov 2005 20:24:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285836#M150564</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2005-11-07T20:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285857#M150578</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;Hi Dennis, thanks again for your reply,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;This is exactly what I have done, use references.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;In the main vi to access this reference you must then create a control or indicator, then right click and create a reference, then link this reference to the subvi.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;NAMESPACE prefix="o" ns="urn:schemas-microsoft-com:office:office"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/NAMESPACE&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;I don’t want to have to create an indicator or a control… I just want to use the value outputted by the subvi.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;Paul.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by bigdave on &lt;SPAN class="date_text"&gt;11-07-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:03 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2005 21:02:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/285857#M150578</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-07T21:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286159#M150695</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to let you all know, I found the "hide" function on the indicators and controls, so I create my controls, then a reference so that I can get the values in/out of my subvi, then hide the controls and connect up the references.&amp;nbsp; Very poor way of doing what I want, but it works.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2005 15:34:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286159#M150695</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-08T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286164#M150697</link>
      <description>&lt;P&gt;Hi Bigdave,&lt;/P&gt;
&lt;P&gt;It sounds you are approaching this in a manner that is not consistant with how LV is intended to operate.&lt;/P&gt;
&lt;P&gt;Please post a zip of your top level and sub-VI's so we can look and advise.&lt;/P&gt;
&lt;P&gt;We are very good if we have pictures to work with!&lt;/P&gt;
&lt;P&gt;Trying to get you started out on the right foot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2005 15:43:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286164#M150697</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2005-11-08T15:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286274#M150741</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Hi Ben,&lt;NAMESPACE prefix="o" ns="urn:schemas-microsoft-com:office:office"&gt;&lt;P&gt;&lt;/P&gt;&lt;/NAMESPACE&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;I have included a simple&amp;nbsp;VI of what I would like to achieve.&amp;nbsp; Any questions just ask.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Please keep in mind that this is a simple model of what I would like to do.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;&amp;nbsp;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Thanks again,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #666666; FONT-FAMILY: Arial"&gt;Paul.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message Edited by bigdave on &lt;SPAN class="date_text"&gt;11-08-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:13 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2005 18:13:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286274#M150741</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-08T18:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286278#M150743</link>
      <description>The change the reference passed from the main vi to the subvi is a control (this is correct). Change the ref passed back to the main vi from the sub vi to an indicator. This should fix your problem.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2005 18:22:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286278#M150743</guid>
      <dc:creator>AndrewAlford</dc:creator>
      <dc:date>2005-11-08T18:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286316#M150767</link>
      <description>&lt;DIV&gt;Could you take a look at the image attached?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2005 19:46:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286316#M150767</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-08T19:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286332#M150775</link>
      <description>&lt;P&gt;Sorry, my bad.&amp;nbsp; I would just pass the value back and forget the references.&lt;/P&gt;
&lt;P&gt;Instead of passing the Reference back to the main vi, create an indicator in the sub vi for the value you want to pass. Connect that to a terminal the output of the subvi and that will&amp;nbsp;pass the value to the main.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached pics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2005 20:20:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286332#M150775</guid>
      <dc:creator>AndrewAlford</dc:creator>
      <dc:date>2005-11-08T20:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286338#M150779</link>
      <description>&lt;DIV&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;FONT face="Times New Roman" color="#000000" size="3"&gt;Unfortunately I have to use references because I need the value to update in real time.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;FONT face="Times New Roman" color="#000000" size="3"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN lang="EN-GB"&gt;&lt;FONT face="Times New Roman" color="#000000" size="3"&gt;At this point I don't think labview has the facility that I want.&amp;nbsp; To get around this I have used a control and hidden it.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2005 20:26:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286338#M150779</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-08T20:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286356#M150788</link>
      <description>&lt;P&gt;Don't give up just yet. Here is how you do it with references. You need to create an indicator for the reference you want to pass back to the mainvi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attchments.&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2005 20:57:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286356#M150788</guid>
      <dc:creator>AndrewAlford</dc:creator>
      <dc:date>2005-11-08T20:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286434#M150818</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi BigDave,&lt;/P&gt;
&lt;P&gt;"&lt;SPAN lang="EN-GB"&gt;&lt;FONT face="Times New Roman" color="#000000" size="3"&gt;At this point I don't think labview has the facility that I want.&amp;nbsp;" You are dissin my sweatheart (LV) &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt; She can do most anything.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I am just a volunteer here so I can only get serious about answering Q's at night or&amp;nbsp;on week-ends.&lt;/P&gt;
&lt;P&gt;I re-wrote you code to do what I THINK you want.&lt;/P&gt;
&lt;P&gt;The top level and sub-VI's are illustrated here.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/170/150818/1/update_In_UsbVI.JPG" /&gt;&lt;/P&gt;
&lt;P&gt;I pass a reference to the control, the indicator and a stop boolean to the sub-VI. &lt;/P&gt;
&lt;P&gt;After that the top level just waits for the sub-VI to complete.&lt;/P&gt;
&lt;P&gt;The sub-VI reads from the control, does some math and updates the indicator.&lt;/P&gt;
&lt;P&gt;If the stop button is true it stops and returns to the top level VI.&lt;/P&gt;
&lt;DIV&gt;The code is attached.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;************************************&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Andrew,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;You can make you images show up in the posting by posting as you have and then...&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Click on you link for your attached jpg.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Copy the URL&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Go back to your post.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Edit it.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Go to the place in the text where the image should appear then click on the "Inset image" button.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Paste the jpg URL in the dialog box.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Re-post your edited answer.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ben&lt;/DIV&gt;&lt;P&gt;Message Edited by Ben on &lt;SPAN class="date_text"&gt;11-08-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:01 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2005 01:56:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286434#M150818</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2005-11-09T01:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286464#M150827</link>
      <description>Big dave,&lt;BR /&gt;
&lt;BR /&gt;
What you want to do with your picture below is really unclear to
me.&amp;nbsp; If I have understood correctly what you want to do, it won't
work.&amp;nbsp; I'm also not sure that what you want to do will work in any
other language either.&lt;BR /&gt;
&lt;BR /&gt;
By using a property node, you need a reference.&amp;nbsp; This you have
clearly understood.&amp;nbsp; However, ask yourself what the reference is
TO.&amp;nbsp; It must be a reference to an object, and the data contained
in the reference will in some way be associated with this particular
object.&amp;nbsp; A reference is NOT a class descriptor.&amp;nbsp; It is a
reference to an actual object.&lt;BR /&gt;
&lt;BR /&gt;
If you want to simply generate a reference to an object, then the
object must exist first, otherwise you have a problem.&amp;nbsp; Other
languages may allow such invalid references, but LV does not.&amp;nbsp;
This object is created on the front panel, and can then be
hidden.&amp;nbsp; This is the way LV works, and there's nothing wrong with
it.&lt;BR /&gt;
&lt;BR /&gt;
You MUST have a non-constant object (either control or indicator on the
front panel) in order to be able to create VALID references.&lt;BR /&gt;
&lt;BR /&gt;
Simply create the control you require on the FP, hide it and use this as the source for the reference.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps&lt;BR /&gt;
&lt;BR /&gt;
Shane.&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Nov 2005 07:20:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286464#M150827</guid>
      <dc:creator>shoneill</dc:creator>
      <dc:date>2005-11-09T07:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286609#M150899</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi Shane,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;
&lt;/P&gt;&lt;HR /&gt;
A reference is NOT a class descriptor.&amp;nbsp; It is a reference to an actual object.&lt;BR /&gt;
&lt;HR /&gt;

&lt;P&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;HR /&gt;
If you want to simply generate a reference to an object, then the object must exist first, otherwise you have a problem.&amp;nbsp; Other languages may allow such invalid references, but LV does not.&amp;nbsp; This object is created on the front panel, and can then be hidden.&amp;nbsp; This is the way LV works, and there's nothing wrong with it.&lt;BR /&gt;
&lt;HR /&gt;

&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I know a reference is not a class descriptor, the problem I have is that the only way to dereference this reference is to use a control/indicator then hide that control/indicator.&amp;nbsp; One should be able to use the "Type Cast" object to&amp;nbsp;simply dereference and type cast the reference from the subvi WITHOUT the need for hiding an indicator/control.&amp;nbsp; Hiding a control/indicator just so I can get the value out from the subvi is ugly in my opinion.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;HR /&gt;
Simply create the control you require on the FP, hide it and use this as the source for the reference.&lt;BR /&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You have answered my question in your above quote,&lt;/P&gt;
&lt;P&gt;Thanks for the help guys,&lt;/P&gt;
&lt;P&gt;Paul.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by bigdave on &lt;SPAN class="date_text"&gt;11-09-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:34 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2005 14:31:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286609#M150899</guid>
      <dc:creator>bigdave</dc:creator>
      <dc:date>2005-11-09T14:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: reference to a type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286613#M150902</link>
      <description>Hi Dave,&lt;BR /&gt;
&lt;BR /&gt;
There are ways of "re-casting" references, but they all require current
valid references of a new sort in some way compatible with the old
type.&amp;nbsp; I suppose the crux of the problem is that LV doesn't accept
these references as being seperate from the objects as you have already
noticed early on.&amp;nbsp; The only way to actually get AT the references
is to have an object........&lt;BR /&gt;
&lt;BR /&gt;
Catch 22&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps&lt;BR /&gt;
&lt;BR /&gt;
Shane.&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Nov 2005 14:46:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/reference-to-a-type/m-p/286613#M150902</guid>
      <dc:creator>shoneill</dc:creator>
      <dc:date>2005-11-09T14:46:34Z</dc:date>
    </item>
  </channel>
</rss>

