LabVIEW applicatio​n fails to run properly at Windows startup

I have experienced problems with my Labview application after putting it in the Windows XP startup folder. The application runs perfectly if I start it manually but whenever I get Windows XP to start it after boot-up, I see various error messages. My application uses calls to the NIMotion library and it's these calls that are generating the error messages. I don't always get the same errors and the problem has occurred with two different programs on two different computers. I think it is something to do with NI services for the motion controller that load at startup and haven't yet been started before my application runs. I have configured Windows to login automatically and I have noticed thay my program executes quite early, sometimes even before the desktop icons appear.
I have seen that a number of other users have experienced similar problems. There was a recent post titled "Waiting for Windows Idle" in the LabWindoesCVI forum that is related. The only solution that I have come across is to wait at the very start of the program until the rest of the dependent services have loaded. I have added a 30 second wait to my programs and this appears to have largely solved the problem. This is no the best solution because it is not always guaranteed to work. I have had a situation recently where Windows was installing an automatic update and the bootup process was slower than normal. This caused my program to fall over again. I don't wan't to extend this time too much or the user will be waiting every time the machine is turned on.
Another solution would be to check for those specific errors that are generated and keep trying the function calls until they are successful. I have not tried to do this yet. It would probably be quite time consuming process to write the code to process the errors because I need to build an executable and reboot everytime I want to test. And again this method is not guaranteed to catch all errors. Surely there must be a better way. I have done some initial investigation into the Windows Service Manager but haven't got too far. I've discovered I'm not a Windows programmer and I don't know what all those NI services listed under "Administrative Tools" actually do. Surely there must be some better way or some tool out there that can check that Windows has finished loading?
David Reeves

Sorry dreeves, I don't have an answer for you. I would like to know the solution myself. I had similar problems recovering from a standby state.
DAQmx takes a while to get going for USB devices and the queue functions didn't recover properly at all.  I just sat in a loop checking the status of my attached devices until they initialised properly then moved on from there.
It would be great if there was some way to check the status if the various LabVIEW modules that load on startup. Then, when all the ones you need are ready, continue with the rest of your application.
I would think checking LabVIEW for its status would be more reliable then asking Windows if it has finished starting up.
Troy
CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle

Similar Messages

  • Failed to run task \Microsoft\Windows\WS\License Validation. Error Code: 0x80041326

    Today I noticed this message in the event viewer:
    Event ID: 16387Severity: ErrorSource: Microsoft-Windows-Security-SPPLog: ApplicationMessage: Failed to run task \Microsoft\Windows\WS\License Validation. Error Code: 0x80041326
    Does this mean the free eval use version of Windows Server 2012 has expired?
    OS: Windows Server 2012 RC Build 8400
    Thanks

    Hello Darrell:
    Thank you for responding to my issue.  Here is the output you requested:
    Windows Script Host
    Software licensing service version: 6.2.8400.0
    Name: Windows(R), ServerDatacenter edition
    Description: Windows(R) Operating System, RETAIL channel
    Activation ID: c3dbac02-e65b-48bc-a61e-e14befbdd674
    Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 03612-01333-001-000805-00-1033-8400.0000-2382012
    Installation ID: 090195464127466880553502868392878303995792363977152161148874086
    Use License URL: https://activation.sls.microsoft.com/SLActivateProduct/SLActivateProduct.asmx?configextension=Retail
    Validation URL: https://validation.sls.microsoft.com/SLWGA/slwga.asmx
    Partial Product Key: 78KXV
    License Status: Licensed
    Evaluation End Date: 1/15/2013 3:59:59 PM
    Remaining Windows rearm count: 1000
    Trusted time: 9/15/2012 3:37:56 PM
    OK   
    Your request for info got me thinking about another oddity I've been working on this week - My firewall (NetGear SRX5308) shows dropped incoming packets from ip 65.55.121.94 with source port 443 and destination port 55338.  ARIN shows the ip belongs
    to MICROSOFT-1BLK, aka Microsoft.  Is it possible that my firewall is blocking communication to MS's licensing servers?

  • NILM.EXE Applicatio​n failed to initialise properly 0xc0000142

    Hi,
    I have recently had to reload windows (xp pro 2003 sp 3)  onto my laptop and eventually got round to reinstalling labview 6.1. during the install, i get the repeated message "nilm.exe - the appication failed to initialise properly 0xc0000142" after which the system grinds to a halt under the weight of many many copies of nilm.exe failing to initialise in the same way...
    I had a look around and discovered that the solution might be to disable this
    http://digital.ni.com/public.nsf/allkb/8355753BD0C​8E62F8625768C005B359B
    .. which i did.. but unfortuanely it didnt seem to work...
    does anyone have any ideas?
    Thanks,
    Mark

    Hi Mark,
    Did you receive any errors during the installation of LV 6.1 during installation? If so please take a look at the 6.1 ReadMe.txt which offers some registry keys you can comment out that may resolve the problem. If this doesn't help then what's different to this installation versus the one that worked previously, was that under XP SP3 as well? I'd re-check that you install 6.1 with the virus guard turned off, and that the virus guard allows exceptions i.e. nilm.exe on your system as it may be a security related issue preventing NILM.exe from starting.
    Kind Regards,
    Applications Engineer

  • Nokia Software Updater fails to run properly

    Nokia Software Updater version = 2.4.6en
    Nokia Suite version = 7.1.40.6
    Operating System = Vista Ultimate 64bit with SP2
    Installed the software updater and restarted as prompted, but whenever I try to run it there's a prompt "You must restart your system for the configuration changes to take effect. Click Yes to restart now, or No if you want to restart later."
    If I click Yes, the PC restarts but I get exactly the same prompt the next time I try to run the updater. If I click No, the updater exits. Either way, the updater won't run and let me update my phone's software; how can this be resolved?
    Solved!
    Go to Solution.

    have read this, and will test soon
    hello I have the same problem when NSU start allways ask for pc restart i found that the problem is a key on registry that have to be removed and on some installation remain before make changes to registry allway made a save of it then run regedit and go to the follow key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\CCDReboot delete the CCDRebbot key and NSU then run properly
    Alain

  • The applicatio​n failed to initialize properly(o​xc0000142) error message

    i keep getting this error message and the laptop just stalls from it.only solution is to pull
    the power supply and boot up again.
    now i have googled this and found that omnipass conflicts so it wiped off.
    two days goes by and now its starting to stall and display this error message.
    'running windows xp ser2
    and various other progs
    i have a up to date AV and nothing found
    i also regularly run adaware and spybot.
    anyone and any clues or solutions please.

    some kind gent on another forum looks like he has helped me so
    here is the solution in case anyone else suffers the same problem
    go to the ControlPanel>System>Hardware>DeviceManager button, find the "Universal Serial Bus controllers" section, and disable the "Allow the computer to turn off..." setting in the Power Management tab of each "USB Root Hub" item's properties. 

  • Exported quicktime presentations not running properly on Windows

    I've done a presentation that has been sent out to clients who have come back with vague comments saying that part of the presentation is not visible in full screen mode?
    After much searching around the office I've finally found a PC that seems to be doing this, I'd best describe it has playing normally but with a perminant black band across the bottom quarter of the slides?
    Any ideas or work arounds? It seems fine in internet explorer and itunes, apart from the lack of pauses but not in quicktime itself?

    I have to convert my Keynote '08 presentation for PC. The instructions for the presenters called for PowerPoints format in a CD but I was adviced by an Apple Store employee to export it to QuickTime instead of PowerPoint because QuickTime can preserve all the effects but some of them will be lost with PowerPoint. PowerPoint can handle QuickTime only up to version 2.5 so I have to make sure that the PC at the conference site has QuickTime installed, correct?
    My question is: will my QT 7.2 movie (no audio) run smoothly on 6.5.2 which is the newest version for Windows?
    Is converting it to PowerPoint safer even though I'll lose some nice effects?

  • Does elements 12 run properly under windows xp?

    I still have problems using elements 12 under xp sp3.
    Adobe chat takes many time to answer (I'd better said don't answer at all).
    Perhaps can anybody here give an answer and better a solution.

    Well the system requirements state XP Service Pack 3 with a 2GHz processor with SSE2 support, so you should be OK. Frustrating though it may be, you may need to persevere with Adobe Live Chat.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • How do you create a program in Labview that can be run as a Windows Service?

    I would like to create a Labview program that can be run as a Windows service.  I have read the following Knowlegebase articles and have done what they say. 
    Creating a Windows NT Service Using LabVIEW http://www.ni.com/white-paper/3185/en 
    Running a LabVIEW Application as a Windows NT/2000/XP/Server 2008/7  User-Defined Service http://digital.ni.com/public.nsf/allkb/21BA0F671A63A60386256CB4004DF99B
    When trying to start the service I get an error that says the program didn't respond to the start in a timely manner.  I also set the "run when opened" parameter in the VI.  I am programming in Labivew 2010, proffesional version.  The server is running Windows Server 2008.  Can anyone help?  Is the ini file important in Windows Server 2008?

    I haven't looked through all those links.  But I have created Windows Services from LabVIEW executables way back when WinXP came on the market.
    The problem with services is that they have no UI.  So you can't really see what is going on.  Your EXE might be failing or hanging due to some kind of error (most liklely a security/permissions error), but you can't see the error.  So my advice is to either:
    1.  Have your EXE write lots of info to a log file.  Write info that log every step in the application.  If an error ocurrs, have it write the error info to the log file.  That is a very useful debugging tool.
    2.  Use VI Server functions to monitor the service to see what is going on. 

  • Can Labview Programs run from the Windows System Tray?

    Does anyone know if Labview Runtime executables can be run in the Windows System tray? Any help would be appreciated.
    I'm creating a program that I want to run in the background, not visible on the desktop or taskbar.
    Thanks,
    Tom

    Requirements    Price: $29.95
     Application Software:
    LabVIEW 7.0+
     Toolkits Software:
     Additional Software:
     Language's:
    LabVIEW
    INVtray LabVIEW Toolkit allows the programmer to create a LabVIEW program that can be hidden from the task bar and accessed through the System Tray.  Comes with a sample VI that demonstrates all the features of the toolkit.

  • When I run itunes diagnostic tests, I am told secure link to itunes store failed. My firewall is not blocking itunes. I have tried to download two itunes products and these have failed to download properly. What do I do?

    When I run itunes diagnostic tests, I am told secure link to itunes store failed. My firewall is not blocking itunes. I have tried to download two itunes products and these have failed to download properly. What do I do?

    WIndows Vista and 7 uninstall instructions:
    http://support.apple.com/kb/HT1923
    Windows XP instructions:
    http://support.apple.com/kb/HT1925
    I would say a removal is necassary! this will not affect the content

  • Do I need "nilm.exe" file for labview to run properly?

    I have some problems with the "nilm.exe". Sometime it create a lot of other file in Windows tak manager and it lock completely my computer. Do I need "nilm.exe" file for labview to run properly? Can I remove it from my computer ?
    thanks in advance for your reply

    NILM.EXE is the NI License Manager for Remote Panels. If not using Remote Panels then you do not need to use NILM.EXE. The following webpage shows how to disable nilm.exe:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/581a81c57ac0c10b86256b5a005f2975?OpenDocument
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Excecutabl​e VI generating an error 222 on Keithley 2612A although its run properly when starting from labview 2009 directly

    Dear all,
    I have a VI which runs perfectly and I can control, a Keithley 2612A for transistor measurements.
    The VI run well when I excecute it from the computer which has the platform Labview 2009 (XP OS)
    The equipment (ie Keithley 2612A) is linked to another computer which don't have labview 2009.
    I installed Run-time-engine 2009 (OS XP 32 bits) on this computer.
    Then I create an excecutable of my VI with the "build application" option.
    The excecutable VI starts normally on the computer but when I want to run it, I am getting an error message from the Keithley 2612A (which was not the case when I ran the VI directly from the computer haing Labview 2009 installed on it). The error message is 222 (ie parameter too long)
    I thought that I did something wrong and I create an excecutable from an original VI from Keithley (ie without any change). I am getting the same error message.
    When I create an excecutable with run time engine 2009 included (as it is possible to do it wiht LB 2009) , I am geeting the same error message.
    So I need no to check step after step when the message happens  but
    Does anyone knows anything about such an issue ?
    Thank you
    Solved!
    Go to Solution.

    Dear all,
    Just for those who might encounter a similar issue.
    I found the solution after tackling all possibilities.
    The source of the problem was (for unknown reason) that the country setting of the computer was wrong
    and decimal numbers were written with a , instead of a point.
    Since I reset correctly the country setting, the stand alone files are running normally.
    Best regards
    Youki

  • The application failed to initialize properly 0xc0000142.

    I installed Labview and TestStand 2012 SP1 on my computer. At the beginning it seemed everything was good, but after a couple of hours I tried to launch another application from TestStand and I got this message: The application failed to initialize properly 0xc0000142.
    Now each time that I want to launch TestStand the message come up.
    How can I fix this issue?
    My OS is Windows XP
    I uninstall and reinstall everything many times.

    Grey88 -
    1) What TestStand application are you running when you get this failure; sequence editor or a user interface?
    1a) If a LabVIEW user interface, what version of LabVIEW are you using?
    1b) If the sequence editor, does any portion of the UI show before the error occurs?
    1c) Do other applications from TestStand work OK?
    2) Just wanted to explicitly confirm that you rebooted the system after changing the ini file to test the issue?
    3) For the boot.ini change, does the problem still occur if you change the value to 2048 (2GB)? I suggest to try this because applications that are not Large Address Aware (LAA) in general should not be using more than 2GB of memory. The sequence editor does not support LAA until TestStand 2013 so the OS should restrict it from accessing > 2GB. On the other hand LabVIEW started enabling LAA on its executables in an earlier version.
    Scott Richardson
    National Instruments

  • Failed to Run Task Sequence (error ocurred while retrieving policy for the computer)

    Hi, all of sudden we're getting an issue with SCCM when attempting to deploy an image we get a Failed to Run Task Sequence. Used to work previously, now suddenly it isn't working for any.
    Full error:
    Failed to Run Task Sequence
    An Error occurred while retrieving policy for this computer (0x8009310B). For more information....
    Log:
    Reading Policy Body. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Parsing Policy Body. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Downloading policy body EAB200A4-EAB00066-6F6BCC28. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Preparing Policy Body Request. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
        Setting transport. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
        Setting policy location = ttp://<mp>/SMS_MP/.sms_pol?EAB200A4-EAB00066-6F6BCC28.11_00. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Executing Policy Body Request. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    CLibSMSMessageWinHttpTransport::Send: URL: servername.bla.com.au:80  GET /SMS_MP/.sms_pol?EAB200A4-EAB00066-6F6BCC28.11_00 TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Error. Status code 404 returned TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Found a secure policy. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Trying to decode policy. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    CryptDecryptMessage ( &DecryptParams, pbEncrypted, nEncryptedSize, 0, &nPlainSize, 0 ), HRESULT=8009310b (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,339) TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Decoding in non ssl mode failed. Checking if decoding was really needed. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Failed to verify a properly formed XML. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    oPolicy.RequestPolicy((GetPolicyFlags() & POLICY_SECURE) != 0, (GetPolicyFlags() & POLICY_COMPRESS) != 0), HRESULT=8009310b (e:\nts_sccm_release\sms\framework\tscore\tspolicy.cpp,2067) TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Failed to download policy EAB200A4-EAB00066-6F6BCC28 (Code 0x8009310b). TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    (*iTSPolicyAssignment)->GetObjects(pszClassName, aTSPolicyObjectArray ), HRESULT=8009310b (e:\nts_sccm_release\sms\framework\tscore\tspolicy.cpp,1224) TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    m_pPolicyManager->GetObjects( TS::Policy::TaskSequence::GetClassNameW(), TS::Policy::TaskSequence::GetPolicyCategory(), TS::Policy::TSPolicyAssignment::POLICY_TS_FOR_CD_AND_PXE, aTSPolicyObjectArray ), HRESULT=8009310b (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,1205) TSPxe 16/01/2015
    2:54:40 PM 1176 (0x0498)
    Exiting TSMediaWizardControl::GetPolicy. TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=8009310b (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303) TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Setting wizard error: An error occurred while retrieving policy for this computer  (0x8009310B). For more information, contact your system administrator or helpdesk operator. TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    WelcomePage::OnWizardNext() TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Skipping Confirmation Page. TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Skipping Task Sequence Selection Page. TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Skipping Variables Selection Page. TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Skipping Resolve Progress Page. TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Activating Finish Page. TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Initializing the countdown timer. TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Loading bitmap TSPxe 16/01/2015 2:54:40 PM 1124 (0x0464)
    Suspending the countdown timer. TSPxe 16/01/2015 2:54:49 PM 1124 (0x0464)
    Exiting task sequence wizard. TSPxe 16/01/2015 2:54:51 PM 1124 (0x0464)
    Exiting with return code 0x00000000 TSPxe 16/01/2015 2:54:51 PM 1124 (0x0464)
    Execution complete. TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,515) TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,337) TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,549) TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    ::RegOpenKeyExW (HKEY_LOCAL_MACHINE, c_szSMSTSKey, 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,258) TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    RegOpenKeyExW failed for Software\Microsoft\SMS\Task Sequence TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    GetTsRegValue() failed. 0x80070002. TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    End program:  TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    Finalizing logging from process 840 TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    Finalizing logs to root of first available drive TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    Successfully finalized logs to C:\SMSTSLog TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)
    Cleaning up task sequencing logging configuration. TSBootShell 16/01/2015 2:54:51 PM 856 (0x0358)

    CLibSMSMessageWinHttpTransport::Send: URL: servername.bla.com.au:80  GET /SMS_MP/.sms_pol?EAB200A4-EAB00066-6F6BCC28.11_00 TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    Error. Status code 404 returned TSPxe 16/01/2015 2:54:40 PM 1176 (0x0498)
    6 (0x0358)
    Is the management point still working? Examine mpcontrol.log. Do mplist and mpcert work?
    Torsten Meringer | http://www.mssccmfaq.de

  • After installing any version of itunes. Told failed to install properly and could not burn or import music from Cd's. Also will not allow eithre one of my 2 ipods to sync with it as well.

    After installing any version of itunes. Told failed to install properly and could not burn or import music from Cd's. Also will not allow eithre one of my 2 ipods to sync with it as well.

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here. (Use your Ctrl-V keyboard shortcut to paste.)

Maybe you are looking for