<?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: mult-channel PID control using PID Toolkit in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514438#M244635</link>
    <description>&lt;DIV&gt;&lt;EM&gt;Could you point to me where do you find this&amp;nbsp;PID algorithm?&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;/EM&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The algorithm is part of the PID Toolkit.&amp;nbsp; I'll have to check to see if the code inside the VI is "viewable".&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 Apr 2007 11:37:31 GMT</pubDate>
    <dc:creator>rgentry</dc:creator>
    <dc:date>2007-04-30T11:37:31Z</dc:date>
    <item>
      <title>mult-channel PID control using PID Toolkit</title>
      <link>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514312#M244575</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am controlling the light level in six locations (zones) using light sensors, dimmable ballasts (which respond to a 2 to 10 VDC signal)&amp;nbsp;and the PID toolkit.&amp;nbsp; In my VI, I loop through 6 times (once for each zone) to control the light levels.&amp;nbsp; I use the simple PID.vi to determine the next setpoint for the dimmable ballast on the lights.&amp;nbsp; My problem is as follows, I think:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The PID algorithm uses past response and the current difference between the measured variable and the setpoint to calculate the next setpoint.&amp;nbsp; If my understanding is correct, then I am confusing the PID algorithm by calling it with 6 different data sets.&amp;nbsp; It is almost as if I need 6 separate PID functions, one for each zone.&amp;nbsp; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Perhaps I am wrong about the operation of the PID algorithm.&amp;nbsp; Can someone straighten me out?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Attached is a snapshot of the VI.&amp;nbsp; The FOR loop goes from 1 to 6, that is, once for each sensor zone.&lt;/DIV&gt;&lt;P&gt;Message Edited by rgentry on &lt;SPAN class="date_text"&gt;04-29-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:11 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2007 02:09:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514312#M244575</guid>
      <dc:creator>rgentry</dc:creator>
      <dc:date>2007-04-30T02:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: mult-channel PID control using PID Toolkit</title>
      <link>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514363#M244595</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Could you point to me where do you find this&amp;nbsp;PID algorithm?&lt;/P&gt;
&lt;P&gt;you could always try to build your own PID subvi, and check again. you might need different gain parameters for each lamp tough...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2007 07:28:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514363#M244595</guid>
      <dc:creator>Gabi1</dc:creator>
      <dc:date>2007-04-30T07:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: mult-channel PID control using PID Toolkit</title>
      <link>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514438#M244635</link>
      <description>&lt;DIV&gt;&lt;EM&gt;Could you point to me where do you find this&amp;nbsp;PID algorithm?&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;/EM&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The algorithm is part of the PID Toolkit.&amp;nbsp; I'll have to check to see if the code inside the VI is "viewable".&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Apr 2007 11:37:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514438#M244635</guid>
      <dc:creator>rgentry</dc:creator>
      <dc:date>2007-04-30T11:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: mult-channel PID control using PID Toolkit</title>
      <link>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514477#M244655</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;rgentry,&lt;/P&gt;
&lt;P&gt;The PID has two modes of operation: Single Channel and Muti-channel. The way you developed your algorithm, you are using single channel algorithm with multiple setpoint and variables. This will not work properly since LV will not keep the internal states correct for each channel. &lt;/P&gt;
&lt;P&gt;To fix this, it is pretty simple. Remove the For Loop and provide the whole 1D array to the PID.vi. This will enable the "multi-channel" mode and every time you call your VI, it will keep the internal states for each channel, as if you had 6 different PIDs in parallel. Notice that the interpolation also will work the same way, you just need to remove the build array primitive.&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2007 12:52:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514477#M244655</guid>
      <dc:creator>Barp</dc:creator>
      <dc:date>2007-04-30T12:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: mult-channel PID control using PID Toolkit</title>
      <link>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514482#M244656</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Barp:&amp;nbsp; This helps a lot.&amp;nbsp; I'll rework the control VI as you suggest.&amp;nbsp; Thanks again.</description>
      <pubDate>Mon, 30 Apr 2007 13:10:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/mult-channel-PID-control-using-PID-Toolkit/m-p/514482#M244656</guid>
      <dc:creator>rgentry</dc:creator>
      <dc:date>2007-04-30T13:10:31Z</dc:date>
    </item>
  </channel>
</rss>

