Thread Subject: Variable - Simulink

Subject: Variable - Simulink

From: Ashwini Deshpande

Date: 22 Oct, 2009 07:48:03

Message: 1 of 4

Hi,

In Simulink, if i want to make the parameters of source block (various) for ex: value of constant clock, Amplitude and Frequency of Sine Wave etc., as variable, so that they can be derived from main clock block.

How do i do it???

Thanks
Ashwini

Subject: Variable - Simulink

From: Arnaud Miege

Date: 22 Oct, 2009 07:59:06

Message: 2 of 4


"Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in message
news:hbp2nj$bmr$1@fred.mathworks.com...
> Hi,
>
> In Simulink, if i want to make the parameters of source block (various)
> for ex: value of constant clock, Amplitude and Frequency of Sine Wave
> etc., as variable, so that they can be derived from main clock block.
>
> How do i do it???
>
> Thanks
> Ashwini
>

You can't. You have to create your own block to do this, using things like a
look-up table, Embedded MATLAB, S-functions, etc... or evn just regular
Simulink blocks that construct the signal that you want. A parameter is
constant, a signal is variable.

Arnaud

Subject: Variable - Simulink

From: Ashwini Deshpande

Date: 22 Oct, 2009 09:42:04

Message: 3 of 4

 
> You can't. You have to create your own block to do this, using things like a
> look-up table, Embedded MATLAB, S-functions, etc... or evn just regular
> Simulink blocks that construct the signal that you want. A parameter is
> constant, a signal is variable.
>
> Arnaud
>
Thanks for your reply,

My requirement is that i have to generate a data packet of 20 bits (zero's and one's), and at every 5 second the last 5 bits has to be changed with respect to a look-up table.

I am trying with 'Repeating Sequence Stair' block, it works well with fixed 20 bits, but if i want to make the last five bits dynamic, what do i do??

Thanks
Ashwini
  

Subject: Variable - Simulink

From: Arnaud Miege

Date: 22 Oct, 2009 13:25:51

Message: 4 of 4


"Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in message
news:hbp9db$q4f$1@fred.mathworks.com...

>
> My requirement is that i have to generate a data packet of 20 bits (zero's
> and one's), and at every 5 second the last 5 bits has to be changed with
> respect to a look-up table.
>
> I am trying with 'Repeating Sequence Stair' block, it works well with
> fixed 20 bits, but if i want to make the last five bits dynamic, what do i
> do??
>
> Thanks
> Ashwini
>
Not sure, sorry. There are a bunch of blocks under "Logic and Bit
Operations" which might be able to help you. Otherwise, it sound slike you
will have to write your own block using Embedded MATLAB or an S-function.

Arnaud

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
simulink Ashwini 22 Oct, 2009 03:49:30
variable Ashwini 22 Oct, 2009 03:49:30
rssFeed for this Thread

Contact us at files@mathworks.com