06-16-2011 09:50 PM
Hi,
I have a rather large .exe that was designed in LabVIEW (2009). The .exe has a boolean start/stop to begin the simulation. I'd like to create a separate vi that can drive this start/stop switch without having to rebuild the .exe with new code. Basically, I want to start the simulation, wait some time, then stop the simulation, wait some time, repeat n iterations.
Any advice would be great.
Thanks.
06-17-2011 12:34 AM
Hi michaelbails,
While building any LabVIEW exe,an option should be set/checked in MyAPPLICATION PROPERTIES/advanced section to allow the exe to accept all the parameters in a command line.If that is the case we can call that exe using system exec.vi and pass the parameters from another vi.If it wont accept any command line,then you can call the exe but you cant pass any command line from another VI.
Thanks and regards,
srikrishnaNF
06-17-2011 09:43 AM
Hi,
Thanks for the reply. The LabView exe already exists (I didn't build it), but I want to drive an on/off switch. Maybe I'm a bit confused by your response. Could you elaborate a bit more.
Thanks in advanced.
Mike
06-17-2011 10:11 AM
You would need to use the VI Server to do this. You will have to add a couple of lines to the application's .ini file to set the VI server port. You want to make this different from LabVIEW. In your VI you can open an application reference and then open a VI reference. See attached example.