From: Joel Schmidt on
Hello,
I currently have a model in simulink running in real time, it has 2 data blocks that give out variables at 2 different sample rates 1 is at 100Hz or 0.01s and the other is at 5Hz or 0.2 sec.
When i come to fuse the data together in a filter I find that the 5Hz Data inherits the same sample time as the 100Hz data.
Lets say we were looking at a sample time of 0.2 seconds the problem is, the 5hz Data starts at its proper value for the first 0.01 second then drops back to 0 until 0.2 seconds. Then it jumps back to its new proper value again for 0.01 seconds and then back to 0.
The 5Hz Data should stay at the same proper value for the full 0.2 seconds for the full 0.2 seconds then change to its new value rather than dropping back to 0.

I have tried using the 'Rate Transition Block' but it hasn't solved the problem so far.
And 'yes' the solver is running in discrete time!

Any help much appreciated.
Thankyou very much
Joel