Discussion:
Can we run LabVIEW as a background process
(too old to reply)
9449636430
2006-02-21 06:11:18 UTC
Permalink
Hey
Im not able to find out how i can run LabVIEW application as a service through my C#.net application....
AESulzer
2006-02-21 22:41:14 UTC
Permalink
The Windows function used in the Knowledgebase I referenced is only effective on Windows 9x systems, so if you are using a newer version of Windows, it won't work for you. Running LabVIEW as a service is really more of an OS question than a LabVIEW question, and I'm afriad I don't have any experience with this. LabVIEW can be treated like any other application when it comes to calling it as a service from C#, so I would try searching online for a solution. Perhaps if anyone else on the forums has experience with calling LabVIEW as a service on newer Windows versions, they can share their experiences.
Kind Regards,
Nishant
2006-12-01 07:10:13 UTC
Permalink
Hiii,
 
       I want to run my LabVIEW application as a background process, is it possible? if it is, then how?
Nishant
2006-12-05 05:10:12 UTC
Permalink
Hiii, Michael
                 Actually these all suggetions are about to hide the normal exe file, but what i am asking is aobut any method in LabVIEW, which directly do the same thing and when i make the exe it always make it like when the LabVIEW exe runs, runs as the background process.
Thanks,
Nishant
Rudi N
2006-12-14 17:10:14 UTC
Permalink
Nishant:In order to hide the VI Front Panel Window, do the following :- - At the beginning of the top-level VI, open a reference to the top-level VI using the Open VI Reference function, located in the Functions » All Functions » Application Control subpalette.
- Wire the vi reference output of the Open VI Reference to the reference input terminal of a Invoke Node function, located in the Functions » All Functions » Application Control subpalette.
- Select the Open FP method and set the state of the Front Panel to Hidden.
- Close the reference to the VI using the Close Reference function, located in the Functions » All Functions » Application Control subpalette.



<img src="Loading Image..." height="150" width="400">


- Hiding the Windows Taskbar Entry:
- After building the top-level VI into an executable,
open its corresponding .ini file. In LabVIEW 7.1 and previous, LabVIEW
does not automatically create an .ini file for you upon building of the
executable. Running the VI once will create this .ini file
automatically (it will be empty).
- Verify that the top line of the ini file is [Application] where "Application.exe" is the name of your executable file.
- Add HideRootWindow = True to the .ini file. This will hide the Windows Taskbar Entry for the executable.
- Finally,
make sure the modified .ini file is placed in the same directory as the
executable when the stand-alone application is taken to the target mach

The above mentionned steps should allow you to run the executable in the background. I hope this helps and please let me know if I can be of any help.Regards,Rudi N.
Nishant
2006-12-19 04:40:13 UTC
Permalink
Yes ofcourse,
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; All the suggetions have come in my use to acheive the solution i want and even the solution u ve provide is a good one, to add the entry in the .ini file, so no matter somebody tries, it will not possible for user to see the GUI of the VI, thanks very much, and for if required i will recall you for the further assistance, for else thank you&nbsp;very much.
&nbsp;
Thanks,
Nishant
Nishant
2006-12-20 09:10:17 UTC
Permalink
Dear Rudi,
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I should say mary christmas to you n njoy holi days.
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We r not having holidays as we are in India, we dn have a vacation as like u!!! neways Marry christams and happy new year in advance.
&nbsp;
Thanks,
Nishant

Loading...