|
Using a compare to zero block will help you test when u1-u2=0, and you
can use the clock block to access the time.
-James
Prashant Sandhi wrote:
> I have two variables U1 and U2. At some point these two variable
> difference becomes zero. I run my simulation 'under' 'inf' condition in
> simulink. I want to know how I can extract the time when the difference
> was zero while the simulation still continues. As I need this time to be
> substituted in my calculation.
>
> lets say for example at time 20 sec's the U1-U2=0 but my simulation
> still continues and passes 20,21,22,23,,,,,......and so on but I need
> that 20 sec's and let the simulation continue. I have to keep in mind
> that U1 and U2 are variables so at any time the difference between them
> will get 'zero'.
>
> Any suggestion will be apprciciated.
>
> Thanking you,
>
> Sandhi
|