09-17-2009 09:00 AM
I have several vi's that work well independently. I would like to write an executive that will start them, cause some of their buttons to be pressed, and when the results are complete, close them and run another vi.
The function buttons in the vi's mostly use latch mode ... which cause events to occur in order for the vi to operate.
Is it necessary to modify the vi's by installing some other button to cause the same events?
Is there a simple example of this somewhere.
I am not interested in rewriting the vi's that are working
Thanks
Hummer 1
Solved! Go to Solution.
09-17-2009 09:12 AM
09-17-2009 09:13 AM
Yes, exactly.
Write one more vi that can control the existing vi's without changing the existing vi's.
09-17-2009 09:24 AM
09-17-2009 09:28 AM
Precisely.
Thanks.
09-17-2009 09:41 AM
Don't forget, in the "build specifications" of the application (EXE), to "always included" all the the subvis you open by reference.
Jean-Marc
09-17-2009 11:05 AM
Will do....thanks.
Humming along now.
09-18-2009 09:37 AM
I have two vi's. A Control.vi and Responder.vi. In responder I have an event that is triggered by the pressing of a button. In Control.vi, I try to use the invoke node function referencing the button to set and reset its value so that the event in the Responder will be triggered. The value of the button changes properly in Responder, but the event is not triggered. I don't seem to find a val(signal) type invoke node to use in the Control vi.
I've been here before some time ago and wound up writing new .vi's that used flags made of global variables, but the flags had to be scanned. Please tell me there is a better way.
09-18-2009 11:54 AM
I think dynamic events might be what you are looking for.
http://zone.ni.com/devzone/cda/epd/p/id/4131
Hope this helps
02-03-2011 10:36 AM
Maybe another thread is required for this topic but regarding to the event structure handled by another vi, a workaround is to get a reference to the control that trigger the event. Then, in the father vi, use a property node and pass the data in the Val(Sgnl) field of the class.
Best regards,
Daniel