Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66787

Deploy and run RT part of RealTime Project

$
0
0

I'm developing a LabVIEW-RT Project, with a User Interface on the PC and time-critical code running on a PXI.  I've read a number of posts discussing the possibility (or lack thereof) of starting the RT part of the Project programmatically.  Here's what I mean:  my project has a Top-Level VI on the host PC, call it "Host UI.vi", and a Top-Level VI on the RT Target, call it "Target RT.vi".  There are the usual assortment of other RT features, such as Network Streams, Local and Network Shared Variables, etc.  

 

During Development, I open the Project, find the RT Target code, select Target RT.vi, and click Run.  I then do the same with Host UI.vi.  My code runs (or not, depending on whether I've introduced new bugs).

 

What I'd like to do is to run Host UI, and have it execute code to mimic selecting Target RT in my Project and right-clicking Run.  I've been partly successful, but one small step eludes me.

 

I can programmatically deploy my RT code, and have it pop up a Front Panel window so I can click its Start Button.  I've even managed to start it running programmatically using VI Server.  However, when I start it programmatically (instead of clicking Run), my Network Shared Variables are not available.

 

I investigated this a bit using the Distributed System Manager.  With it, I can "see" my Network Shared Variables on the RT Target, but its status is Offline.  I can bring it Online by clicking the "Start Process" button in DSM,  However, when I then try to programmatically start my Target RT vi using VI Server, the Ntwork Shared Variable goes Offline (accordint to DSM).

 

Question -- is there a way to programmatically do the equivalent of locating my Network Shared Variable in DSM and clicking Start Process?

 

[I had a Bright Idea while writing this post.  I noticed that if I deployed my VI and also deployed my Network Shared Variable, DSM showed it as Online, but when VI Server started the Target RT VI, the NSV went Offline.  What if I deployed it after starting the Remote?  Good idea, too bad it didn't work ...].

 

Any better ideas?

 

BS

 


Viewing all articles
Browse latest Browse all 66787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>