<?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 Resource allocation for different tasks in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Resource-allocation-for-different-tasks/m-p/1558368#M574191</link>
    <description>&lt;P&gt;I have been trying to use the example code: "Gen 0-20Ma Current.vi" to operate a series of 8 Mass Flow Controllers, which respond either to a voltage or current load (I have them set for voltage).&amp;nbsp; The code works fine for a single MFC but as soon as I duplicate the code to try and simultaneously control a second MFC, which is wired onto a second analog channel I receive the error: "Resource Requested by another task".&amp;nbsp; I though I had this fixed by giving each of the tasks a unique name as opposed to "unnamed" but alas the error still pops up.&amp;nbsp; Strangely the code runs fine when I am in the "highlight execution" mode.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using LabView 2010 and an NI 9264 mounted on a NI DAQ-9178.&amp;nbsp; I was essentially using the example code as is, so I did not post it in this message. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2011 00:19:28 GMT</pubDate>
    <dc:creator>maxb_colo</dc:creator>
    <dc:date>2011-05-13T00:19:28Z</dc:date>
    <item>
      <title>Resource allocation for different tasks</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Resource-allocation-for-different-tasks/m-p/1558368#M574191</link>
      <description>&lt;P&gt;I have been trying to use the example code: "Gen 0-20Ma Current.vi" to operate a series of 8 Mass Flow Controllers, which respond either to a voltage or current load (I have them set for voltage).&amp;nbsp; The code works fine for a single MFC but as soon as I duplicate the code to try and simultaneously control a second MFC, which is wired onto a second analog channel I receive the error: "Resource Requested by another task".&amp;nbsp; I though I had this fixed by giving each of the tasks a unique name as opposed to "unnamed" but alas the error still pops up.&amp;nbsp; Strangely the code runs fine when I am in the "highlight execution" mode.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using LabView 2010 and an NI 9264 mounted on a NI DAQ-9178.&amp;nbsp; I was essentially using the example code as is, so I did not post it in this message. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 00:19:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Resource-allocation-for-different-tasks/m-p/1558368#M574191</guid>
      <dc:creator>maxb_colo</dc:creator>
      <dc:date>2011-05-13T00:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Resource allocation for different tasks</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Resource-allocation-for-different-tasks/m-p/1558886#M574262</link>
      <description>&lt;P&gt;It's easier to help if you post&amp;nbsp;some code so we understand what's not working.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 11:42:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Resource-allocation-for-different-tasks/m-p/1558886#M574262</guid>
      <dc:creator>Stranman</dc:creator>
      <dc:date>2011-05-13T11:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Resource allocation for different tasks</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Resource-allocation-for-different-tasks/m-p/1559474#M574353</link>
      <description>&lt;P&gt;Hi maxb_colo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, you have 8 MFCs each connected on their own channel of your cDAQ 9264 (so MFC1 on ai0, MFC2 on ai1, MFC3 on ai2, etc.) and can only use one at a time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using DAQmx, you need to keep all analog input tasks for a single device as one task. You can have one analog input task that addresses multiple channels of a device. Here is a short article that shows how to &lt;A href="http://digital.ni.com/public.nsf/allkb/A3A05920BF915F1486256D210069BE49?OpenDocument" target="_blank" rel="nofollow"&gt;configure multiple channels for one task&lt;/A&gt;. Scroll down for how to do it in LabVIEW.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you try this and still run into problems, feel free to reply with a screenshot of your block diagram and the error message and I will be happy to help you get it working. Best of luck!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2011 17:12:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Resource-allocation-for-different-tasks/m-p/1559474#M574353</guid>
      <dc:creator>micahmcc</dc:creator>
      <dc:date>2011-05-13T17:12:49Z</dc:date>
    </item>
  </channel>
</rss>

