Automatically Run a Matlab Script
Mostrar comentarios más antiguos
I have a script that I want to run automatically, every 5 seconds. How could I set this up so that it runs in an unattended manner?
Respuestas (1)
the cyclist
el 3 de Mzo. de 2020
0 votos
9 comentarios
fahd Belmajdoub
el 3 de Mzo. de 2020
the cyclist
el 3 de Mzo. de 2020
Oh, sorry. I should have clicked through to link they suggested. But I think what you want in Windows is the Task Scheduler.
To my knowledge, there is no task-scheduling ability that is fully internal to MATLAB.
fahd Belmajdoub
el 3 de Mzo. de 2020
Steven Lord
el 3 de Mzo. de 2020
I'm not completely certain since I haven't used it myself, but if you're not already aware there is an OPC Toolbox that may be of use to you. The "Data Access" section may describe functions and functionality that would be useful to you.
fahd Belmajdoub
el 5 de Mzo. de 2020
the cyclist
el 5 de Mzo. de 2020
The page I linked has a section entitled "How to create an advanced task ...".
It looks to me that #21 in that section describes how to repeat the task at higher frequency. (The internet suggested the same to me.)
I don't know if you can go down all the way to 5 seconds, though.
fahd Belmajdoub
el 5 de Mzo. de 2020
Steven Lord
el 5 de Mzo. de 2020
Do you need to run the script from the beginning every five seconds, or would running a script that loops indefinitely and polls for data to process every five seconds be sufficient?
fahd Belmajdoub
el 5 de Mzo. de 2020
Editada: fahd Belmajdoub
el 5 de Mzo. de 2020
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!