04-20-2010 02:25 AM
Hi,
when i create a project with compactRIO using continuous communication architecture and include host front panel.
the target vi has to be run initially and the host vi to get data. now that these both have to be opened and clicked run one after the other, can this process be atoumated such that i only need to run the host VI and it calls up the target VI runs it and deploys to the compactRIO.
i tried using open vi ref and invoke node to run the target vi but it does not seem to deploy automatically.
is running by invoke method and deploying different, if so how and is ithere a a way that i can elimate this hassle of opening and clicking run on both vis.
Thanks
04-20-2010 09:11 AM - edited 04-20-2010 09:12 AM
Hi freemason,
The easiest way to accomplish this behavior is to have a start up executable on your cRIO that has a state machine architecture.
When the cRIO boots up, you have the application wait for a command from the Host VI before it begins executing.
Then, when you are finished, you have the Host VI tell the RT VI to go back into the wait state.
That way you always have a VI running on the cRIO, which is simply waiting for the Host VI to send a command.
Kurt