Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass control values for a spawned process via vi server?

I'm creating a LabVIEW Real Time application.  I'd like to use VI Server to spawn off a process without waiting for it to finish.  My understanding is I can't set control values via vi server in my built application for real time.  How do I pass specific values to the process I'm spawning?  Please note I may be spawning the same vi several times immediately, so using some sort of global will have some handshake issues.

 

Thanks!

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

mikemattball,

 

You are correct that the VI Server methods will not work, because your VIs don't have front panels once they are built for real-time. You will need to use another form of interprocess communication such as queues or notifiers.

 

Is there a need for spawning of VIs in your application or are you just trying to follow the same design patterns you use on the desktop?

 

The CompactRIO Developers Guide (http://www.ni.com/compactriodevguide/) walks through typical architectures for real-time applications. 

 

Kurt 

0 Kudos
Message 2 of 3
(3,565 Views)

Kurt,

 

Thanks for the reply.  I need to spawn as part of the application startup.  I have processes that kick off at the beginning.  I understand the concern over spawning since it's not a real time architecture, but this portion of the code isn't critical.

 

I'll take a look at the linked page and see if I can find a solution.  It sounds like I'll need to manually handshake it.

 

Mike

0 Kudos
Message 3 of 3
(3,561 Views)