LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Host VI with VI Server call to a cRIO RT VI won't deploy when it includes Shared Variable nodes

Solved!
Go to solution

I have a real-time project with a Host VI on my PC that communicates with an RT VI running on my cRIO-9032, which in turn calls and communicates with an FPGA application via a bitfile.

 

What I'm trying to do is make a build specification that allows someone to run this system with just the RunTime Engine.  My plan for this so far has been to create a source distribution for the RT part of the project, and then use the VI Server to call that source distribution from an executable version of the Host VI (waiting to build executable once everything else is ironed out).  I'm looking at this knowledge article for how create/call the RT source distribution.  My source distribution includes multiple libraries of shared variables.

 

When I call the top-level RT VI from my Host VI it runs fine.  However, when I add a network shared variable read to the main while loop the deployment fails.  The block diagram of the Host VI with the shared variable polling, and the resulting deployment error, are shown below:

riplakish_2-1625671265045.png

riplakish_3-1625671320804.png

 

 

 

 

 

 

 

0 Kudos
Message 1 of 3
(1,760 Views)

Some added info.  The Host VI shown above is just for testing the VI Server deployment.  I have a different Host VI that I've been using up to now that successfully reads multiple network shared variables from the RT VI.  In this case rather than using the VI Server + Source Distribution, the RT VI is manually run from the project, but is the same top-level VI included in the source distribution.

0 Kudos
Message 2 of 3
(1,728 Views)
Solution
Accepted by topic author riplakish

I discovered when I went back to run my project the old way (manually running RT VI from project, then running Host VI w/o VI server code) that the deployment issue was still there.  After digging into the deployment error a bit more I realized that the NI Variable Engine itself had gotten messed up and need to be manually restarted, see this knowledge article.  After doing that and restarting the cRIO and my PC both methods of calling the RT VI seem to work fine.

0 Kudos
Message 3 of 3
(1,717 Views)