From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-24-2014 04:08 AM
Hi,
Why can't we use single process shared variable without FIFO for communicating between deterministic loop? In other words, why it's always recommended to use FIFO for communications between deterministic loops?
Thanks,
Ajay.
Solved! Go to Solution.
07-24-2014 06:34 AM
Jitter. When using non-FIFO communications, you introduce jitter into the system, making your deterministic loop not so deterministic.
07-24-2014 08:53 AM
07-24-2014 09:10 AM
It's called resource sharing. When using a single process shared variable, only one thread can access it at a time. So what happens is A tries to read, but B is busy writing to it. So A has to wait, adding jitter.
With the RT FIFO enabled, you don't have this issue. A can read from the FIFO at the same time that B is adding another element.
07-24-2014 09:21 AM