09-02-2014 11:29 AM
09-03-2014 03:45 PM
Hello Seifer,
Make sure that you are enabling the RT FIFO option in the shared variables properties when transfering data between deterministic structures (i.e timed loops) or between deterministic structures and non deterministic structures (i.e between a tiemd loop doing Real Time tasks and a normal while loop doing some non deterministic job like logging).
"Use Shared Variables Effectively (Real-Time Module)"
http://zone.ni.com/reference/en-XX/help/370622K-01/lvrtbestpractices/rt_bp_svars/
A second option you could use for inter-process communications is the RT FIFO function instead of shared variables (would do the same).
"RT FIFO Functions"
http://zone.ni.com/reference/en-XX/help/370622L-01/lvrtvihelp/rtfifovipal/
Basically, what both options tells us is that we should make sure to be using a deterministic FIFO (instead of a non deterministic FIFO like queues) when transfering data between deterministic structures or between deterministic structures and non deterministic structures, in the same VI (this is called inter process communication) to mantain determinism.
Regards,
Daniel C.