取消
显示结果 
搜索替代 
您的意思是: 

How do i open and control other programs using labview?

I'm presently trying to use labview to try to open and operate another program,but having much difficulty.The external program i'm using is called the Foundation program.

This Foundation program will use VHDL programming to create a virtual chip and then synthesising it.This program will then simulate the output of this VHDL program to verify that it is working as desired.Then the last stage is to download the whole VHDL program into a FPGA chip using a xilinx cable.

All this need to be done using a labview program - to open the Foundation program and then extract the saved file and then to execute the download command to cause the VHDL program to be downloaded onto the FPGA chip.How do i go
about doing all this?What is the first step i must do.Also all this have to be done thru networking..looks like its too difficult..I really need help.

grays
0 项奖励
1 条消息(共 6 条)
7,933 次查看
I haven't done VHDL so pardon my ignorance.

LabVIEW can call external DLL via "Call Library Function" or C programs via "Code Interface Node", both located in "Advanced" function.

If your program is a DOS program, use "System Exec.vi" found in "Communication" function. If you need to format your DOS command prior to sending it, use the "Format Into String" function in "String" function palette.

Lastly, if you're trying to extract data, assuming it is text, use "File I/O" functions. If the data is binary, use "File I/O -> Binary File VIs".

Hope that answers most of your questions.

Shan Pin Koh
0 项奖励
2 条消息(共 6 条)
7,932 次查看
To determine the best way to interface to another program, you'll have to talk to the company that makes the other program and see if they provided a mechanism for program to program communication. If they made the program's methods and properties available via ActiveX, then that is the way to go. Another possibility is DDE. I just did a LabVIEW to PROM burner program. The software for the PROM burner had a "batch method that I called thru System Exec. Through LabVIEW, other means are Windows Messaging and Keyboard functions. Good Luck.
3 条消息(共 6 条)
7,932 次查看
Also I am so interested in how to control other programs using labview, especially through sending windows message, keyboard operation, so some expert can guilde me how to do it?
0 项奖励
4 条消息(共 6 条)
6,974 次查看
Hi leogpeng,

You might want to try creating a new thread for your question, because this thread is over 6 years old and will probably be looked over.

Also, we need more specific information. What is an example of a program you'd like to control? Different programs may require entirely different techniques to control them.
Nick R
NI
0 项奖励
5 条消息(共 6 条)
6,943 次查看
0 项奖励
6 条消息(共 6 条)
6,923 次查看