On the app designer, how can i log data in real time to a .mat/.txt file

4 vues (au cours des 30 derniers jours)
Ifeoluwa Ajiboye
Ifeoluwa Ajiboye le 19 Nov 2021
Réponse apportée : Rik le 20 Nov 2021
I have got a timer function that every 5 seconds, i get timenow values & Power Supply voltage. I am not sure how to log this data to a txt file in real time.

Réponse acceptée

Rik
Rik le 20 Nov 2021
This sounds like you could solve it by using one of the append flags when using fopen. Then you can fprintf what you need to write, and close the file again with fclose.

Plus de réponses (0)

Catégories

En savoir plus sur Install Products dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by