<?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: End User Interface--Help! in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603025#M281069</link>
    <description>&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;B&gt;"Often a state machine architecture is a good design template."&lt;/B&gt;&lt;/P&gt;&lt;P&gt;State machine architecture?&lt;/P&gt;

&lt;BR /&gt;&lt;P&gt;&lt;B&gt;"For that we need to see the code.&amp;nbsp; What happens currently when you run it?"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;It runs like I want it to, but I don't know whether the running of a program by an end user has the same functionality as me hitting the "Run" button, as a general rule.&amp;nbsp; While I posted my VI, I'm really asking "in general" here.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;"Do you know who designed the code?"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;You designed about 2/3 of it&lt;SPAN&gt;&lt;/SPAN&gt;, I did the rest.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;"These are all very basic issues. I would recommend to start with a LabVIEW tutorial."&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I did the tutorials that came with the program, I'm just not clear on what my VI's will look like while being used.&amp;nbsp; I thought that the while loops should be running constantly, albeit with time delays and such, but someone else suggested that perhaps there should be no while loop and the program should stop completely when not being touched.&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Oct 2007 23:43:45 GMT</pubDate>
    <dc:creator>DJDDA</dc:creator>
    <dc:date>2007-10-29T23:43:45Z</dc:date>
    <item>
      <title>End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/602978#M281047</link>
      <description>It has become apparent that there are fundamental coding issues that I really don't understand.&amp;nbsp; This was brought up by wiring that's regarding both tunnels on a case structure as inputs, which raised the questions, "Do you actually need shift registers?&amp;nbsp; Can't you make some sort of variable?&amp;nbsp; Why is there even a while loop around all of this, isn't it just tying up processing time?"&lt;BR /&gt;&lt;BR /&gt;I'm designing what will eventually be full programs that users at other locations will not be able to edit at all (we're making remote-operation instruments and training people on them at distance).&amp;nbsp; I have &lt;I&gt;no idea&lt;/I&gt; what an actual, running program does or looks like, beyond assuming that they'll see the front panel.&amp;nbsp; I've been putting everything I make in a while loop (because otherwise it stops running when I try to test it, and values aren't saved between iterations if I hit "run continuously").&amp;nbsp; Is this necessary for a real program?&lt;BR /&gt;&lt;BR /&gt;Really, can anyone just give me a general overview of what the program does while running, and what my users will see?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Oct 2007 22:04:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/602978#M281047</guid>
      <dc:creator>DJDDA</dc:creator>
      <dc:date>2007-10-29T22:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/602984#M281053</link>
      <description>&lt;DIV&gt;It would be great to actually see the program, else we cannot really comment. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;"Run continuously" is a debugging tool, not a valid way to run a program.&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Oct 2007 22:14:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/602984#M281053</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-10-29T22:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/602987#M281055</link>
      <description>Well, the actual project is currently a jumbled mess, but okay...&lt;BR /&gt;&lt;BR /&gt;Also, my tunnel problem fixed itself upon LabVIEW restart.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Oct 2007 22:27:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/602987#M281055</guid>
      <dc:creator>DJDDA</dc:creator>
      <dc:date>2007-10-29T22:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603003#M281059</link>
      <description>&lt;DIV&gt;The lvproj file does not help us at all, we need the VIs.&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Oct 2007 22:54:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603003#M281059</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-10-29T22:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603010#M281063</link>
      <description>Haha, oops, sorry.&amp;nbsp; &lt;SPAN&gt;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Oct 2007 23:03:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603010#M281063</guid>
      <dc:creator>DJDDA</dc:creator>
      <dc:date>2007-10-29T23:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603019#M281067</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Some generic answers to your questions.&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/94051"&gt;@DJDDA&lt;/a&gt; wrote:&lt;BR /&gt;"Do you actually need shift registers?&amp;nbsp; Can't you make some sort of variable?&amp;nbsp; Why is there even a while loop around all of this, isn't it just tying up processing time?"&lt;BR /&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Shift registers are often useful, but not always needed. Depends what you are doing.&lt;/P&gt;
&lt;P&gt;LabVIEW has local and global variables. They break dataflow and can thus lead to race conditions. They can also cause extra data copies in memory. Typically, the wire is the variable. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;A loop is NOT tying up processing time unless it is spinning. A properly designed while loop only spins when needed (e.g. a control changes, in timed intervals, etc.). A typical beginner&amp;nbsp;mistake is to make a while loop that does not contain any wait primitive oe event structure. This means the loop will spin as fast as the processor allows, using 100% CPU doing absolutely nothing useful.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/94051"&gt;@DJDDA&lt;/a&gt; wrote:&lt;BR /&gt;I've been putting everything I make in a while loop (because otherwise it stops running when I try to test it, and values aren't saved between iterations if I hit "run continuously").&amp;nbsp;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;If your data is in shift registers, and the old data disappears when you restart the code, it means you are using &lt;U&gt;initialized shift registers.&lt;/U&gt; If you want to retain data in shift registers, don't initialize them.&lt;BR /&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/94051"&gt;@DJDDA&lt;/a&gt; wrote:&lt;BR /&gt;Is this necessary for a real program?&lt;BR /&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, a typical toplevel program that interacts with the user needs a while loop. Often a state machine architecture is a good design template. There is nothing wrong with that!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/94051"&gt;@DJDDA&lt;/a&gt; wrote:&lt;BR /&gt;Really, can anyone just give me a general overview of what the program does while running, and what my users will see?&lt;BR /&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For that we need to see the code.&lt;/P&gt;
&lt;P&gt;What happens currently when you run it?&amp;nbsp; The user sees the front panel of the toplevel VI and any other panels of subVIs that are configured to show the panel. Do you know who designed the code?&lt;/P&gt;
&lt;P&gt;These are all very basic issues. I would recommend to start with a LabVIEW tutorial.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2007 23:19:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603019#M281067</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-10-29T23:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603025#M281069</link>
      <description>&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;B&gt;"Often a state machine architecture is a good design template."&lt;/B&gt;&lt;/P&gt;&lt;P&gt;State machine architecture?&lt;/P&gt;

&lt;BR /&gt;&lt;P&gt;&lt;B&gt;"For that we need to see the code.&amp;nbsp; What happens currently when you run it?"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;It runs like I want it to, but I don't know whether the running of a program by an end user has the same functionality as me hitting the "Run" button, as a general rule.&amp;nbsp; While I posted my VI, I'm really asking "in general" here.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;"Do you know who designed the code?"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;You designed about 2/3 of it&lt;SPAN&gt;&lt;/SPAN&gt;, I did the rest.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;"These are all very basic issues. I would recommend to start with a LabVIEW tutorial."&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I did the tutorials that came with the program, I'm just not clear on what my VI's will look like while being used.&amp;nbsp; I thought that the while loops should be running constantly, albeit with time delays and such, but someone else suggested that perhaps there should be no while loop and the program should stop completely when not being touched.&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Oct 2007 23:43:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603025#M281069</guid>
      <dc:creator>DJDDA</dc:creator>
      <dc:date>2007-10-29T23:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603040#M281075</link>
      <description>&lt;DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/94051"&gt;@DJDDA&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;B&gt;"Often a state machine architecture is a good design template."&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;State machine architecture?&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;B&gt;"For that we need to see the code.&amp;nbsp; What happens currently when you run it?"&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;It runs like I want it to, but I don't know whether the running of a program by an end user has the same functionality as me hitting the "Run" button, as a general rule.&amp;nbsp; While I posted my VI, I'm really asking "in general" here.&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;"Do you know who designed the code?"&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;You designed about 2/3 of it&lt;SPAN&gt;&lt;/SPAN&gt;, I did the rest.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;"These are all very basic issues. I would recommend to start with a LabVIEW tutorial."&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;I did the tutorials that came with the program, I'm just not clear on what my VI's will look like while being used.&amp;nbsp; I thought that the while loops should be running constantly, albeit with time delays and such, but someone else suggested that perhaps there should be no while loop and the program should stop completely when not being touched.&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;Wow Altenbach, perhaps you should have designed Three thirds of the application.&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 00:46:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603040#M281075</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2007-10-30T00:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603044#M281076</link>
      <description>&lt;DIV&gt;You have a weird mix of event structures, delays, and parallel code all in one loop. it makes little sense to have an event timeout of 4 ms and and delay of 8 ms, the longer always wins.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Once everything is in an event structure, the loop no longer needs to spin unless something changes. Here's a quick draft on how you could do it. It seems you want to duplicate the look of a real instrument. I would make some changes, e.g. the standby know seems a bit clumsy for a&amp;nbsp;virtual UI and is hard to operate with a mouse. I would use a checkbox, for example.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;You don't need any local variables.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;When you built an application, the users sees exactly the same front panel, but he has no access to the diagram. You can further customize the apperance (e.g. hide the menu or toolbar, the scrollbars, etc.). The appication should be set to "run when opened".&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Here's a quick draft.&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2007 00:57:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603044#M281076</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-10-30T00:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603493#M281244</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm glad everyone has been so helpful with debugging your application. Sounds like you have been learning a lot! I hope that you've enjoyed programming in LabVIEW. If you'd like to become more proficient in LabVIEW, we do offer customer education courses, offered in many locations. You can check them out &lt;A href="https://www.ni.com/en-us/shop/category/courses.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. More specifically, I would recommend our &lt;A href="https://www.ni.com/en/shop/services/education-services/customer-education-courses/labview-core-1-course-overview.html" target="_blank" rel="noopener"&gt;LabVIEW Basics&lt;/A&gt; course to get up to speed on LabVIEW programming architecture and lingo.&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Mar 2024 19:33:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603493#M281244</guid>
      <dc:creator>Amanda_H</dc:creator>
      <dc:date>2024-03-20T19:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: End User Interface--Help!</title>
      <link>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603516#M281254</link>
      <description>&lt;B&gt;"You have a weird mix of event structures, delays, and parallel code all in one loop. it makes little sense to have an event timeout of 4 ms and and delay of 8 ms, the longer always wins."&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;I'm guessing that's the result of me having virtually no idea what I'm doing.  (It seems that this has been noticed.)  Anyway, that's why I asked for help.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;"Once everything is in an event structure, the loop no longer needs to spin unless something changes."&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;Oh.  That'll certainly clean up my projects.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;"When you built an application, the users sees exactly the same front panel, but he has no access to the diagram. You can further customize the apperance (e.g. hide the menu or toolbar, the scrollbars, etc.). The appication should be set to 'run when opened.' "&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;That makes sense.&lt;BR /&gt;&lt;BR /&gt;I appreciate all the help, thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ravens Fan: Sure, but then I wouldn't learn anything.&lt;BR /&gt;&lt;BR /&gt;Amanda H: It appears that there are no programs that I can make it to soon, but I'll keep that in mind.</description>
      <pubDate>Tue, 30 Oct 2007 16:20:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/End-User-Interface-Help/m-p/603516#M281254</guid>
      <dc:creator>DJDDA</dc:creator>
      <dc:date>2007-10-30T16:20:41Z</dc:date>
    </item>
  </channel>
</rss>

