From: Ryan on
I have a question regarding Real-Time Workshop. I have a Simulink model that is executed with an m-file using the 'sim' command. The m-file also contains 400+ parameter values for the Simulink model. I want to be able to compile the model into C by using RTW, but am looking for an easy way to import those parameter values into the mode--i.e. without manually entering each value. How can this be done? Thanks
From: Ralph Schleicher on
"Ryan " <RMichael910(a)gmail.com> writes:

You should fix your real name.

> I have a question regarding Real-Time Workshop. I have a Simulink
> model that is executed with an m-file using the 'sim' command. The
> m-file also contains 400+ parameter values for the Simulink model. I
> want to be able to compile the model into C by using RTW, but am
> looking for an easy way to import those parameter values into the
> mode--i.e. without manually entering each value. How can this be done?

Read about the Rsim target and it's parameter tuning capabilities
in the RTW documentation.

--
Ralph Schleicher <http://ralph-schleicher.de>

Development * Consulting * Training
Mathematical Modeling and Simulation
Software Tools
From: Ryan-Michael on
Hi Ralph,
Thanks for the advice. I was able to import all variables from the lookup table using rsim instead of grt. Cheers