handling with time in the matlab function

Hello everybody,
i have realised an electrical circuit in SimPowersystems. I also included a matlab function.
my function [current] = (y1,y2,y3,y4)
the outputs are signals for closing the switches. i want that after 1 minute (the current has to be 0 in this minute) the switches are closed. I dont know how i can realise this and i would be very happy if somebody could help me
Thanks a lot

回答 (1 件)

Chad Greene
Chad Greene 2014 年 8 月 15 日

0 投票

Will pause(60) do what you need?

1 件のコメント

Firat
Firat 2014 年 8 月 16 日
Hey Chad, thanks for your answer. The thing is i want to check the current. if the current is zero for a duration of 1 minute the switches shall be closed.
could i maybe use the integrator block? but the problem is i cant define the integral borders. I have really no clue. Maybe use somehow the clock block as input of my matlab function, but i also dont know how to work with the clock. Hope you or somebody else can help me.
Thanks alot

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

タグ

質問済み:

2014 年 8 月 15 日

コメント済み:

2014 年 8 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by