<?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 set a flag in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141958#M85196</link>
    <description>Why don't you just use a wire or shift register to pass a value? That's the prefered method in LabVIEW. A local or global (LV2 style or not) should be considered as a last resort. &lt;BR /&gt;</description>
    <pubDate>Thu, 08 Jul 2004 15:11:23 GMT</pubDate>
    <dc:creator>Dennis_Knutson</dc:creator>
    <dc:date>2004-07-08T15:11:23Z</dc:date>
    <item>
      <title>How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141954#M85192</link>
      <description>How can I set a flag?&lt;BR /&gt;I tried to connect a boolean (true) to a local variable, but it didn't work since the local variable had a question mark in it!&lt;BR /&gt;Is there a better method to set a flag?&lt;BR /&gt;&lt;BR /&gt;Many Thaanks &lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 11:16:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141954#M85192</guid>
      <dc:creator>schorsche</dc:creator>
      <dc:date>2004-07-08T11:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141955#M85193</link>
      <description>You have created a local variable but not selected the Front Panel object. The way you do that is to right click the local variable you created and select the object you want to set flag. &lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 12:08:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141955#M85193</guid>
      <dc:creator>Ram2003</dc:creator>
      <dc:date>2004-07-08T12:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141956#M85194</link>
      <description>But I don't need a front panel object. I just wanna set a flag in the block diagram and retrieve its value at some other point in the program. So no front panel activity will be involved with it. The local variable shouldn't be linked with anything, all it should so is store a value! &lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 14:00:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141956#M85194</guid>
      <dc:creator>schorsche</dc:creator>
      <dc:date>2004-07-08T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141957#M85195</link>
      <description>I saw you mentioning about local variables with a question mark, that is the reason for my response.&lt;BR /&gt;The way you can set a flag in the block diagram will be to use LabVIEW 2 style variables, where you will use a shift register to retain the flag value.&lt;BR /&gt;&lt;BR /&gt;You cannot have a local variable without assigning any FP object. &lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 14:53:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141957#M85195</guid>
      <dc:creator>Ram2003</dc:creator>
      <dc:date>2004-07-08T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141958#M85196</link>
      <description>Why don't you just use a wire or shift register to pass a value? That's the prefered method in LabVIEW. A local or global (LV2 style or not) should be considered as a last resort. &lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 15:11:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141958#M85196</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2004-07-08T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141959#M85197</link>
      <description>...Hello, &lt;BR /&gt;&lt;BR /&gt;I'm using quite many local variables. I think that keeps the block diagram tidy, rather than having a ton of for/while loops with shift registers instead. &lt;BR /&gt;&lt;BR /&gt;Cheerio &lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2004 22:24:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141959#M85197</guid>
      <dc:creator>schorsche</dc:creator>
      <dc:date>2004-07-08T22:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141960#M85198</link>
      <description>They also use extra memory which can also dramatically slow down your app and they break dataflow with the risk of race conditions. Programs with a lot of locals are much harder to debug - trust me on this. Shift registers can be very tidy if done right and don't cause the problems that locals do. The "LabVIEW Development Guidelines" document that ships with LabVIEW has a section on locals/globals and a reference to functional global variables which can be used to replace a standard global variable but nothing in LabVIEW is as effecient as a wire. &lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jul 2004 13:08:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141960#M85198</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2004-07-09T13:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141961#M85199</link>
      <description>Totally Agree Dennis, limit the use of Local variables and take caution when using them in communicating data between parts of your code. &lt;BR /&gt;&lt;BR /&gt;In your initial comment regarding local varibles, create a front panel object then set the hide property so you cant see the object.&lt;BR /&gt;&lt;BR /&gt;Kind Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Steven Bird&lt;BR /&gt;Applications Engineer&lt;BR /&gt;National Instruments &lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jul 2004 11:08:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/141961#M85199</guid>
      <dc:creator>Steven Bird</dc:creator>
      <dc:date>2004-07-12T11:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/3199919#M927687</link>
      <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Knight-of-NI"&gt; Hi &lt;A id="link_14" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #666666;" href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/1040" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Dennis_Knutson&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Knight-of-NI"&gt;&lt;SPAN class="login-bold"&gt;I am developing a calibration application for multiple sensors. large amount of attributes such as build code, matrix code, ranges, sensor types, etc need to be throughly checked and&amp;nbsp; passed to each sensor through serial communication. I used a lot of local variables on the home screen and it indeed slows down the system. I was thinking to create a lookup table using variants and save all the attributes for each sensor. That way I can conveniently log, retrieve and pass to DUT. What are your thoughts. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Knight-of-NI"&gt;&lt;SPAN class="login-bold"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Knight-of-NI"&gt;&lt;SPAN class="login-bold"&gt;FLiu&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 18:55:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/3199919#M927687</guid>
      <dc:creator>FLiu</dc:creator>
      <dc:date>2015-10-05T18:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a flag</title>
      <link>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/3199938#M927693</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/322713"&gt;@FLiu&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Knight-of-NI"&gt;&lt;SPAN class="login-bold"&gt; What are your thoughts. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Probably that a lot has changed in 11 year, and that a new thread should be made where you clearly explain your issues, posting details and example code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11 years ago a 3 mega pixel camera cost about $200, and new cell phones had a 1 mega pixel camera.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:38:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/How-to-set-a-flag/m-p/3199938#M927693</guid>
      <dc:creator>Hooovahh</dc:creator>
      <dc:date>2015-10-05T19:38:39Z</dc:date>
    </item>
  </channel>
</rss>

