Automatically Run a Matlab Script
이전 댓글 표시
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?
답변 (1개)
the cyclist
2020년 3월 3일
0 개 추천
댓글 수: 9
fahd Belmajdoub
2020년 3월 3일
the cyclist
2020년 3월 3일
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
2020년 3월 3일
Steven Lord
2020년 3월 3일
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
2020년 3월 5일
the cyclist
2020년 3월 5일
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
2020년 3월 5일
Steven Lord
2020년 3월 5일
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
2020년 3월 5일
편집: fahd Belmajdoub
2020년 3월 5일
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!