<?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: Interrupting sequence structures in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157555#M910371</link>
    <description>pls look at this post suggested earlier @nataswft&lt;BR /&gt;&lt;BR /&gt;It is suggested that not to use sequence structure unnecessarily..... it's not possible to abort in case of developing applications where emergency is major criteria</description>
    <pubDate>Sun, 28 Jun 2015 20:10:04 GMT</pubDate>
    <dc:creator>palanivel</dc:creator>
    <dc:date>2015-06-28T20:10:04Z</dc:date>
    <item>
      <title>Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157529#M910351</link>
      <description>&lt;P&gt;Say, for example, I have a case structure with two cases. In each case, there is a sequence structure. If case 1 is true and the program is running that particular sequence,&amp;nbsp;would switching to case 2 immediately cut off the sequence from case 1 and leave it incomplete in favor of executing the sequence from case 2?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 18:13:09 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157529#M910351</guid>
      <dc:creator>KFod</dc:creator>
      <dc:date>2015-06-28T18:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157530#M910352</link>
      <description>&lt;P&gt;No.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would the program know that it should be in case 2 until case 1 ends, the loop iterates, and it has a chance to read the condition that determines which case to execute?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend looking at the online LabVIEW tutorials&lt;BR /&gt;&lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/5243" target="_blank"&gt;&lt;FONT color="#3366cc"&gt;LabVIEW Introduction Course&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#3366cc"&gt;- Three Hours&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://zone.ni.com/devzone/cda/tut/p/id/5241" target="_blank"&gt;&lt;FONT color="#3366cc"&gt;LabVIEW Introduction Course &lt;/FONT&gt;&lt;FONT color="#3366cc"&gt;- Six Hours&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 18:16:00 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157530#M910352</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2015-06-28T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157531#M910353</link>
      <description>&lt;P&gt;The program would know that it should switch to case 2 based on another input that is outside of the structures, like a user controlled boolean, for example. All of this would be going on inside a while loop, by the way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apologize for not adding those details earlier.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 18:22:51 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157531#M910353</guid>
      <dc:creator>KFod</dc:creator>
      <dc:date>2015-06-28T18:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157533#M910355</link>
      <description>&lt;P&gt;No.&amp;nbsp; Which case gets executed is determined by the value in the wire going into the selector terminal at the beginning of the case structure.&amp;nbsp; Where or how that value is getting into the wire is irrelevant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That wire doesn't execute again, and the selector doesn't determine which case to execute until the current iteration of the loop ends, which includes all code inside that loop ending, including all code inside any internal structures such as the case structure.&amp;nbsp; Only then will the loop iterate again, the value travels down that wire into the case structure selector terminal, and then the appropriate case of the case structure begins executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is all basic dataflow rules that LabVIEW executes, and you need to take those tutorials to begin understanding that.&amp;nbsp; Set up and example in code, then run it with highlight execution turned on and follow along.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 18:31:16 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157533#M910355</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2015-06-28T18:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157535#M910357</link>
      <description>&lt;P&gt;you need to &lt;STRONG&gt;learn the basics of dataflow&lt;/STRONG&gt;. Sequence structures need to complete, they cannot be interrupted. While the code is inside the sequence, it cannot read controls outside of it, unless that other control is in a parallel loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you need is a &lt;STRONG&gt;state machine&lt;/STRONG&gt;. This not only eliminates the sequence structures, it will also make the code logical&amp;nbsp;and maintainable.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 18:33:58 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157535#M910357</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2015-06-28T18:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157536#M910358</link>
      <description>It is suggested that not to use sequence structure unnecessarily..... it's not possible to abort in case of developing applications where emergency is major criteria&lt;BR /&gt;&lt;BR /&gt;Pls mention your expected result and actual results clearly&lt;BR /&gt;&lt;BR /&gt;Snap /vi attachment will be useful</description>
      <pubDate>Sun, 28 Jun 2015 18:32:42 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157536#M910358</guid>
      <dc:creator>palanivel</dc:creator>
      <dc:date>2015-06-28T18:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157537#M910359</link>
      <description>&lt;P&gt;I'll have to look at the tutorial videos again. Is there a way to interrupt the sequence before it completes, by any chance?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 18:34:02 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157537#M910359</guid>
      <dc:creator>KFod</dc:creator>
      <dc:date>2015-06-28T18:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157538#M910360</link>
      <description>Three different people have said no. I'll be the fourth to say the same thing.</description>
      <pubDate>Sun, 28 Jun 2015 18:36:54 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157538#M910360</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2015-06-28T18:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157539#M910361</link>
      <description>No way ......&lt;BR /&gt;You need to have some variable and case inside sequence &lt;BR /&gt;variable has to decide whether case to run / not....&lt;BR /&gt;&lt;BR /&gt;Here "variable" takes its value from your interrupt signal...</description>
      <pubDate>Sun, 28 Jun 2015 18:38:39 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157539#M910361</guid>
      <dc:creator>palanivel</dc:creator>
      <dc:date>2015-06-28T18:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157552#M910368</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/294072"&gt;@palanivel&lt;/a&gt; wrote:&lt;BR /&gt;No way ......&lt;BR /&gt;You need to have some variable and case inside sequence &lt;BR /&gt;variable has to decide whether case to run / not....&lt;BR /&gt;&lt;BR /&gt;Here "variable" takes its value from your interrupt signal...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is bad advice.&amp;nbsp; Alone, variables and sequence structures are dangerous to use if you don't understand them.&amp;nbsp; You don't fix bad architecture by making it worse.&amp;nbsp; Avoid doing something like this... ever.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You've been told by multiple people that you can't stop the sequence structure once it's started.&amp;nbsp; That's a general dataflow principle.&amp;nbsp; It's going to run.&amp;nbsp; The best advice you've been given in this thread is to take a look at a state machine architecture.&amp;nbsp; It's exactly what you're describing and doesn't require making your achitecture even worse to accomplish your goals.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 20:02:23 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157552#M910368</guid>
      <dc:creator>natasftw</dc:creator>
      <dc:date>2015-06-28T20:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157553#M910369</link>
      <description>Pls look at my previous post... which I have suggested...&lt;BR /&gt;&lt;BR /&gt;If his project needs that and if it is unavoidable I have given a way In different way....&lt;BR /&gt; I  mentioned it's not recommended&lt;BR /&gt;&lt;BR /&gt;Thought thanks for your suggestion....</description>
      <pubDate>Sun, 28 Jun 2015 20:07:42 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157553#M910369</guid>
      <dc:creator>palanivel</dc:creator>
      <dc:date>2015-06-28T20:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157555#M910371</link>
      <description>pls look at this post suggested earlier @nataswft&lt;BR /&gt;&lt;BR /&gt;It is suggested that not to use sequence structure unnecessarily..... it's not possible to abort in case of developing applications where emergency is major criteria</description>
      <pubDate>Sun, 28 Jun 2015 20:10:04 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157555#M910371</guid>
      <dc:creator>palanivel</dc:creator>
      <dc:date>2015-06-28T20:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157557#M910372</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/294072"&gt;@palanivel&lt;/a&gt; wrote:&lt;BR /&gt;&lt;SPAN&gt;Pls look at my previous post... which I have suggested...&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/294072"&gt;@palanivel&lt;/a&gt; wrote:&lt;BR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/202004"&gt;@PLS&lt;/a&gt; look at this post suggested earlier @nataswft&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please (NOT pls!) don't clutter the forum with repetitive and trivial posts that have little to do with solving the problem.&lt;/P&gt;
&lt;P&gt;And &lt;U&gt;please&lt;/U&gt; use full words, this is not twitter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 20:14:18 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157557#M910372</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2015-06-28T20:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupting sequence structures</title>
      <link>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157564#M910376</link>
      <description>&lt;P&gt;I've seen a lot of your posts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the problem.&amp;nbsp; There's no such thing as a project where this is unavoidable.&amp;nbsp; If he needs to abort his sequential tasks in the middle, the solution isn't to further muddy the architecture.&amp;nbsp; It's to fix the architecture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of your posts are trying to find a way to use tools poorly in the fear that helping them choose the correct tool won't go over well.&amp;nbsp; You're not helping anyone when you do this.&amp;nbsp; You're essentially saying "it's not recommended to use a hammer with your screw, but maybe if you use your left hand instead of your right it'll work alright?"&amp;nbsp; That doesn't make sense.&amp;nbsp; Don't advocate for bad design.&amp;nbsp; Don't find workarounds for bad design and suggest the bad design can't be avoided.&amp;nbsp; That's a terrible habit.&amp;nbsp; Instead, show people the tools that are available that solve their problem.&amp;nbsp; Not only is it possible to change the architecture here, it's REQUIRED.&amp;nbsp; Pointing me to your other posts won't change this.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2015 20:43:06 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/Interrupting-sequence-structures/m-p/3157564#M910376</guid>
      <dc:creator>natasftw</dc:creator>
      <dc:date>2015-06-28T20:43:06Z</dc:date>
    </item>
  </channel>
</rss>

