LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting executables into labview

Hey guys,
 
Unfortunently success only brings more questions in your cases, and you have been so damn helpful that I know where to head 🙂
 
What I want to do is insert a executable that was written in visual basic into a labview program-is that possible?
 
I'll attach the executable--All I would need to send to the .exe would be a single number, which I am hoping I can automate that input using labview. Any suggestions on how to do it? I dont really know how to even get the .exe to show up on my block diagram, and my help searches didnt yield anything, but I have to assume that labview has some sort of mechanism for this.
 
Or would it be better to just try to insert the visual basic program in?
 
Thanks again!
 
NM
 
P.S. It wouldnt let me attach the file normally so I changed the extension to a .txt....
0 Kudos
Message 1 of 9
(4,185 Views)
To run an external file, you use the System Exec function that's on the Communication pallete. As far as passing a parameter, see if you can start the exe from the DOS command line and add the parameter you want after (i.e. Movewheels.exe 1). Some programs allow to pass parameters in this fashion and others don't. It all depends on how it was written. Contact the vendor of the program or check the documentation.
0 Kudos
Message 2 of 9
(4,180 Views)
We have similar topic discussed sometime ago... Take a look here Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 9
(4,174 Views)
The text box and the button are child windows of the main window.
 
With G Toolbox, you can find the handle to the text box, and using simulation VIs sends a string to text box, and simulate a click on the button.
 
George Zou
George Zou
0 Kudos
Message 4 of 9
(4,162 Views)

hmm--the G toolbox looks like an excellent set of tools, but for some reason I cannot pass to the "findwindow.vi" the proper window name... what is the proper format for that?

I was trying a series of different windows, but lets say the recycle bin- shouldnt I just be able to type, "recycle bin" in the window name slot?

I am using labview 7.1 BTW, but the soft I downloaded was that version...

Thanks,

 

NM

0 Kudos
Message 5 of 9
(4,145 Views)

I believe you have to give it the exact name appearing in the title, including capitalization (Bin and not bin).

Note that if you do this for LV windows, a LV window's title changes when the VI starts to run.


___________________
Try to take over the world!
0 Kudos
Message 6 of 9
(4,127 Views)
The main window of your application, Movewheels.exe, has no name.  What name did you pass to Find Window.vi ?
Find Window works only for top level windows, not for child window.  Use Get Related Window to get handle of
child window.
 
I'm working on a VI which will lunch the specified external application, and return the handle of the main window.
I'll put it on my website tomorrow.
 
George Zou
 
 
George Zou
0 Kudos
Message 7 of 9
(4,110 Views)

>Note that if you do this for LV windows, a LV window's title changes when the VI starts to run.

 

You can use property nodes to get the front panel title at runtime.

 

George Zou

http://gtoolbox.yeah.net

George Zou
0 Kudos
Message 8 of 9
(4,110 Views)

@zou wrote:

You can use property nodes to get the front panel title at runtime.


Although that doesn't help if the VI isn't running (You get the Front Panel and * additions which don't appear in the Title property).

___________________
Try to take over the world!
0 Kudos
Message 9 of 9
(4,105 Views)