<?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: Help with State Machines in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802753#M366166</link>
    <description>&lt;P&gt;I didn't realize you had any event structure going on.&amp;nbsp; Yes, the Event structure will create a pause while it waits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check you conditions for your next state.&amp;nbsp; You start with Initialize.&amp;nbsp; The initialize state is calling Initialize again.&amp;nbsp; There isn't anything there to cause it to move to the next state.&amp;nbsp; I think that should be calling User Inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the user inputs state/Accept Parameters event, I would think you want to call initialize, not User inputs again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend mapping out what all of your states are on a piece of paper, and what are the possible transitions to other states and what would cause them.&amp;nbsp; Then it will be easier to make your code match what you want it to to.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2008 17:09:54 GMT</pubDate>
    <dc:creator>RavensFan</dc:creator>
    <dc:date>2008-11-03T17:09:54Z</dc:date>
    <item>
      <title>Help with State Machines</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802404#M366043</link>
      <description>&lt;P&gt;I am implementing my application using state machines, and I have the following problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have an initialized state that will initialize my controls.&lt;/P&gt;&lt;P&gt;2. Next I want the next state to check for user input.(boolean button will be pressed to determine which state is next).&lt;/P&gt;&lt;P&gt;3. In one of the states, I want the user to be able to change the initialized values, and afterwards go back to the user input state, to determine which state is next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have implemented the initialize state as well as the user input&amp;nbsp; state(use event structure for that state), but I do not know how to let the user be able to change the values of my control , then the user acknowledges the change, and the state goes back to the user input state waiting for the next state.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;</description>
      <pubDate>Sun, 02 Nov 2008 23:40:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802404#M366043</guid>
      <dc:creator>ade77</dc:creator>
      <dc:date>2008-11-02T23:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with State Machines</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802406#M366044</link>
      <description>Your user input state is also what I would call an idle state.&amp;nbsp; If nothing happens, it just goes back to itself.&amp;nbsp; (Put some wait statement in there so that the idle state doesn't act like a "greedy loop".)&amp;nbsp; If the change is acknowledged, then instead of the idle state being called, the initialize state gets called again.&amp;nbsp; The Initialize state runs and when it is done it goes back to the idle/user input state.</description>
      <pubDate>Mon, 03 Nov 2008 00:08:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802406#M366044</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-11-03T00:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with State Machines</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802425#M366050</link>
      <description>&lt;P&gt;Thank you Ravens&amp;nbsp;Fan, I did not really understand your message. I have&amp;nbsp;a simplified version of what I am trying to accomplish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have 3 controls and one indicator&lt;/P&gt;&lt;P&gt;2. When the Vi is run ,&amp;nbsp;the controls&amp;nbsp;should initialize to the values in the intialize state. The next state will now be the user input state.&lt;/P&gt;&lt;P&gt;3. When at the user input, the user can either press the "analyze button" and the result will be displayed in the indicator. or the the stop button to stop the simulation, or&lt;/P&gt;&lt;P&gt;4. The user can change the values of the control, after all the controls have been changed to his desired values, he can then press "accept values" and the state goes back to the "user input". &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2008 03:32:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802425#M366050</guid>
      <dc:creator>ade77</dc:creator>
      <dc:date>2008-11-03T03:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with State Machines</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802601#M366113</link>
      <description>There is an example &lt;A href="http://forums.ni.com/ni/attachments/ni/170/114240/1/LargeGUIApplicationsInLabVIEW.zip" title="Large Applications in LabVIEW" target="_blank"&gt;here&lt;/A&gt; which does exactly what you want.&amp;nbsp; Let us know if you have problems.</description>
      <pubDate>Mon, 03 Nov 2008 13:37:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802601#M366113</guid>
      <dc:creator>DFGray</dc:creator>
      <dc:date>2008-11-03T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with State Machines</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802702#M366148</link>
      <description>&lt;P&gt;Thanks for the input. I found out that the earlier post by Ravens Fan actually solves the problem. When I change my values, and click the accept values, the initialize state will be called again. The initialize state will accept the control values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I did not understand is putting a wait statement on the user input state. I was under the impression that the event case itself is a waiting statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2008 16:09:44 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802702#M366148</guid>
      <dc:creator>ade77</dc:creator>
      <dc:date>2008-11-03T16:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with State Machines</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802753#M366166</link>
      <description>&lt;P&gt;I didn't realize you had any event structure going on.&amp;nbsp; Yes, the Event structure will create a pause while it waits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check you conditions for your next state.&amp;nbsp; You start with Initialize.&amp;nbsp; The initialize state is calling Initialize again.&amp;nbsp; There isn't anything there to cause it to move to the next state.&amp;nbsp; I think that should be calling User Inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the user inputs state/Accept Parameters event, I would think you want to call initialize, not User inputs again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend mapping out what all of your states are on a piece of paper, and what are the possible transitions to other states and what would cause them.&amp;nbsp; Then it will be easier to make your code match what you want it to to.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2008 17:09:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802753#M366166</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-11-03T17:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with State Machines</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802815#M366194</link>
      <description>Thank you. All points noted</description>
      <pubDate>Mon, 03 Nov 2008 18:48:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Help-with-State-Machines/m-p/802815#M366194</guid>
      <dc:creator>ade77</dc:creator>
      <dc:date>2008-11-03T18:48:23Z</dc:date>
    </item>
  </channel>
</rss>

