PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we run LabVIEW as a background process

Nishant:

Correct me if I am wrong, but all you are trying to do is run the executable somewhere in the background process, without ever exposing the Front Panel, and without seeing it in the system tray?
Please clarify this so that I can help you futher.

Thanks,

Rudi N.
0 Kudos
Message 11 of 21
(4,349 Views)

Dear Rudi,

                         Ya, that is what i want to do it, and i also want to know that if, is there any functionality in the LabVIEW itself by which i can do this?

                          Though i have found some way to do so, but for that i have to take the support of other software, so pls find if this functionality is available in the LabVIEW itself or not?

Thanks,

Nishant

0 Kudos
Message 12 of 21
(4,340 Views)
Nishant:

In order to hide the VI Front Panel Window, do the following :


    1. 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.
    2. 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.
    3. Select the Open FP method and set the state of the Front Panel to Hidden.
    4. Close the reference to the VI using the Close Reference function, located in the Functions » All Functions » Application Control subpalette.

  • Hiding the Windows Taskbar Entry:
    1. 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).
    2. Verify that the top line of the ini file is [Application] where "Application.exe" is the name of your executable file.
    3. Add HideRootWindow = True to the .ini file. This will hide the Windows Taskbar Entry for the executable.
    4. 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.

Message 13 of 21
(4,319 Views)

Hiii Rudi,

           Thats a good method actually to hide the entry of the VI into the task bar, but as you told that we have to add the entry inside the .ini file and even it will only create once we will run it, but this is not possible at the customer site because sometimes we supply only the cd and in that case we have to ask customer to do this, which is not possible at all.

                 But still this is the simplest of the methods we can follow by if we are doing it for ourself.

Thanks,

Nishant

0 Kudos
Message 14 of 21
(4,313 Views)
Nishant:

When you run an executable, the Run-Time Engine looks to see if an .ini file already exists, if it does not it creates one; otherwise it uses the existing one. As a result, you can ship the executable with an .ini file with the modified entry mentionned in my last post. The customer would never have to change this entry himself.

I hope this helps.

Regards,

Rudi N.

0 Kudos
Message 15 of 21
(4,301 Views)
Thats right,
                 I think that could be the method by which, we can go with the customer and its not a lengthy process either. Thanks for the fantastic solution.Smiley Happy
 
            Another solution about hiding the window i have found apart the solution you have given is, there is a zip file called LVWUtil32.zip on the NI's site, now in that zip file in the WINUTIL.LLB file, there is a vi called hide window.vi, you can use that vi in your vi, and you just have to attest the name fo your current vi to that vi and it will automatic hide your window when you run the program.
 
          Here I am attaching the jpeg file for that.
 
Thanks,
Nishant

Message Edited by Nishant on 12-15-2006 10:17 PM

Download All
0 Kudos
Message 16 of 21
(4,298 Views)
Nishant:

That sounds like a great solution as well. I hope that all these suggestions will allow you to achieve what you are trying to do. Please me know if I can be of further assistance.

Regards,

Rudi N.
0 Kudos
Message 17 of 21
(4,276 Views)
Yes ofcourse,
 
                 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 very much.
 
Thanks,
Nishant
0 Kudos
Message 18 of 21
(4,270 Views)
Nishant:

It is my pleasure. Enjoy the holidays !

Regards,

Rudi N.
0 Kudos
Message 19 of 21
(4,264 Views)
Dear Rudi,
 
             I should say mary christmas to you n njoy holi days.
 
             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.
 
Thanks,
Nishant
0 Kudos
Message 20 of 21
(4,257 Views)