Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Parameters in Real-Time Workshop

Subject: Parameters in Real-Time Workshop

From: Volker Mueller

Date: 8 Jul, 2004 02:54:44

Message: 1 of 2

Hi!

I want to use a Simulink Model for Hardware-in-the-loop simulations
with the Ascet system using the real-time Workshop.
The model is compiled very well. I have also access to the parameters
of the Simulink model (e.g. gains, limits etc.). But I have also used
some fcn-Blocks F(u). Inside these, I also used some parameters.
After compiling the model, I have no longer access to these
parameters.
 
Does anybody know a solution?

Many thanks

Volker

Subject: Parameters in Real-Time Workshop

From: riccardo

Date: 8 Jul, 2004 03:39:19

Message: 2 of 2

Volker Mueller wrote:
>
>
> Hi!
>
> I want to use a Simulink Model for Hardware-in-the-loop simulations
> with the Ascet system using the real-time Workshop.
> The model is compiled very well. I have also access to the
> parameters
> of the Simulink model (e.g. gains, limits etc.). But I have also
> used
> some fcn-Blocks F(u). Inside these, I also used some parameters.
> After compiling the model, I have no longer access to these
> parameters.
>
> Does anybody know a solution?
>
> Many thanks
>
> Volker

Hi Volker,
if you put a workspace parameter inside the Fcn block, it will be
inlined, even if it's an instance of a Custom Data Object.
To have it tunable, you must transform the parameter into a constant
block, and feed it as an additional input to the Fcn block.
HTH
riccardo
(no hyphens in my address)

Tags for this Thread

No tags are associated with this thread.

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.

Contact us