From: Erik Jonasson on
Hi!

I am working on a Simulink-model which contains blocks which should run with different sample times, the model is later downloaded to rapid-pro unit (but that is another story).
In the simulation settings in I have entered the fastest sample rate, then I use rate tranisition blocks to specify a lower sample time of the inport signals to some of my subsystems. I use the "Sample time colors"-functionality, which can be found under "Format" in Simulink, to see the actual sample times in my model. Still big parts of my slower sample time blocks run with the faster rate since many of the constant block have "inf" entered in the sample time property field. I tried to change them to -1 to inherit the sample time, which I thought would be the slower one. For some reason it inherits the fast main sample time and first when I hard-code the slow sample time in the constant blocks I get the expected slower sample time. Many of my blocks are library blocks and I prefer not setting "hard-coded" values for the constant blocks since they are used in many other models as well.
Why is it not possible to enter -1 as sample time for the constant blocks without making it inherit main sample time (the faster rate)? Is there a setting to make it inherit the sample time for the current block level?

Thank you
Erik
From: Erik on
Anyone who knows the solution to this one?

Erik