<?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 : A 'dynamic' formula node in a LabVIEW execution file in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/1673688#M596555</link>
    <description>&lt;P&gt;"But this only works in the development environment. No build application!﻿"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well in fact it is possible to &lt;STRONG&gt;work in runtime environnement&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;We have just experiment it to check that for a customer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this, you must include "DSC enhancement runtime option"&lt;/P&gt;
&lt;P&gt;in your project and in the setup if you want to provide it in a setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is a drawback, we experiment problem with xnode,&lt;/P&gt;
&lt;P&gt;so all "time cadenced structure" won't work when DSC is activated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;﻿Both options are shown in image files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Nicolas&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2011 12:16:39 GMT</pubDate>
    <dc:creator>nferry</dc:creator>
    <dc:date>2011-08-17T12:16:39Z</dc:date>
    <item>
      <title>A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885390#M400200</link>
      <description>&lt;P&gt;I want to put a formula node on the front panel of a LabVIEW execution file, so that user can type their own code in the formula node and get their own output.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I tried this but it seems only feasible before I build the source code to an execution file. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyone can help me?&amp;nbsp; I appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2009 10:06:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885390#M400200</guid>
      <dc:creator>Joaquin Chien</dc:creator>
      <dc:date>2009-04-07T10:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885395#M400202</link>
      <description>&lt;P&gt;First, how did you place the formula node in the Front panel. A formula node cannot be placed in the Front panel.&lt;BR /&gt;&lt;BR /&gt;If you want user to enter their own code use a string control that will allow the user to type the code and you might need to define the interface for defining the variables.&lt;BR /&gt;Variable nodes that are in the borders of formula node cannot be dynamically created&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if your agenda is to just evaluate expressions entered by user you can make use of Eval-multi variable array.vi which accepts theexpression as input and variables as 2-d array, evaluates the expression,Post back for queries &lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2009 10:19:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885395#M400202</guid>
      <dc:creator>JK1</dc:creator>
      <dc:date>2009-04-07T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885446#M400226</link>
      <description>Try the&amp;nbsp;OpenG &lt;A href="http://labpython.sourceforge.net/" target="_blank"&gt;LabPython&lt;/A&gt; tools.&amp;nbsp; You can put a String control on the front panel for the user's code and feed it to Python.</description>
      <pubDate>Tue, 07 Apr 2009 12:24:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885446#M400226</guid>
      <dc:creator>jcarmody</dc:creator>
      <dc:date>2009-04-07T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885453#M400228</link>
      <description>Oops.&amp;nbsp; I spoke too soon.&amp;nbsp; I've gotten stuck trying to throw together a "quick" example.</description>
      <pubDate>Tue, 07 Apr 2009 12:35:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885453#M400228</guid>
      <dc:creator>jcarmody</dc:creator>
      <dc:date>2009-04-07T12:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885471#M400232</link>
      <description>&lt;P&gt;Here's a not-so-quick example.&amp;nbsp; I'm not sure it's the most efficient way to do it, but it worked for my brief test (except Boolean data comes out as an Integer 1/0).&amp;nbsp; Enter the script&amp;nbsp;into the String control and the variables into the Input Data cluster array.&amp;nbsp; The output data will come from the Python session.&amp;nbsp; It only works with Boolean, Integer, Float and String data now; simply add to the type enum and add cases to both Case Structures to add other types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't need to use the Input Data cluster array for every variable&amp;nbsp;if you don't want to; just initialize them in the script text and they'll show up in the Data.&amp;nbsp; You'll need at least one element in the Input Data or you'll get an error, though.&amp;nbsp; I don't know why...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/400232/2/PyExample.jpg" border="0" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by jcarmody on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt;04-07-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:16 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by jcarmody on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-07-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:22 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Apr 2009 13:22:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885471#M400232</guid>
      <dc:creator>jcarmody</dc:creator>
      <dc:date>2009-04-07T13:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885478#M400236</link>
      <description>&lt;P&gt;New &amp;amp; improved.&amp;nbsp; I got rid of the cluster array; just define your variables in the script text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/400236/1/PyExample.jpg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last example required an element in the cluster array because the for loop didn't execute on an empty array so the session reference didn't pass through.&amp;nbsp; I could have fixed that with a case structure testing for an empty array or by using a shift-register instead of an input tunnel.&amp;nbsp; Instead, I realized that I could just use the script text and deleted the cluster array mess.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by jcarmody on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-07-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:31 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Apr 2009 13:31:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885478#M400236</guid>
      <dc:creator>jcarmody</dc:creator>
      <dc:date>2009-04-07T13:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885489#M400239</link>
      <description>&lt;P&gt;Last time, I promise...&amp;nbsp; I thought it'd be nicer to see the results in a String indicator rather than a cluster array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/400239/1/PyExample.jpg" border="0" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by jcarmody on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-07-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 08:43 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Apr 2009 13:43:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/885489#M400239</guid>
      <dc:creator>jcarmody</dc:creator>
      <dc:date>2009-04-07T13:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/887701#M401053</link>
      <description>&lt;SPAN style="word-spacing: 0px; font: 16px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0" class="Apple-style-span"&gt;&lt;DIV style="padding-right: 10px; padding-left: 10px; font-size: 11pt; padding-bottom: 15px; margin: 0px; color: #666666; padding-top: 15px; font-family: Arial; background-color: #ffffff; text-align: left; webkit-background-clip: initial; webkit-background-origin: initial"&gt;&lt;P style="margin: 0px"&gt;I asked a question about this on the &lt;A href="http://forums.lavag.org/index.php?s=&amp;amp;showtopic=13759&amp;amp;view=findpost&amp;amp;p=61247" target="_blank"&gt;LAVA forum&lt;/A&gt;&amp;nbsp;and found that I could simplify the program a bit and handle more data types without modifying the code.&lt;/P&gt;&lt;/DIV&gt;&lt;/SPAN&gt;</description>
      <pubDate>Fri, 10 Apr 2009 13:15:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/887701#M401053</guid>
      <dc:creator>jcarmody</dc:creator>
      <dc:date>2009-04-10T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/962034#M431182</link>
      <description>Hi, I need to try your solution, but have no access to version 8.6, is there any chance you could leave an 8.5 version? Cheers</description>
      <pubDate>Tue, 11 Aug 2009 11:50:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/962034#M431182</guid>
      <dc:creator>Siamak</dc:creator>
      <dc:date>2009-08-11T11:50:48Z</dc:date>
    </item>
    <item>
      <title>Re : A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/1506738#M564963</link>
      <description>&lt;P&gt;There is another solution with dynamic instanciation.&lt;/P&gt;
&lt;P&gt;Because of Formula Node need to be prepared at compile time,&lt;/P&gt;
&lt;P&gt;It is necessary to recreate a VI by copy and change the formula before saving.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, thanks to formula node this enable C-like code generation dynamically,&lt;/P&gt;
&lt;P&gt;compared to Eval Formula which don't handle conditionnal, loop, etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This example can also be execute without the self-callVI but with a template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;Nicolas&lt;/P&gt;
&lt;P&gt;(LV2009)&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2011 07:37:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/1506738#M564963</guid>
      <dc:creator>nferry</dc:creator>
      <dc:date>2011-03-31T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Re : A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/1510876#M565635</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/161688"&gt;@nferry&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because of Formula Node need to be prepared at compile time,&lt;/P&gt;
&lt;P&gt;It is necessary to recreate a VI by copy and change the formula before saving.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, thanks to formula node this enable C-like code generation dynamically,&lt;/P&gt;
&lt;P&gt;compared to Eval Formula which don't handle conditionnal, loop, etc...&lt;/P&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this only works in the development environment. No build application!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2011 16:00:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/1510876#M565635</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2011-04-04T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re : A 'dynamic' formula node in a LabVIEW execution file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/1673688#M596555</link>
      <description>&lt;P&gt;"But this only works in the development environment. No build application!﻿"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well in fact it is possible to &lt;STRONG&gt;work in runtime environnement&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;We have just experiment it to check that for a customer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this, you must include "DSC enhancement runtime option"&lt;/P&gt;
&lt;P&gt;in your project and in the setup if you want to provide it in a setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is a drawback, we experiment problem with xnode,&lt;/P&gt;
&lt;P&gt;so all "time cadenced structure" won't work when DSC is activated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;﻿Both options are shown in image files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 12:16:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/A-dynamic-formula-node-in-a-LabVIEW-execution-file/m-p/1673688#M596555</guid>
      <dc:creator>nferry</dc:creator>
      <dc:date>2011-08-17T12:16:39Z</dc:date>
    </item>
  </channel>
</rss>

