LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communication between parrallel loops

Hey,
 
I have 2 loops that run parrallel from each other. How Can I communicate between them? I don't want to use local variabeles because then I must create a Indicator.
 
Pieter
0 Kudos
Message 1 of 23
(6,505 Views)
Queues, notifiers, LV2 style globals. Search producer/consumer design patterns, queues, notifiers in the examples.
0 Kudos
Message 2 of 23
(6,486 Views)

Hi

There are lots of different possibilities - each with its advantages and disadvantages.

So for instance you can use queues, global variables, LV2-style globals, shared variables, notifiers, ...

This really depends on what you have to do.

You can search either the forums for the mentioned ways or also have a look at the LV help, and you will find lots of information.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 23
(6,485 Views)

Depending on what type of communication you want there are different ways.

Using queues or LV2 Style Globals (a subvi with shiftregister) just to name some.

Please provide more information on what you want. 

Searching the forum (with a search range longer than 7 days) should give lots of answers too.

 

   

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 23
(6,485 Views)
You can use queues to communicate between the loops. If you want to ensure that whatever data you send by one should be received bythe other then make the size of the queue '-1'. otherwise use a queue with one element.

BTW, why you don't want to create indicator?

Nudalakasim
0 Kudos
Message 5 of 23
(6,480 Views)

Thnx,

I think I have some information I can work with.

I go looking on the site what i can do whit these options

 

Pieter

0 Kudos
Message 6 of 23
(6,477 Views)

Smiley Very Happy ten minutes after posting 4 replies with nearly the same answer.

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 23
(6,473 Views)
BTW, why you don't want to create indicator?
 
Because I thinks it's the wrong way, and you must make the indicator hidden. If you have a bigger program with a lot of communication between loops you have a lot of indicators and it become a mess.
0 Kudos
Message 8 of 23
(6,474 Views)
One more off the wall option. Tag values in the DSC engine.
0 Kudos
Message 9 of 23
(6,473 Views)
Definitely the most practical solution: files Smiley Very HappySmiley Very Happy
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 10 of 23
(6,462 Views)