×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Timing relay in Simulink

Timing relay in Simulink

Timing relay in Simulink

(OP)
I am trying to model a plant control system i.e governor, AVR and PSS. The PSS should be disabled under some conditions like P<10 % for 10 sec.

I appreciate it if anybody help me develop such timing block in simulink?

RE: Timing relay in Simulink

You can accomplish that in many different ways.
Try an embedded function block and then write your code (if PSS<(something), PSS=0; end) something like that.

cheers

peace
Fe

RE: Timing relay in Simulink

(OP)
But how to take care of the timing issue?

RE: Timing relay in Simulink

Input to the embedded block a clock signal that outputs the simulation time in seconds.
So then you can say for example when 30<t<40 seconds PSS=0 like above.  

peace
Fe

RE: Timing relay in Simulink

(OP)
Thanks Fex32

However the initial time for the relay timing is conditioned with P becoming less than some setting. The P signal is time varying and I need to know the instant of time where  P goes below the setting. How do I find this time?

RE: Timing relay in Simulink

If I understand you correctly.
You input P, this setting you talk about (say "k") and the time ("t") into this embedded block where you write you code. Then you can define another variable say "T". Then you have something like
if P<k
T=t;
PSS=0;
end

peace
Fe

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources