Borrar filtros
Borrar filtros

Tic Toc time programming function

10 visualizaciones (últimos 30 días)
Mo
Mo el 9 de En. de 2023
Respondida: Supraja el 7 de Mzo. de 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.

Respuestas (1)

Supraja
Supraja el 7 de Mzo. de 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:

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by