Showing results for 
Search instead for 
Did you mean: 

Share variable between two deterministic loops

In my real-time application, I have 2 deterministic loop running at different speed on the real-time target. One loop will be writing a variable and the other loop will be reading that variable. I only care about the current value of that variable. I understand from Use Shared Variables Effectively (Real-Time Module) that I should use Shared-Variable with RT-FIFO between deterministic loop and non-deterministic loop. Now that I have 2 deterministic loop, can I also use Shared-Variable with RT-FIFO or should I use something else?

0 Kudos
Message 1 of 2

As long as you are writing to the shared variable in one place, I don't see why you couldn't just continue using it.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2