pause a program while running and resume from the same spot
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I wrote a programme that consists of reading from a sensor who get heated after being on for over 20 min.
I wonder if there is a possibility while the program is running to pause it after 20 min for a 20 min pause, and then it will continued right where it stopped.
thank you
0 comentarios
Respuestas (1)
Matt J
el 24 de Ag. de 2022
Editada: Matt J
el 24 de Ag. de 2022
2 comentarios
Matt J
el 24 de Ag. de 2022
I don't have a full picture of how the sensor is operated . One thing you might be able to do is use the backgroundPool to issue on/off commands to the sensor, using pause or tic...toc to measure intervals of time between commands. Your main program would, however, have the responsibility of checking whether the data it is reading from the sensor is valid.
Ver también
Categorías
Más información sobre Scope Variables and Generate Names en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!