LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a NT service using LabVIEW

Hi,

last week I followed the instructions from the NI tutorial " Creating
a Windows NT Service Using LabVIEW" from http://zone.ni.com/devzone/cda/tut/p/id/3185.
It worked, I was happy.

Today I tried again and something strange happens: When i start the
new created service it does not start as a service but as an
application with it's Frontpanel open!

So what did I do?
1.) Created a very simple TestService.vi
Just a while loop with 1s Timer inside and counting up a shift
register, nothing more.
2.) Create Application TestService.exe (No special actions required in
AppBuilder, right?)
3.) Testing Application: FP shows up, ok
4.) Copy TestService.exe, srvany.exe and instsrv.exe to d:\TestService
5.) Open a command prompt, typed:
instsrv TestService d:\TestService\srvany.exe
"CreateService SUCCESS" appears, Service was installed, I can see
it in the Services applet
6.) Changed "LogInAs" from Admin to local System (DataExchange
Allowed)
7.) Added new Key in the Registry for the new service and there added
a
new String "Application", set it's value to "D:\TestService
\TestService.exe"
8.) i can start the Service manually and it can be started at system
startup.
But when the service i started the frontpanel opens and I see
TestService in the Taskbar!

What am I doing wrong?!
I already read the tutorial almost for the 10th time now in search of
things I forgot. Any ideas would be great.

I'm using LV8.2 ProfDevSys with AppBuilder

Thank You,
Stefan

0 Kudos
Message 1 of 1
(2,577 Views)