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


Azzi Abdelmalek
on 9 Oct 2012

Which timer are you using, (which toolbox ?)

on 12 Oct 2012

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

on 14 Oct 2012

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!!!


Discover MakerZone

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

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!