LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run Executable in LV 8.2

I have an executable that was created in LV (8.5 or lower) that does X that was created and sent to me by the manufacturer of the device it controls (via USB).  When I open the executable, I have 1 line of user control by entering a string, but everything else is automated.

 

What I need is a way to open the executable, change the value of the user input (string), run the program and then exit the executable or leave it open in the background, all from a .vi.  Is doing this possible?  I have requested the raw .vi from the manufacturer in order to use it as a sub-vi, but they have been less than forthcoming with it and I'm trying to find a workaround.

 

Can a .vi open an executable file?

Can the .vi then change a value in that executable?

Can the .vi then "run" the executable?  (note- this executable was created in LV)

 

OS - Win XP, Vista, 7 (variety of machines needed in the setup, XP may be the only one necessary)

LV 8.5 (common to all machines)

Interface - USB

0 Kudos
Message 1 of 5
(2,772 Views)

Probably not. Unless they have the accept arguments turned on (not likely). You could try to prgramicly copy and paste functions. That might work for what you are try to do.

Tim
GHSP
0 Kudos
Message 2 of 5
(2,769 Views)

You could also check to see if the ActiveX server was enabled. Then you could use the Set Control Value method.

0 Kudos
Message 3 of 5
(2,759 Views)

 


@Dennis Knutson wrote:

You could also check to see if the ActiveX server was enabled. Then you could use the Set Control Value method.


It didn't respond to ActiveX controls, it appears to be a plain executable.

 

0 Kudos
Message 4 of 5
(2,754 Views)

Yes, it is possible.

Here's an old utility I created long ago that includes the capability of modifying controls on compiled VIs.

 

0 Kudos
Message 5 of 5
(2,730 Views)