MATLAB Answers


Simulink: How to add an Input Port to Timer

Asked by qiumei
on 9 Oct 2012

Dear All,

How can add an Input Port to Timer, cos currently it only has Output Port.

How do I change the setting to allow an additional Input port to it?

Thanks and best regards, qiumei


Which timer are you using, (which toolbox ?)

I am using a SimPower Systems "Timer"

Hi, Why do u need to insert inputport to timer block?

2 Answers

Answer by Azzi Abdelmalek
on 12 Oct 2012
Edited by Azzi Abdelmalek
on 12 Oct 2012

  • right click on your timer block
  • click on disable link
  • click on look under mask
  • remove a clock block and replace it with input block from simulink/sources

  1 Comment

Problem solved. Thanks :)

Answer by PG
on 9 Oct 2012

You can remove clock block inside & can connect inport for providing 'time step' from outside.

Also you can put whole logic in enabled subsystem to have timer enable inport.

Hope it helps!!!


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!