08-30-2010 02:36 PM
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
08-30-2010 02:43 PM
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.
08-30-2010 02:48 PM
You could also check to see if the ActiveX server was enabled. Then you could use the Set Control Value method.
08-30-2010 02:51 PM
@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.
08-30-2010 04:12 PM
Yes, it is possible.
Here's an old utility I created long ago that includes the capability of modifying controls on compiled VIs.