Tic Toc time programming function

10 Ansichten (letzte 30 Tage)
Mo
Mo am 9 Jan. 2023
Beantwortet: Supraja am 7 Mär. 2023
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.

Antworten (1)

Supraja
Supraja am 7 Mär. 2023
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:

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by