<?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 Suggestions on implementing a Target stop? in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888922#M1103003</link>
    <description>&lt;P&gt;Just looking for any ideas on how to implement a target stop into this VI. Possibly with the ability to continue counting from the last number it stopped at. Your help is much appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 13:37:32 GMT</pubDate>
    <dc:creator>JRyno</dc:creator>
    <dc:date>2019-02-01T13:37:32Z</dc:date>
    <item>
      <title>Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888922#M1103003</link>
      <description>&lt;P&gt;Just looking for any ideas on how to implement a target stop into this VI. Possibly with the ability to continue counting from the last number it stopped at. Your help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:37:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888922#M1103003</guid>
      <dc:creator>JRyno</dc:creator>
      <dc:date>2019-02-01T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888926#M1103006</link>
      <description>&lt;P&gt;What are you trying to stop?&amp;nbsp; What is this VI even supposed to be doing?&amp;nbsp; You have what appears to be a lot of data dependencies that you really want running in parallel.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:45:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888926#M1103006</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2019-02-01T13:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888929#M1103007</link>
      <description>&lt;P&gt;Hi JRyno,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT color="#FF0000"&gt;Just looking for any ideas on how to implement a target stop into this VI. Possibly with the ability to continue counting from the last number it stopped at. Your help is much appreciated.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Which "target" do you want to reach? What are the conditions to calculate that "target"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you use so much Rube-Goldberg code in your VI? (Why go to DBL values when all you need is a boolean in each loop's shift register?&lt;/P&gt;
&lt;P&gt;What do you want to achieve with placing 4 loops in 4 frames of a sequence? Why having another loop calling a DAQAssistent after all those other loops? (Why have a wait function in each of the first 4 loops?)&lt;/P&gt;
&lt;P&gt;What do you want to achieve by adding all the loop iterator values after placing them in arrays?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You really should draw your algorithm on a sheet of paper - before starting to code…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: when you want to store a value for using it in subsequent calls of your VI you should think about saving it to a file…&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:51:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888929#M1103007</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2019-02-01T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888934#M1103010</link>
      <description>&lt;P&gt;Learn proper use of Data Flow.&amp;nbsp; "An Error Line Runs Through It" (the name of a famous film about LabVIEW).&amp;nbsp; Repetetive things = For (or While) Loops and Arrays.&amp;nbsp; Clusters of similar indicators (such as Low PSI, Med PSI, High PSI, Motor Drive) suggest Clusters.&amp;nbsp; There is almost&amp;nbsp;&lt;U&gt;never&lt;/U&gt;&amp;nbsp;(notice the "almost") a need for a Sequence Structure, and even less need for the Stacked Sequence (which I think now is missing from the Structure Palette, yay!).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get used to thinking "What do I want to do", and paying less attention to "How do I want to do it".&amp;nbsp; Use sub-VIs to "encapsulate" tasks (a.k.a. "hide the details").&amp;nbsp; Give your sub-VI a simple 3-word Text Icon ("Open Files", "Get On/Off Settings") so when you look at the VI that uses them, you can "see what it's supposed to do" just by reading the 32x32 pixel sub-VIs sitting there linked by the Error Line running through their lower corner connectors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bob Schor&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:02:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888934#M1103010</guid>
      <dc:creator>Bob_Schor</dc:creator>
      <dc:date>2019-02-01T14:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888935#M1103011</link>
      <description>&lt;P&gt;Hi crossrulz, I need this VI to run until the sum of all the iterations is equal to 21376. This VI is as the title&amp;nbsp;states a "practice code" to get an idea of how to control a pressure test that needs to run a low psi for 28&amp;nbsp;cycles then switch to medium psi for 1 cycle and so on with the high loop and the motor control. If there is an easier way to do it I am open to your suggestions this is just the first revision&amp;nbsp;I made to get the VI to do what I want. Also while I understand that it&amp;nbsp;is a very backwards way of doing so I made the for loops in each sequence generate a series of 0's and 1's to turn the LED's on and off. Again I'm open to suggestions on how to make it simpler but this was the best way I could figure out how to turn the LED's on and off in the specific sequence that I want.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:02:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888935#M1103011</guid>
      <dc:creator>JRyno</dc:creator>
      <dc:date>2019-02-01T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888942#M1103013</link>
      <description>&lt;P&gt;Hi Bob,&lt;/P&gt;
&lt;P&gt;I have spent the past two weeks or so doing research on ways to get something similar to this without having to do it the way I did. However, this VI is currently the only way I have been able to execute the control of one LED then move on to the second one after the first reached its required number of iterations. I am open to suggestions on how to make this less repetitive but I currently do not know how. I already know what I want to do, I've spent weeks understanding the requirements of what I am doing, I am on the stage of trying to figure out how and this was the easiest way for me to make the VI do what I want it to with the very limited LabVIEW experience I have.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:10:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888942#M1103013</guid>
      <dc:creator>JRyno</dc:creator>
      <dc:date>2019-02-01T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888966#M1103020</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/619397"&gt;@JRyno&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This VI is as the title&amp;nbsp;states a "practice code" to get an idea of how to control a pressure test that needs to run a low psi for 28&amp;nbsp;cycles then switch to medium psi for 1 cycle and so on with the high loop and the motor control.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That is NOT what you have coded up.&amp;nbsp; The code will spend nearly 1 minute creating arrays that are then fed into a FOR loop where you write the data to the digital lines as fast as the software will allow.&amp;nbsp; And due to autoindexing and FOR loops being lazy, you will only get 2 writes in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can simplify this A LOT with just a single FOR loop, a case structure, and some shift registers.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.ni.com/ni/attachments/ni/170/1103020/1/Write%20Digital%20Lines.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;EDIT: I just noticed the autoindex tunnel from the Initialize Array.&amp;nbsp; That should be a normal tunnel.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:38:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888966#M1103020</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2019-02-01T14:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions on implementing a Target stop?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888972#M1103024</link>
      <description>&lt;P&gt;Would you mind explaining the code you wrote just so I can begin to understand what it means? I'll begin working on something like what you have there and come back when I think I have it or if I have issues. However, I did forget to mention that I would like to have different timings for each pressure cycle which is why I had different wait controls in each loop. I'm not sure if that is possible with what you have provided me but again I will attempt it on my own and come back with my results.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:46:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Suggestions-on-implementing-a-Target-stop/m-p/3888972#M1103024</guid>
      <dc:creator>JRyno</dc:creator>
      <dc:date>2019-02-01T14:46:09Z</dc:date>
    </item>
  </channel>
</rss>

