Thread Subject: "c2d" Transform Sample Time Not Read from Base WorkSpace

Subject: "c2d" Transform Sample Time Not Read from Base WorkSpace

From: Simon

Date: 24 Sep, 2009 17:51:01

Message: 1 of 2

I have a multi-rate discrete Simulink model with a number of continous time transfer functions that were discretized with the Control design/Model Discretizer Tool. I cannot run my model because Matlab thinks the blocks are continuous. The model has run just fine previously on Matlab R2008b, now I'm using R2009b. I believe it is because the "c2d" transform cannot see the discretized sample times, which are defined in the base workspace. It does not help to add them to the model's workspace where the actual blocks are. I do not wish to hardcode the sample times or redefine the blocks as discrete from the outset.

Any ideas - Thanks!

 

Subject: "c2d" Transform Sample Time Not Read from Base WorkSpace

From: Guy Rouleau

Date: 24 Sep, 2009 22:35:06

Message: 2 of 2

"Simon " <simonb@kdsolutionsgroup.com> wrote in message <h9gbi5$j7a$1@fred.mathworks.com>...
> I have a multi-rate discrete Simulink model with a number of continous time transfer functions that were discretized with the Control design/Model Discretizer Tool. I cannot run my model because Matlab thinks the blocks are continuous. The model has run just fine previously on Matlab R2008b, now I'm using R2009b. I believe it is because the "c2d" transform cannot see the discretized sample times, which are defined in the base workspace. It does not help to add them to the model's workspace where the actual blocks are. I do not wish to hardcode the sample times or redefine the blocks as discrete from the outset.
>
> Any ideas - Thanks!
>
>

Simon,

I would like to help you, but I am not sure I understand what exactly happens. Usually new releases should be backward compatible unless a bug has been fixed. If results are different for the same model and data, I would like to see that and understand why.

About model and base workspace, Simulink always first in the model workspace and after in the base, so adding similar variables in the model and base should not change anything.

please give me more details ansd Il see f I can figure out what happens.

Guy

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com