Hi zagatojr,
U may do it in the following way:
1)define stoptime (say ) in workspace befor the simulation start.
2)use these there blocks viz: clock, constant, less then equalto
operator(relational operators of Math), and the stop button of sinks as
shown
adjunct to the simulink model.
--------
clock--------| |
| |
| <= |------stop
constant-----| |
--------|
3)set the constant value as stoptime.This will stop the simulation when
the increasing value of clock satify the relational operator.
4) Now the frequency=2*pi/stoptime can be used in the simulation.
bye
santanu
IIT guwahati.
India
On Wed, 6 Feb 2002, zagatojr wrote:
> howdy-
>
> I'd like to use the "stop time" set in the simulation
parameters to
> dictate an input frequency for my simulink model (i.e. frequency =
> 2*pi/(stop time) ).
>
> Does anyone know how to do this?
>
> much obliged-
> zagatojr
>
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the
author of this message will receive your answer. You need to do a "reply
all" if you want
your answer to be distributed to the entire group. >
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/matlab
>
> More DSP-Related Groups: http://www.dsprelated.com/groups.php3
>
> ">http://docs.yahoo.com/info/terms/
Reply by DazzLe CosMoS●February 7, 20022002-02-07
give the name of the variable in the place where u give the numeric value
for
the simulink block.
The variable defined in workspace can be used in simulink blocks.
I hope u get the point..
-Regards
----- Original Message -----
From: zagatojr
To:
Sent: Wednesday, February 06, 2002 10:09 PM
Subject: [matlab] simulink simulation parameter use
howdy-
I'd like to use the "stop time" set in the simulation parameters
to
dictate an input frequency for my simulink model (i.e. frequency =
2*pi/(stop time) ).
Does anyone know how to do this?
much obliged-
zagatojr
_____________________________________
Note: If you do a simple "reply" with your email client, only the
author of
this message will receive your answer. You need to do a "reply all" if
you want
your answer to be distributed to the entire group.
_____________________________________
About this discussion group:
I'd like to use the "stop time" set in the simulation parameters
to
dictate an input frequency for my simulink model (i.e. frequency =
2*pi/(stop time) ).