LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Start of program LabView as console program

LabView 6.0, Windows XP. My program should be started from other program (to my program parameters are transferred in command line, as a result of complex mathematical processing my program creates a file, finishes the work, the file is processed by the caused program). On transfer command lines I have found examples on site NI, but I do not know how to make so that the program was started without the panel. In options at creation of an EXE-file costs Yes on display of the panel and how to change on No? On SubVI Node Setup I have found an option of an interdiction of display of the panel and how to forbid display of the panel in main VI?
0 Kudos
Message 1 of 9
(3,623 Views)

Hello,

 

Thank you for posting to the NI Discussion Forums!  With regards to your question, I am a little unclear about what exactly you are asking-

 

You mention “My program should be started from other program”.  From this statement I believe that you are trying to build your LabVIEW 6.0 program into an executable and call that from the command line from another environment.

 

Also you say that “On transfer command lines I have found examples on site NI, but I do not know how to make so that the program was started without the panel.”.  From this I gather that you would like to have the LabVIEW program accept parameters from the command line and run without the front panel visible.

 

I am really confused about: “In options at creation of an EXE-file costs Yes on display of the panel and how to change on No? On SubVI Node Setup I have found an option of an interdiction of display of the panel and how to forbid display of the panel in main VI?”, but I think I can help.

 

It sounds like you have determined how to pass the parameters to your LabVIEW exe, and that you are familiar with the application builder, but just need to find a way to prevent the front panel of your LabVIEW program from being displayed.  To do this, open the VI properties of your top-level VI and navigate to “window appearance”.  Select “custom” for the appearance and make sure that the box titled “Show Front Panel When Called” is not checked.  When you configure your VI to build an exe, you should notice that in the “VI Settings” tab of your application builder shows “no” to “show panel”.

 

Hopefully this answers your question.  Let us know how it goes, and have a great day!

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 9
(3,602 Views)
I have made, as you have told, however nothing has turned out. Where I can send my project?
0 Kudos
Message 3 of 9
(3,593 Views)
You cannot remove the front panel of the main VI when you build an executable. You can, however, make a DLL instead of an exe and then you will not need the front panel and it's simpler to send parameters to a DLL and much simpler to get data back.
0 Kudos
Message 4 of 9
(3,587 Views)
The causing program (it is written not by me and cannot be changed) works with EXE. What to me to do?
0 Kudos
Message 5 of 9
(3,581 Views)
The causing program (it is written not by me and cannot be changed) works with EXE. What to me to do?
0 Kudos
Message 6 of 9
(3,583 Views)

With a VI property, you can set the front panel:window bounds to be off the screen. You could also upgrad your version of LabVIEW. Newer versions have the ability to set the front panel window state to hidden.

Message Edited by Dennis Knutson on 03-28-200611:14 AM

0 Kudos
Message 7 of 9
(3,580 Views)
Thanks big for idea.
I have decided to cause DLL on LabView from the console appendix created on VC ++. Have tried to repeat an example of call DLL LabView from the console appendix created on VC ++, described in "Calling a DLL from Microsoft Visual C ++ that Was Generated by LabVIEW 6i" and "Building DLLs in LabVIEW 6.x or later". Anything at me it has not turned out.
1. Could not find neither in directory LabView, nor in directory VC ++ a file ansi_c.h, used in this example. 2. After removal of this file in VC ++ there is " a mistake error C2115: ' function ': incompatible types " and the prevention " warning C4024: ' F_to_C ': different types for formal and actual parameter 1 ". Help to understand, please, with this example.
0 Kudos
Message 8 of 9
(3,557 Views)
I don't have C++ installed right now so I can't say where it should be. It should be available with C++ but you may have to select to install the standard ANSI C library.
0 Kudos
Message 9 of 9
(3,548 Views)