Tic Toc time programming function

10 次查看(过去 30 天)
Mo
Mo 2023-1-9
回答: Supraja 2023-3-7
Hi
I created a function in app designer to use Tic and Toc for my timer. I have two Push buttons (one for Tic and one for Toc).
I want to setup a time interval like this:
Run the programme (Run button)........time interval-1 (sec)........Tic......Toc.........time interval-2 (sec)...............Tic......Toc.......time interval-3..................Tic...Toc
1-I want to assign a number to repeat the Tic and Toc function in a loop (eg. n=20 times, ...)
2-I want to start the Tic by a timing programme (random time interval relative to previous Toc and after the 'Run button') instead of pushing a button (eg. timer= every 60, every 75 second,..... activating the Tic).
3-if two buttons call the fucntions (Tic and Toc) separately, how I can create a UITable in app designer to collect data from both Tic and Toc times. I tried Properties but it did not work.

回答(1 个)

Supraja
Supraja 2023-3-7
I understand that you want to call your function in app designer multiple times and add intervals to your code .
Have a look at these documentation links which will help you in calling the function multiple times:

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by