Labview Executable Becomes Unresponsive, Windows reports Insufficient Resources when trying to perform explorer tasks

I have a test program that is utilizing the NI-9481 relay modules to switch power to a part and switch a Keithley 2000 DMM  to measure the voltage. This test needs to power on and off the part 3000x for 4 minutes on and 4 minutes off. I implemented this design using a state machine design pattern. The timing is done in one minute increments using the "Get Time/Date in seconds" function available with Labview 8.2. Each minute a measurement is taken and the data is writen to a text file. 
   -Measurements Algorithm:
      -Prior to anything, instrument is initialized with a reset, enters state machine loop 
      -Measurment Function, configures DC Volts and trigger, (relays switch), send trigger and read from instrument when SRQ is asserted
   -Switching Algorithm:
      -DAQmx Create task w/Auto cleanup(T)
      -DAQmx Create channel - Digital Output
      -Property Node for Channel - DO.Invert Lines = False
      -DAQmx Generate Digital 1D Data
      -DAQmx Write Data w/ Auto start(T)
I have been working out the bugs with the devices we are communicating with and they appear to be working normally, however for the second time(yesterday was a DAQmx error) at cycle 131(17ish hours into the test) the program has become unresponsive and windows will not open the task manager and windows explorer reports "Insufficient system resources" when attempting to open a window. Labview is not reporting an error...
Currently I suspect the while loop that is controlling the timing and am placing a WaitTillNextmsMultiple function in the loop set to 500.
Also I wonder if the DAQmx sequence is consuming memory and eventually consumes all system resources. 
If anyone has any ideas or knows of a problem with the devices I am using please help. Thanks
-Nate
Solved!
Go to Solution.

N8D11 wrote:
I have a test program that is utilizing the NI-9481 relay modules to switch power to a part and switch a Keithley 2000 DMM  to measure the voltage. This test needs to power on and off the part 3000x for 4 minutes on and 4 minutes off. I implemented this design using a state machine design pattern. The timing is done in one minute increments using the "Get Time/Date in seconds" function available with Labview 8.2. Each minute a measurement is taken and the data is writen to a text file. 
   -Measurements Algorithm:
      -Prior to anything, instrument is initialized with a reset, enters state machine loop 
      -Measurment Function, configures DC Volts and trigger, (relays switch), send trigger and read from instrument when SRQ is asserted
   -Switching Algorithm:
      -DAQmx Create task w/Auto cleanup(T)
      -DAQmx Create channel - Digital Output
      -Property Node for Channel - DO.Invert Lines = False
      -DAQmx Generate Digital 1D Data
      -DAQmx Write Data w/ Auto start(T)
I have been working out the bugs with the devices we are communicating with and they appear to be working normally, however for the second time(yesterday was a DAQmx error) at cycle 131(17ish hours into the test) the program has become unresponsive and windows will not open the task manager and windows explorer reports "Insufficient system resources" when attempting to open a window. Labview is not reporting an error...
Currently I suspect the while loop that is controlling the timing and am placing a WaitTillNextmsMultiple function in the loop set to 500.
Also I wonder if the DAQmx sequence is consuming memory and eventually consumes all system resources. 
If anyone has any ideas or knows of a problem with the devices I am using please help. Thanks
If the bolded stuff is happening repeatedly... you have answered your own question.
LV will not destroy resources until it exits as part of its clean-up routine.
Create tasks and allocate resource once when you start and re-use them until you are done, then detroy them.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • On Windows Platform, encounters error when trying to open an Indesign document created from MAC

    Hi all,
    On Windows Platform, encounters error when trying to open an Indesign document in INDD format created from Mac. Error received "Either the file does not exist, you do not have permission, or the file may be in use by other application". I am currently using Adobe Indesign CC 9.2 Trial version.
    Kindly advise how can i open this document on windows platform and allows me to edit the document.
    Thanks!
    With Rgds,
    Fiona Choy

    Normally there is no problem to open any INDD opening on Windows, when created on the Mac.
    But Mac user are often not aware on the naming limitations. A file name must not contain /, \, |, :
    It should not contain any extended character, it is not a primary problem but will be, if something links to that file, so avoid also: ÄÖÜäöüß+&
    You can use all other non A-Z a-z, 0-9 and - and  _
    I personally would also recommend to avoid spaces.
    This is valid for the INDD file itself but also for all linked content.

  • Is it possible to run a Labview executable on a Windows 8 Phone?

    If I create an executable from Labview,will it be possible to run it on a Windows 8 phone?
    Solved!
    Go to Solution.

    No, as Mike already said.
    The reason being that a LabVIEW executable contains binary code that is compiled for the x86 CPU architecture and accesses the Win32 API. Windows Phone typically runs on ARM or RISC CPUs and did only provide a very limited Win32 subset in the past. With the new Windows RT technology it actually moved even further away from Win32 compatibility as it's entire architecture is based on the .Net technology.
    So even if you happen to get an Intel Atom based Windows Phone device which would be x86 compatible it couldn't work, since a LabVIEW executable is a Win32 portable executable format not a .Net bytecode image.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Controlled computer becomes unresponsive, have to reconnect and keep trying

    This has been happening for a while, back when I had 10.5.6 and now when I have 10.5.7 (combo). Sometimes when I connect to a computer remotely, by using ARD, as soon as I connect nothing reacts in the computer that I connect to. So lets say I click, move stuff or anything like that, what I see in the screen is completely static.
    But, if I close the managed computer's window and reopen again, whatever I did shows up, but whatever I try doing again doesn't show up (it's still unresponsive).
    To fix this I have to restart the computer, and it works as it should.
    How can I get rid of the problem?

    I was able to find the definitive solution for this.  I noticed that my computer was freezing approximately hourly and began to suspect my Time Machine backup solution.  After a few more steps of ruling out one variable after another I learned that Sophos (free) anti-virus was, indeed, interacting with Time Machine and causing the problem
    Sophos uses a technique called "Scan on Access" which means that no files are scanned for viruses (after the initial scan) unless they are accessed.  The problem is, when you perform a Time Machine backup many files are accessed and the machine slows to a crawl and then becomes unresponsive before you can detect it using Activity Monitor.
    I like Sophos, in concept, and disabling Scan on Access solved the problem.  But, then I did not have a live anti-virus/malware detector which, regretably, is becoming more important for Macs these days.
    I uninstalled Sophos and my problem is resolved.  I installed another well-known reputable anti-virus tool (that uses a different strategy than Scan on Access), and the problem did not return.
    I hope this helps.
    Best regards,
    John in Fort Collins

  • Sql Server Web Edition Reporting Services errors when trying to connect to Windows Azure SQL

    I am using a preconfigured image from the Azure VM Gallery to create a VM.
    --> Sql Server 2012 SP1 Web running under Windows Server 2008 R2
    After configuring Reporting Services I get the following error when trying to run a report that connects to my Azure SQL db.
    An error has occurred during report processing. (rsProcessingAborted)
    An attempt has been made to use a data extension 'SQLAZURE' that is either not registered for this report server or is not supported in this edition of Reporting Services. (rsDataExtensionNotFound)
    On the VM using SSMS I can connect to the Azure SQL db.  On the VM in Report Builder when I define a connection I get a similar error to the one above when I test that connection.  I am using Microsoft Azure SQL as the data source type. 
    Interestingly in Report Builder, if I proceed past the connection definition, I can see the tables from my Azure SQL db in the dataset definition page.
    One more note.  If I use a different image from the Gallery (Sql Server 2012 Standard SP1 on Windows Server 2012) my report builder connection works and the reports run fine.  I believe that the Azure documentation says that Sql Server Web edition
    is an acceptable choice for the SSRS on VM for reporting.
    Any thoughts or suggestions?
    Thanks -- Tom Reilly

    Hello,
    A VM with SQL Server 2008 R2 or 2012 supports all Reporting Services features, including all supported data sources, customization and extensibility, and scheduled report execution and delivery.
    Did you run the report in Report Manager,or preview the report in Report Builder? Which version of the Report Builder you installed in the Windows Azure VM? SQL Reporting does not support reports created from Report Builder 1.0 or 2.0. You can create reports
    using Report Builder 3.0 and then upload the reports.
    What's more, please also check the database source credential of the report.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • CRXIR2 - Report is stuck when trying to open report using RDC library

    Hi,
    I'm working on .Net  reporting appliaction that uses CRXI R2 (Embedded Server) as a reporting engine.
    I have a problem with a customer in prodction site,
    when trying to open report with RDC library, report hangs and nothing happens:
    applicationLog.WriteTrace("open report using  RDC");
    Report report = (ReportClass)application.OpenReport(this.tempFile, CROpenReportMethod.crOpenReportByTempCopy);
    // tempFile is the path to the rpt file and it's valid
    //application is ApplicationClass from CRAXDRT namespace
    //ReportClass is from CRAXDRT namespace
    applicationLog.WriteTrace("Open report succeeded")
    I've added log printing to my application, and what i see is that the first print ("Open Report using RDC") occurs, and the second print is never listed..
    I don't see any errors or log prints appear in Crystal logs.
    Any help would be greatly appriciated!

    Hi Dana,
    Long time since we've talked. I suggest logging a case in SMP. If you do let me know what the case number is and I'll pick it up. I'll also send you an e-mail....
    I take that back, because R2 is no longer supported you can't log a case....
    First issue is the RDC is not supported in .NET, second issue is the RDC is only available in CR XI R2 which is no longer supported.
    And finally it's about time you update your app to use the CR .NET Assemblies. All of our OEM Partners are now doing so.
    In the mean time these 2 are the only versions officially not supported:
    https://smpdl.sap-ag.de/~sapidp/012002523100009114712011E/crxir2sp4_fullbuild.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100009114412011E/crxir2sp6_incremental.exe
    See if these help. You can get the runtime distribution from here:
    SAP Crystal Solutions Downloads
    Install Fix Pack 6.4 to get all of the fixes and use the redist packages for that version also.
    Thanks
    Don
    Edited by: Don Williams on Jan 24, 2012 7:55 AM

  • I just factory restored my iPod 5 touch and when I plug it into iTunes to restore the back up I made, iTunes becomes unresponsive and closes. But when I unplug the iPod, it starts working again. Using Windows 8 and iTunes is updated, please help.

    I just factory restored my iPod 5 touch and when I plug it into iTunes to back it up, iTunes stops responding and closes. This only occurs when the iPod is plugged in, when it isn't, iTunes works fine. I am using Windows 8 and iTunes is updated (as of this posting). Any suggestions on getting around this? Thank you.

    Also, when I put it through the Windows diagnostic, it lists an "incompatible program" WHILE my iPod is plugged in.

  • My Macbook keyboard and trackpad become unresponsive for periods of time when I shut my mac off or when I close the lid.

    Sometimes it starts working again when I turn it back on and sometimes it doesn't. It's not the keyboard. I installed a new one and still have the same issues. I am not sure what to do to fix this problem. Has anyone experience this before? Any help would be much appreciated.

    OK. That makes much more sense.
    I would like you to create a new admin user with Users & Groups for testing purposes. Turn off auto-login if you have it enabled. Restart the computer and log into the new account. Test if the problem still exists or has ceased. If it has ceased then the issue is most likely something in your user account. You can start by using software like CockTail, Onyx, or Mountain Lion Cache Cleaner (look for them at www.macupdate.com) to clean up system, user, and font caches, check for old log files, etc. Do this all in your usual account, btw.
    See how that helps your situation. If it's not in your user account, then it's a system issue. You can then try reinstalling to see if that helps:
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Why do I get the message "Insufficient Permissions" when trying to download updated iTunes software

    Why do I get "Insufficient Permissions" message?

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Oracle reports builder hangs when trying to open an rdf

    Hi,
    I am trying to open a report and once I browse and select the component, nothing happens.
    Has anyone faced this issue in Reports 11g in Windows 7 Professional.
    Thanks

    Hello, can you please provide the link of the offending page which is working fine on Internet Explorer, but showing an 'Application Error' so that we can take a look. Typically this happens if the website owner has some code specific to IE that is not cross-platform.
    Thank you

  • Bridge CS4 one Windows 7 stops working when trying to load pictures in a new file

    Bridge starts fine but when i click on some files to see the pictures in there it stops working.
    The message i get is:
    "Adobe Bridge has stopped working
    A problem caused the program to stop working correctly.
    Windows will close the program and notify you if a solution is available."
    I had problems with my XP x64 and CS4 bridge too and after formatting and installing windows 7 Ultimate (32 bit) i thought it would be solved ... but no such luck.
    Any ideas what to do?
    also not sure where to look for any error logging or something similar.
    Oh having problems with itunes too as it will not start....., yea i know wrong forum but just incase someone has the same problem as i do
    I appreciate your help

    This is what i get from the event viewer:
    Sorry i have no idea what to look for
    System
    Provider
    [  Name]
    Application  Error
    EventID
    1000
    [  Qualifiers]
    0
    Level
    2
    Task
    100
    Keywords
    0x80000000000000
    TimeCreated
    [  SystemTime]
    2010-02-06T01:28:23.000000000Z
    EventRecordID
    3309
    Channel
    Application
    Computer
    Workstation
    Security
    EventData
    Bridge.exe
    3.0.0.464
    48b75dac
    unknown
    0.0.0.0
    00000000
    c0000005
    041b15e1
    d8c
    01caa6cba0a860a8
    C:\Program  Files\Adobe\Adobe Bridge CS4\Bridge.exe
    unknown
    ea035ed1-12be-11df-9400-001fd08134a0

  • Issues with itunes 10.5 on Windows 7 (32 Bit) When Trying to sync iphone 4S or older

    I see a lot of people out there, specifically windows OS owners (xp all the way to 7), having issues with iTunes 10.5.  Here are the following issues I've encountered (some may only have one problem, others my have a combo pack of problems).
    1. iphone 4S or older won't sync or backup
    2. iTunes store won't open
    The issue I found after using the diagnostics tool in iTunes (which is useless in identify scripting issues or major communication issues), reviewing the windows event log, and reinstalling all apple software and components, was the fact that my spyware and anti virus software was causing a communication error within apple's software.  I use spyware doctor with anti virus.  I had to uninstall spyware doctor in order for iTunes 10.5 to work.  After that, everything worked well and I did a clean install of spyware doctor.
    If the issue still persists, you might have to reset your internet protocol (TCP/IP).  You have to run a command prompt as an administrator and enter the following: netsh winsock reset
    Visit this Microsoft link for more info about resetting your IP:  support.microsoft.com/kb/299357    
    Finally words:  Apple, like all other software companies, continually encounter software glitches and issues because they don't test products correctly before bringing them to market- this has been a reoccurring theme for the last 2-3 years.  The most important aspect of using any software should be functionality, efficiency, ease of use, and above all "A Positive End User Experience."  Wasn't that Steve Job's mantra?  We can all hope that Apple embraces his philosophy and vision for the many years to come.  This, above all, is not a great start for Apple moving forward without their true inspirational leader. 

    Here is what worked for me for both 10.5 and 10.5.1 after hours of frustration with Itunes stopping and shutting down in the middle of a sync or tranferring Apps downloaded on my Ipad2 or Iphone 4:
    Start iTunes in iTunes Safe Mode:
    1.  hold down the Shift and Control key together and click to start iTunes.
    2.  when you see the iTunes icon in the task bar, click on it.
    3.  you will get a box that says "iTunes is running in safe mode.  Visual plug-ins you have installed have been termporarily disabled."   [I don't know what plug-ins I installed but you should clearly see that these so-called visual plug-ins are likely the cause of your issues];
    4. click Continue to open iTunes.
    You could already have your device connected to your computer or do it after opening iTunes in its safe mode.
    Now press your sync button and everything should work fine.
    I also disabled Genius in iTunes preferences but I'm not sure if this is one of the issues causing these types of problems.
    I hope this works.  This may be the workaround for all of us Windows 7 64-bit folks.

  • Windows error 0xC1900101-0x40017 when trying to install windows 8.1

    Hello.
    I am standing with a problem who is beggining to pestering me.
    I have tried to update my windows 8 to windows 8.1 the past week. But every times i tries, my screen goes blue and it says windows have gone into a proplem and it need to restart. After the restart it pops up with this error 0xC1900101-0x40017
    and then it restores my pc to an earlier moment.
    These things have i tried: I have installed the newest updates from Windows update and Nvidia drivers. I have tried to disable my antivirus. I dont know what to do?

    follow this FAQ to troubleshoot this issue
    http://social.technet.microsoft.com/Forums/en-US/4d0cbd0a-2f74-4793-8f2d-322e2e528819/windows-81-upgrade-issues?forum=w8itproinstall
    let us know the update

  • Crystal Reports shuts down when trying to use the Add Command feature

    I am using Crystal Reports 9 with and Oracle database.  I go to new report, as a blank report, new connection to oracle, double click add command, paste the sql and click ok and crystal shuts down at that point.  Any one have this happen before?? Please help??

    Hi Allison,
    Have you tried with  basic syntax at command level.
    If you face any problem using Add command in crystal designer, just try to reinstall the product.
    Regards,
    Naveen.

  • Windows Support Software Unaviable when trying to download using the assistant

    I can't download the Windows 7 support software using the asistant it, the program tells me is a network error, i've read in the forums that you can use the OSX dvds but my macbookpro I bought my macbook this year and it came without any installation DVDs anyone know a workaround to this problem?

    For the sake of full disclosure, I skip the Assistant part, I still use Apple drivers.
    That makes it easy to clone and use Windows as 100% native as a PC.
    NTFS from Paragon supports Windows in its own control panel as Startup Disk and write.
    HFS from Paragon improves on AppleHFS to mount and provide read and write support.
    Paragon Hard Disk Manager 12 Suite handles Windows 8 management.
    Note that with Windows on its own drive you 'boot' from System Reserved partition for Windows, not from your Windows volume. Should be 100MB for 7 and 350MB for 8.
    PLEASE, OP, read the guide etc. There are no DVDs for Lion, so it is download only.
    There is a link to Boot Camp 4.0 but you really want 4.01+ Shame. Downloads take couple minutes (600MB file, so whatever your broadband can handle). That is the way it should be.
    It has been crippled and can't be just a fluke.
    I think most would like to download from the AppStore for free or small fee $2.99 if that would work and give you the latest and be done in 10 minutes.

Maybe you are looking for

  • Reg: Process Flow of DMS

    Hi Experts This is kumar.I'm new to DMS. pl explain the process flow of DMS. I have created document- cv01n, document structure. My queries are; 1. How to attach the document- relevant status 2.Where i can see the attched documents(object links),like

  • Existing ipad with new mac

    I'm helping a friend set up a brand new iMac. He has his ipad synced with windows itunes on his pc but we want to sync with the new mac.  When we try to sync it tells us we have to erase the ipad and sync with his new itunes library...we don't want t

  • Java 7 update

    Is the Java 7 update safe on my Mac? 

  • All contacts lost! Urgent help needed

    Dear All, I was trying to update my friends iphone and after updating it to version 6, i have lost all the contacts from the list, can anyone pls tell me how to get these contacts back. By the way i used my apple id when i connected to itunes.

  • Workflow erroring out at UPSERT step

    Hi All, when i am trying to simulate the workflow if is giving the following error message and error codes. An end of file error has occurred. Please continue or ask your systems administrator to check your application configuration if the problem pe