Get Rate transition Block Behavior from M-File

hello, i can't figure out a function to get the rate transition block behavior. i don't know if there is a built-in function for this purpose as i can't find it :( Thank you in advance for any help you can provide.

Respuestas (2)

Titus Edelhofer
Titus Edelhofer el 29 de Mzo. de 2012

0 votos

Hi Khoubeib,
I don't understand: the rate transition block is only needed for multirate systems that are supposed to run in a multi tasking environment e.g. to ensure data consistency. So what do you need? A MATLAB function? For what purpose?
Titus
khoubeib
khoubeib el 29 de Mzo. de 2012

0 votos

Hi Titus,
I have simulink model with multirate subsystems.I want to create a function (M-File) that will parse the model and give me as output the list of all rate transitions and the behavior of every one at simulation time (ZOH,1/z,Buf,Db_buf,Copy,NoOp).So my question is how can i figure out the protection used by rate transition block ?.In other words i want to get the 'Label' of the rate transtion block after model update.Thank you for your quick answer :)
Khoubeib

3 comentarios

Kaustubha Govind
Kaustubha Govind el 30 de Mzo. de 2012
AFAIK, there is currently no way to query the rate transition type programmatically. I would recommend confirming with Tech Support and submitting an enhancement request with your use-case.
Kaustubha Govind
Kaustubha Govind el 30 de Mzo. de 2012
Although you may be able to figure it out on your own - the rate transition type is a function of the block dialog settings, so you can use get_param to get the parameter setting and then determine the expected behavior.
khoubeib
khoubeib el 10 de Abr. de 2012
thank you Kaustubha, i will try that.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 29 de Mzo. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by