stimer

A non-blocking timer implementation for MATLAB and Simulink
다운로드 수: 60
업데이트 날짜: 2022/3/3

View stimer on File Exchange

stimer-MATLAB

a nonblocking timer implementation for MATLAB and Simulink

from MATLAB

stimer Perform a timer operation (check or set). Sets a timer (a countdown set in seconds) and returns its status.

This function instantiates up to 256 timers and each of them should be selected by using its own index. To set a new countdown for the selected timer, just pass the value as the second argument.

check the expiration state of the timer 1.

stimer(1).expired; 

set a new countdown to 10 seconds for the timer 1.

stimer(1,10); 

set a new countdown to 2 minutes for the timer 3.

stimer(3,minutes(2));

set multiple timers simultaneously.

stimer( [1 2 3], [minutes(5) hours(2) 30] );

get the current status of timer 1

status = stimer(1); 

from Simulink

Simulink library

인용 양식

Juan Camilo Gómez Cadavid (2024). stimer (https://github.com/kmilo17pet/stimer-MATLAB/releases/tag/2.1.5), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
2.1.5

See release notes for this release on GitHub: https://github.com/kmilo17pet/stimer-MATLAB/releases/tag/2.1.5

2.0.2

improved simulink blocs

2.0.1

added simulink blocks

1.0.2

use (0) timerVal as starting point

1.0.1

.

1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.