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

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

3 Comments

Azzi Abdelmalek on 9 Oct 2012

Which timer are you using, (which toolbox ?)

qiumei on 12 Oct 2012

I am using a SimPower Systems "Timer"

Muruganandham Subramanian on 17 Oct 2012

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

qiumei

Tags

Products

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

qiumei on 14 Oct 2012

Problem solved. Thanks :)

Azzi Abdelmalek
Answer by Sachin 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!!!

0 Comments

Sachin

Contact us