Tic Toc time programming function

14 visualizzazioni (ultimi 30 giorni)
Mo
Mo il 9 Gen 2023
Risposto: Supraja il 7 Mar 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.

Risposte (1)

Supraja
Supraja il 7 Mar 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:

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by