Getting callback from MatLab to the Command Line
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
my current project uses some batch script which shall:
1. do some stuff
2. then call MatLab with a m-script which takes some time to execute (around an hour)
3. after finishing this m-script, MatLab shall stay open
4. then the batch script shall do some further stuff
So, now the question is if there are some callback options in MatLab which inform the caller (batch script) that some task just finished (the -wait flag is not an option, because MatLab must stay open).
Thanks!
3 commentaires
Walter Roberson
le 3 Mar 2019
I am not familiar with .bat and powershell.
On Unix type systems I would probably do something like create a co-process and monitor its stdout, watching for it to write some particular output such as "Ready Player One"
However, I am not sure what you mean by "connect to this matlab instance via a matlab access server" ? If you are referring to the COM Server API, then I am not certain that you can use an existing process that was not started by the COM Server API.
Does it really have to be the same MATLAB instance, or could you save() after the first and load() when you opened the COM Server ?
Réponses (0)
Voir également
Catégories
En savoir plus sur Write COM Applications to Work with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!