<?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: Insufficient system resources error in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451293#M219244</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;Go ahead and post the file and let me know what happens after you change the VI.</description>
    <pubDate>Thu, 07 Dec 2006 22:51:32 GMT</pubDate>
    <dc:creator>Dennis_Knutson</dc:creator>
    <dc:date>2006-12-07T22:51:32Z</dc:date>
    <item>
      <title>Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451070#M219162</link>
      <description>Quick question....I keep getting the following error after my LabVIEW 
7.1 program has been running for a while:
&lt;BR /&gt;

&lt;BR /&gt;
"Error -1073807300 occurred at agn330xa Initialize With Options.vi
&lt;BR /&gt;
Possible reasons(s):
&lt;BR /&gt;
Driver Status:&amp;nbsp; (Hex 0xBFFF003C)&amp;nbsp;&amp;nbsp; Primary Error:&amp;nbsp; (Hex 0xBFFF003C)&amp;nbsp; 
Insufficient system resources to perform
&lt;BR /&gt;
necessary memory allocation."
&lt;BR /&gt;

&lt;BR /&gt;
It varies on which instrument's driver it occurs on, but it alway seems 
to occur on the initialization VIs after my program
&lt;BR /&gt;
loops back through itself a few times.&amp;nbsp; This error causes me to close 
out LabVIEW completely before my program will run again.
&lt;BR /&gt;
I am closing out the VISA sessions after each of my tests for all 
instruments used in that test.
&lt;BR /&gt;

&lt;BR /&gt;
Any thoughts??&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Ryan&lt;BR /&gt;

&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Dec 2006 16:37:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451070#M219162</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451190#M219196</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;The only driver I found for that instrument is an IVI one. Are all of your drivers IVI or is it just this one? When you do the close, are you just using a VISA Close or are you using the Close function in the driver? If you are using VISA Close, replace it with the driver close function. &lt;/P&gt;
&lt;P&gt;Also, what version of VISA and the IVI Compliance Driver are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2006 19:32:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451190#M219196</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-12-07T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451197#M219198</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I am using the drivers' close functions for all instruments.&amp;nbsp; I have a few of each type of driver.&amp;nbsp; Like I said though, it's not just one set of instrument drivers that I'm getting the error on.&amp;nbsp; The other one I've been getting the error on a lot is for a Xantrex XFR Series Power Supply.&lt;/P&gt;
&lt;P&gt;I am using VISA version 3.3, and the IVI Compliance Package 2.1.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2006 19:45:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451197#M219198</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T19:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451202#M219202</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;We've only go a couple of testers with a single IVI controlled instrument and I'm pretty sure those are the versions being used. The latest versions are 4.0 vof VISA and 2.5 for the compliance package. You could try upgrading but I have no&amp;nbsp; idea if that would fix the problem. You could also post your program (or a small example) that demonstrates the problem. Maybe someone can see something in the code. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I'm pretty careful about closing IVI references but regular VISA ones haven't been a problem in a few years. It used to be that VISA Open would create a new refnum each time it was called, but now it just reuses a reference if one is already open.&lt;/DIV&gt;&lt;P&gt;Message Edited by Dennis Knutson on &lt;SPAN class="date_text"&gt;12-07-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:56 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2006 19:56:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451202#M219202</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-12-07T19:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451209#M219206</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I will upgrade to VISA 4.0 and IVI 2.3 now (it says I need a new version of NI-Spy to go to 2.5).&lt;/DIV&gt;
&lt;DIV&gt;I can't post the code, because it is much too large for posting.&amp;nbsp; It is around 20MB.&lt;/DIV&gt;
&lt;DIV&gt;This is getting annoying because my program is complete and working fine, except for these errors, which are a&lt;/DIV&gt;
&lt;DIV&gt;big killer.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Is there some way within LabVIEW to release all resources being used by all VISA instances?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I'll let you know if the upgrades help.&lt;/DIV&gt;&lt;P&gt;Message Edited by REash on &lt;SPAN class="date_text"&gt;12-07-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:18 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2006 20:17:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451209#M219206</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T20:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451240#M219219</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;The upgrade didn't help.&amp;nbsp; Still get the error.&lt;/P&gt;
&lt;P&gt;Since my last change,&amp;nbsp;the&amp;nbsp;error&amp;nbsp;is consistantly occurring at the exact same place every time, on the same driver VI, and on the same iteration through my program.&lt;/P&gt;
&lt;P&gt;My program basically loops through the bulk of the program 6 times, and it is&amp;nbsp;now on the third time through that it gets stuck on this error.&amp;nbsp; Before I put in the VIs to close the VISA sessions, it was always getting stuck on the second loop through.&amp;nbsp; So putting the&amp;nbsp;VISA closes in helped.&amp;nbsp; What else more can I do??&lt;/P&gt;
&lt;P&gt;Is there a way to allocate more resources for my program, or some way to free up more memory to use for it?&lt;/P&gt;
&lt;P&gt;Any other thoughts at all would be helpful.&lt;/P&gt;&lt;P&gt;Message Edited by REash on &lt;SPAN class="date_text"&gt;12-07-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:27 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2006 21:24:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451240#M219219</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T21:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451261#M219225</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;I don't think it's a resource problem that you can fix by adding more memory or anything like that but I don't know what could be causing the problem. What driver is doing it consistently now? Is it the IVI driver you mentioned before? If it is, I suppose it's possible that there is some sort of memory leak in the driver itself. That sort of thing might be difficult to find unless someone has both CVI and the instrument itself. You could turn on NISpy to see if you see something there.</description>
      <pubDate>Thu, 07 Dec 2006 21:47:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451261#M219225</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-12-07T21:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451267#M219228</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;The&amp;nbsp;VI driver doing it now is the initialization VI for&amp;nbsp;the Xantrex XFR Power Supply I spoke of before.</description>
      <pubDate>Thu, 07 Dec 2006 21:53:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451267#M219228</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T21:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451270#M219229</link>
      <description>&lt;DIV&gt;Could the size of my program itself be the problem here?&lt;/DIV&gt;
&lt;DIV&gt;It doesn't seem like it would be, since&amp;nbsp;the program is actually&amp;nbsp;running...&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I will try running NI-Spy to see what it sees when the error occurs.&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Dec 2006 22:01:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451270#M219229</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T22:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451271#M219230</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I think I might have the solution. I downloaded the driver for that instrument and in the intialize function, there is Old VISA Open. You should replace this with the VISA Open on the Instrument I/O&amp;gt;VISA&amp;gt;VISA Advanced palette. When you do that, the wire to the string control 'Instr. Descriptor (GPIB::2::INSTR)' will be broken. The string control needs to be deleted and you need to right click on the VISA Session (for class) terminal and select Show Control. Go to the front panel and wire the VISA Session control to the upper left point on the connector pane.&lt;/P&gt;
&lt;P&gt;This Old VISA Open shows up in drivers that have been converted from very old drivers. I've usually had the initialize fail to work at all with it in there. I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2006 22:04:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451271#M219230</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-12-07T22:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451278#M219235</link>
      <description>&lt;DIV&gt;I'll give that a try.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I use that same initialize driver many times prior to that point in my program, and remember, this is on the third loop through that the error is occurring.&lt;/DIV&gt;
&lt;DIV&gt;Do you have any idea why that driver VI would be working fine up until that particular point in my program?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;And why would I be getting that same error with the initialization VI for that other instrument, the agn330xa that I first was having that problems with, that my first post was based on?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I'm still going to let my program keep running until I see what NI-Spy catches.&amp;nbsp; Then I'll try changing that&amp;nbsp;Xantrex driver tomorrow.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What is the problem with having the "Old VISA Open" in there?&amp;nbsp; Is there known problems with that being in drivers?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks,&lt;/DIV&gt;
&lt;DIV&gt;Ryan&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Dec 2006 22:12:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451278#M219235</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T22:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451290#M219242</link>
      <description>&lt;DIV&gt;I ran NI-Spy and it caught the error, but I don't know if there's really anything to learn from the file.&lt;/DIV&gt;
&lt;DIV&gt;If you think there's any value in looking at it, I can post it if you'd like.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I'll try changing that driver file tomorrow.&lt;/DIV&gt;
&lt;DIV&gt;Dennis, if you could, please check back tomorrow to see if I still need help!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks!&lt;/DIV&gt;
&lt;DIV&gt;Ryan&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Dec 2006 22:48:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451290#M219242</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-07T22:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451293#M219244</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Go ahead and post the file and let me know what happens after you change the VI.</description>
      <pubDate>Thu, 07 Dec 2006 22:51:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451293#M219244</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-12-07T22:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451326#M219262</link>
      <description>&lt;DIV&gt;I don't know if your program should be 20MB.&amp;nbsp; If not, try to clear the graphs.&amp;nbsp; search "reduce vi file size" for more info.&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Dec 2006 00:32:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451326#M219262</guid>
      <dc:creator>Weiyuan</dc:creator>
      <dc:date>2006-12-08T00:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451327#M219263</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;I used to have that annoying problem back with 5.0 to 6.1 until I knew exactly what happened when looking at a colleague's routine. You must have a visa close before getting out of last loop that is just after the visa open. This would cause an overflow in GPIB buffer everytime the same visa reference is passed but was closed prematurely without re-openning it. However this&amp;nbsp;may not be&amp;nbsp;true enough but I noticed this behavior occurred no matter which labview or visa version, "old" or "new" visa open was used.&amp;nbsp;</description>
      <pubDate>Fri, 08 Dec 2006 00:35:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451327#M219263</guid>
      <dc:creator>napview</dc:creator>
      <dc:date>2006-12-08T00:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451510#M219331</link>
      <description>&lt;DIV&gt;Dennis, here is the NI-Spy file.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I'm about to change the XFR driver VI now.&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Dec 2006 14:32:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451510#M219331</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-08T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451529#M219336</link>
      <description>&lt;DIV&gt;I see a whole lot of viOpen&amp;nbsp;for GPIB0::4 but the only viClose I see is at the very end. Are you sure you have a close for it? If you have a loop and are opening the instrument each time in the loop, then you should also be closing it in the loop. There's no reason to open it inside a loop though. Doing it once at the very beginning of the program is enough.&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Dec 2006 14:46:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451529#M219336</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-12-08T14:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451553#M219344</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;What you are seeing there is all within one test sequence of my program.&amp;nbsp; I re-initialize the instrument a few times in each test to clear out the instrument settings when performing a new step of the test, but&amp;nbsp;I close the VISA session at the end of the test.&amp;nbsp; Does it hurt anything to re-initialize it as often as I do?&amp;nbsp; I probably don't need it as often, but can that cause problems?&amp;nbsp; I do close&amp;nbsp;the VISA sessions&amp;nbsp;after each test...&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;My test program is running right now to see if changing that driver VI helped at all.&lt;/DIV&gt;&lt;P&gt;Message Edited by REash on &lt;SPAN class="date_text"&gt;12-08-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:09 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2006 15:08:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451553#M219344</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-08T15:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451573#M219355</link>
      <description>&lt;DIV&gt;The intialize function calls VISA Open each time it's called and optionally reads the id and does a reset. You should only be doing this once. If you need to do a reset, call the reset function by itself. &lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Dec 2006 15:26:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451573#M219355</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-12-08T15:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient system resources error</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451577#M219358</link>
      <description>&lt;DIV&gt;Yes, but would that cause an error like I'm getting?&amp;nbsp; An error that doesn't occur until after the program is running for a while...&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Dec 2006 15:29:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Insufficient-system-resources-error/m-p/451577#M219358</guid>
      <dc:creator>REash</dc:creator>
      <dc:date>2006-12-08T15:29:50Z</dc:date>
    </item>
  </channel>
</rss>

