LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 6
(7,654 Views)
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 Kudos
Message 2 of 6
(7,653 Views)
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.
Message 3 of 6
(7,653 Views)
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 Kudos
Message 4 of 6
(6,695 Views)
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 Kudos
Message 5 of 6
(6,664 Views)
0 Kudos
Message 6 of 6
(6,644 Views)