Timer mS

<< Click to Display Table of Contents >>

Navigation:  Waijung Blockset > Block References > Misc > Timer >

Timer mS

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

waijung_misc_timer_ms

What can be configured?

waijung_misc_timer_ms_mask

Configuration item

Selectable option/ Value

Description

Timer mode

Blocking | Non-blocking

Blocking: block the CPU process until timer is time out.

Non-blocking: The timer time out indicating by Timeout status port.

Sample time (sec)

(Sample time)

Specify block sample time

Input port

1. Reset, a non-zero value to this port will reset the internal timer counter.

2. mS, timer value in milliseconds. This Timer mS value will set to internal timer counter at Timer reset.

Output port

1. Timeout, a non-zero value indicates the timer is timed-out.

Timer behavior

Blocking mode

1. Timer value (mS) less than block Sample time.

waijung_misc_timer_ms_waveform1

2. Timer value (mS) longer than block Sample time (Not recommended).

waijung_misc_timer_ms_waveform2

Non-blocking mode

waijung_misc_timer_ms_waveform3