LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using a vi to operate another vi

Solved!
Go to solution

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

0 Kudos
Message 1 of 10
(4,530 Views)
u mean writing one more VI that can control all the other VIs?
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
Message 2 of 10
(4,520 Views)

Yes, exactly.

Write one more  vi that can control the existing vi's without changing the existing vi's.

0 Kudos
Message 3 of 10
(4,517 Views)
Solution
Accepted by topic author Hummer1

Something like this (LV85)?

 

 

 

Jean-Marc

Download All
0 Kudos
Message 4 of 10
(4,508 Views)

Precisely.

 

Thanks.

0 Kudos
Message 5 of 10
(4,496 Views)

Don't forget, in the "build specifications" of the application (EXE), to "always included" all the the subvis you open by reference.

 

 

Jean-Marc

Untitled-2.jpg

Message 6 of 10
(4,486 Views)

Will do....thanks.

 

Humming along now.

0 Kudos
Message 7 of 10
(4,458 Views)

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.

0 Kudos
Message 8 of 10
(4,427 Views)

I think dynamic events might be what you are looking for.

http://zone.ni.com/devzone/cda/epd/p/id/4131

 

Hope this helps

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 9 of 10
(4,417 Views)

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.

example

Best regards,

Daniel

0 Kudos
Message 10 of 10
(4,073 Views)