<?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 slow down the simulation? in LabVIEW</title>
    <link>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3982702#M1136830</link>
    <description>&lt;P&gt;Place a wait function (e.g. Wait (ms)) inside the While loop, and outside of the simulation.&lt;/P&gt;
&lt;P&gt;You also need to move the Stop button inside the While loop if you want to be able to stop your VI &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 16:12:26 GMT</pubDate>
    <dc:creator>cbutcher</dc:creator>
    <dc:date>2019-10-29T16:12:26Z</dc:date>
    <item>
      <title>How to slow down the simulation?</title>
      <link>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3982689#M1136819</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My system block diagram" style="width: 999px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/255105i688F9ECBE991663E/image-size/large?v=v2&amp;amp;px=999" role="button" title="demo.png" alt="My system block diagram" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;My system block diagram&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new plot of the output gets graphed too quickly. I want it to slow down.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tytpically would run the simulation and the loop keeps it going. I would then toggle the numeric input that is the reference value for the PID. A new output would then be plotted. But it's like BOOM, just appered on the graph. I want it to plot point-by-point at a pace that my eye can see. I change the dt(s) value. I thought increasing the PID sampling time from 0.001s to 1s would slow the plotting down. But it was the same.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:36:19 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3982689#M1136819</guid>
      <dc:creator>MyLord</dc:creator>
      <dc:date>2019-10-29T15:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to slow down the simulation?</title>
      <link>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3982702#M1136830</link>
      <description>&lt;P&gt;Place a wait function (e.g. Wait (ms)) inside the While loop, and outside of the simulation.&lt;/P&gt;
&lt;P&gt;You also need to move the Stop button inside the While loop if you want to be able to stop your VI &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:12:26 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3982702#M1136830</guid>
      <dc:creator>cbutcher</dc:creator>
      <dc:date>2019-10-29T16:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to slow down the simulation?</title>
      <link>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3983439#M1137190</link>
      <description>&lt;P&gt;Thanks. Putting a wait(ms) in my loop like in the picture below, puts a wait time before the next graph is plotted (say if I changed the desired value for the PID to correct to). What I want is putting a delay before the next point on the graph is plotted. I tried putting the wait block inside the Simulation Loop, but that didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wait block diagram.png" style="width: 999px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/255164iDB0AC9B9F89C7AAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="wait block diagram.png" alt="wait block diagram.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wait front panel.png" style="width: 999px;"&gt;&lt;img src="https://forums.ni.com/t5/image/serverpage/image-id/255165iD649C976D8C8A76B/image-size/large?v=v2&amp;amp;px=999" role="button" title="wait front panel.png" alt="wait front panel.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 19:15:55 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3983439#M1137190</guid>
      <dc:creator>MyLord</dc:creator>
      <dc:date>2019-10-31T19:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to slow down the simulation?</title>
      <link>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3983488#M1137205</link>
      <description>&lt;P&gt;Hi Lord,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what about changing some pf those parameters (at the left side) of the C&amp;amp;S loop?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 00:08:49 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3983488#M1137205</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2019-11-01T00:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to slow down the simulation?</title>
      <link>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3983503#M1137207</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.ni.com/t5/user/viewprofilepage/user-id/634673"&gt;@MyLord&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks. Putting a wait(ms) in my loop like in the picture below, puts a wait time before the next graph is plotted (say if I changed the desired value for the PID to correct to). What I want is putting a delay before the next point on the graph is plotted. I tried putting the wait block inside the Simulation Loop, but that didn't work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ah, I think I understand now.&lt;/P&gt;
&lt;P&gt;If you want the graph to update during the simulation (a single simulation, not the repeating of the simulation with what you've labelled "iterations" - the outer while loop) then your graph must be inside the loop (just like with normal LabVIEW).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you might want to keep some history, there's likely to be a little bit of fiddling to get the data stored how you want it and updated as you need it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try placing both the XY Graph and the Wait inside the Simulation loop, and leaving the XY Graph connected to the Collector output.&lt;/P&gt;
&lt;P&gt;That might be what you want, or it might at least get you closer and allow you to explain what you want that is different to that (for example, previous simulations' results to remain on the graph as separate plots, etc).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 03:30:06 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabVIEW/How-to-slow-down-the-simulation/m-p/3983503#M1137207</guid>
      <dc:creator>cbutcher</dc:creator>
      <dc:date>2019-11-01T03:30:06Z</dc:date>
    </item>
  </channel>
</rss>

