취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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 포인트
1/9 메시지
4,386 조회수
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 포인트
2/9 메시지
4,381 조회수
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 포인트
3/9 메시지
4,375 조회수
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 포인트
4/9 메시지
4,363 조회수

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 포인트
5/9 메시지
4,346 조회수

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 포인트
6/9 메시지
4,328 조회수
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 포인트
7/9 메시지
4,311 조회수

>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 포인트
8/9 메시지
4,311 조회수

@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 포인트
9/9 메시지
4,306 조회수