LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Autostart application win xp

Hello,
 
I have a problem with my executable-application.
I'm using LV8.5 on WinXP SP2.
My application starts automatically due to a link in the "Autostart"-Folder but doesn't work properly.
The problem is that not all NI-Services/drivers are loaded when Windows starts the application.
Is there a way to start automatically my application after all required NI drivers/services have been loaded?
 
Thank you
 
Christian
0 Kudos
Message 1 of 5
(3,907 Views)
Hi,
    one years ago, i have similar problem.
    It is not "clean" solution but works.

1)try various version of NI-Daq
    (i have unsolvable problem with version 7.4 after computer start.)
2)add some delay, before application initialize ni-daq drivers (i use 30sec, on old 800Mhz procesor)//yes its dirty, but works

P.S. Im sorry about my bad English
0 Kudos
Message 2 of 5
(3,883 Views)
Hello,
 
sounds really like a "quick and dirty" solution but I think it's going to be a pracitcal way of solving the problem.
Another possibility I also want to try is to continously check the loaded system services and start the
application as soon as all ni-services have been loaded.
Therefore I just need to know the ni-services that are necessary for the data aquisition hardware....
 
Thank you
0 Kudos
Message 3 of 5
(3,858 Views)
Another quick and dirty solution could be, in case there is a specific function that terminates on error while starting, to arrange a loop that periodically issues this function until it terminates succesfully. This could be easier than querying a service status...


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 5
(3,848 Views)
I have this experience: {specialy with NI-DAQ 7.4}
The intitialization and run of analog data task is without error,
but after some time 10..30 sec, the task stop aquire data from card without any error message or error code from function.
For this reason i use start delay.{only after system reboot}

in version 7.5 i do not get this problem , but for just to be sure, i use delay too.


Message Edited by OVR_CZ on 03-07-2008 01:18 PM
0 Kudos
Message 5 of 5
(3,838 Views)