05-26-2021 08:06 AM
We have four systems (thermal test stand, climate chamber, ventilation unit and evaporative cooling plant). I have programmed them as a different projects because at the time I started I didn't know that there might be communication in between them. Climate chamber and evaporative cooling plant needs ventilation system but test stand can run without it. But I need to find a way to send data (for example temperature and volume flow) from climate chamber/evaporative cooling plant to test stand.
Is there a way to do it when they are all running in parrallel? I can do it by adding everything in a single VI but it becomes huge (doesn't fit in single screen).
Solved! Go to Solution.
05-26-2021 09:23 AM
Hi girish,
@girish_jadhav wrote:
Is there a way to do it when they are all running in parrallel?
Learn about using notifiers, queues, any kind of network communication, even global variables…
05-26-2021 09:31 AM
@GerdW wrote:
Hi girish,
@girish_jadhav wrote:
Is there a way to do it when they are all running in parrallel?
Learn about using notifiers, queues, any kind of network communication, even global variables…
Hi GerdW,
I know the basics of notifiers and queues but that can't used in the scenario I mentioned, no? These are all in different VIs and I wanted to know to if I can send data from one VI to another. when they are running in parallel (I don't know the right word to explain this).
05-26-2021 09:33 AM
I would use User Events. This way, each VI can send an event and those who register for the event will see it.
05-26-2021 09:44 AM
Hi girish,
@girish_jadhav wrote:
I know the basics of notifiers and queues but that can't used in the scenario I mentioned, no? These are all in different VIs and I wanted to know to if I can send data from one VI to another. when they are running in parallel (I don't know the right word to explain this).
Why can't you use notifiers/queues in parallel running VIs? I do that all day…
05-26-2021 09:45 AM - edited 05-26-2021 09:48 AM
Yea I agree with crossrulz, I use user events a LOT for messaging between processes.
I also use async launch with options "call and forget" like in this vi im attaching (i saved it for v8, not sure if it lost anything in it...
I explain my usage in this past post actually
feel free to critique if i missed anything or ask questions...
edit: I also have been advised to use the methods used in actor framework for async launching because of some apparent "gotchas" that may arise in certain circumstances... I have been using the exact "by-name" method for quite some time without issue, I hope im not jinxing myself here...
05-26-2021 09:57 AM
@crossrulz wrote:
I would use User Events. This way, each VI can send an event and those who register for the event will see it.
Hi crossrulz,
Can you please show me a short example of this?
I just tried it with Global Variables as GerdW mentioned and it works.
05-26-2021 10:04 AM - edited 05-26-2021 10:05 AM
@GerdW wrote:
Hi girish,
@girish_jadhav wrote:
I know the basics of notifiers and queues but that can't used in the scenario I mentioned, no? These are all in different VIs and I wanted to know to if I can send data from one VI to another. when they are running in parallel (I don't know the right word to explain this).Why can't you use notifiers/queues in parallel running VIs? I do that all day…
VI 1
VI 2
If both of these VIs are not in a single VI how can we use queues or notifiers? To use them both of these loops should be in single VI as far as I have understood it.
05-26-2021 10:05 AM
i had these lying around from some tests... just had to cut some stuff out...
05-26-2021 10:07 AM
@p27 wrote:
i had these lying around from some tests... just had to cut some stuff out...
Hi p27,
Thanks for the VIs. I will check it out and come back to you if I have questions.