12-17-2009 09:09 AM
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!
12-18-2009 01:22 PM
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
12-18-2009 01:47 PM
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