LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executing a VI in an other VI

Hello,
I have created a Host VI in which there is a queue generated with several functions and an event loop. For a desired event, I would like a specific VI in the RT layer to execute. Do you know of a function that can execute a VI (and not open it)?

0 Kudos
Message 1 of 3
(651 Views)

What I would do is have a main VI on your RT that can receive TCP/IP messages and then calls the required VI when the designated command is received.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(624 Views)

You realize, I hope, that you have two independent computers, the Host (presumably a PC running Windows) and the Target (presumably a cRIO running NI Real-Time Linux), communicating by some form of signal (usually based on TCP/IP).

 

For the Host to "request" that the Target execute a particular series of commands, it needs to "send a message" (usually via some form of TCP/IP) to the Target.  The Target needs to be "listening for messages" and be able to respond appropriately.  Do you know how to do these things?

 

Bob Schor

0 Kudos
Message 3 of 3
(610 Views)