LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating .exe files that don't display a front panel when executed.

I created a .exe which is commandline based and therefore does not require a front panel display when executed. If anyone has any idea's about how I can remove the front panel of the top-level VI I would appreciate it.
0 Kudos
Message 1 of 5
(3,536 Views)
Hi Cadry,

I am not sure that you can remove front panel from your vi. At Least So far I have not succeeded.

An easy work around for your situation is as follows.

1. Use the Window size Properties to Size your front Panel to 1 x 1. At the Same time remove Menu Bar, Tool Bar and Scroll Bars from the Front Panel. Make sure the Front Panel is not Dialog or Modal. This will make the Front Panel like a Small line/Dot.

2. Secondly, You can use the Window Bounds Property to Locate your Window off Screen. You may Only Do this. If you dont Want to See a Dot.

I hope you get the Idea.

Good Luck!!

Mache
Good Luck!

Mache
0 Kudos
Message 2 of 5
(3,536 Views)
You can make this trick:

make panel bounds out of screen: (-100,-100,-50,-50)
Look example with exe.
This vi waits 1000 ms and open dialog box (just for knowing that vi is running ) and stops after this.
0 Kudos
Message 3 of 5
(3,536 Views)
The best suggestion I can offer is a DLL. However; I don't know how to call a DLL from the command line.

Other than that, and all kinds of different fancy tricks to try to make the front panel invisible, I can't offer anything, except for the following:

1) LabVIEW is not capable of creating command-line executables.

2) If you can run this as a normal executable, but just want to get rid of the front panel, then you can use VI server within your main VI to set the VI so that the front panel isn't displayed. I predict that the front panel will be displayed momentarily anyway, but this depends on your system as to whether or not you will be satisfied with the results.

3) Create a simple C/C++ program (even I could do this, and I don't know C that
well) that calls your executable as a DLL (you will obviously have to rebuild your VI, as DLLs are structured differently - a main VI is not required, but rather, one VI per function.) This can be built, and then run from the command line.

4) Please write to NI and suggest that this be an option for future versions of LabVIEW. I have seen too many uses for this kind of feature, and think it would be great to see LabVIEW be as versatile and powerful as C/C++.

Good luck
0 Kudos
Message 4 of 5
(3,536 Views)
You can minimize it to system tray. You can bring the front panel
back if you want to.
or you can simply hide the front panel.



CADRY wrote:
> I created a .exe which is commandline based and therefore does not
> require a front panel display when executed. If anyone has any idea's
> about how I can remove the front panel of the top-level VI I would
> appreciate it.
0 Kudos
Message 5 of 5
(3,536 Views)