From: Ralph Schleicher on
"Karan " <karan7789(a)gmail.com> writes:

Full name?

> I would like to be more clear, I know how to use get_param function,
> but I would like to get parameter from the Display Block ! ! ! Thank
> you ! :)

Write an M-File S-function and forward the Simulink signal to your GUI.
See http://ralph-schleicher.de/pub/matlab/slui/slui-2008-08-30.zip for
a full example.

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

Development * Consulting * Training
Mathematical Modeling and Simulation
Software Tools
From: Karan on
Ralph Schleicher <rs+usenet(a)ralph-schleicher.de> wrote in message <87bpbortph.fsf(a)bravo.mueller-schleicher.i>...
> "Karan " <karan7789(a)gmail.com> writes:
>
> Full name?
>
> > I would like to be more clear, I know how to use get_param function,
> > but I would like to get parameter from the Display Block ! ! ! Thank
> > you ! :)
>
> Write an M-File S-function and forward the Simulink signal to your GUI.
> See http://ralph-schleicher.de/pub/matlab/slui/slui-2008-08-30.zip for
> a full example.
>
> --
> Ralph Schleicher <http://ralph-schleicher.de>
>
> Development * Consulting * Training
> Mathematical Modeling and Simulation
> Software Tools

Hey,

Thanks for the reply. I did not quite understand what you said. You mean, create an M-File with S-function that can read Data (parameter) from simulink Display Block (which only displays numbers). And use that in my GUI to show the parameters, in my case battery voltages.

I have never done written S-Functions but I do know basics of C, it would be nice if you can provide me with tutorial that focuses on writing S-functions to real data from simulink model.

YOU ROCK :)