LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization

I have three while loops running in parallel. Loop 1 generates the random data once every 2 seconds. Loop 2 continuously checks if a Boolean button is pressed. Loop three is to execute every time the data in loop 1 changes or when Boolean button in Loop 2 is pressed. Loop 3 also has to display the random data from Loop 1.

I have enclosed a VI which does this task, but I feel that there may a be a better way of doing this. I do not want to use local / global variables / property nodes / data socket.

Another point�.Is there a limit to how many �Generate Occurrence� �Set Occurrence� and �Wait on Occurrence� we can use?
0 Kudos
Message 1 of 3
(2,818 Views)
Shapoor,
I have modified your example to use only one notifier. Both loops can notify the third with the same notifier provived you can discriminate the source of the message. In this case Loop1 always sends 16 bytes messages (2x8bytes doubles) so it will always be different from "OK". You can easily notify other messages like "cancel" or "exit" to the third loop again with the same notifier.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 3
(2,818 Views)
Thanks Jean, I really appreciate your assistance.
Best Regards,
Shapoor
0 Kudos
Message 3 of 3
(2,818 Views)