フィルターのクリア

How to listen simulink progress on background?

2 ビュー (過去 30 日間)
Arden Kuyumcu
Arden Kuyumcu 2019 年 3 月 19 日
I have a project in which I have a web based ui. I am makin some request to the server in which nodejs, python and matlab are installed.
What I am trying to achieve is, to get the request within nodejs and create some files. Then I will feed the file name to the matlab script which will load the file and run a simulink model. After that, I want to feed back the progress of the simulation to the user.
What I have tried so far: I have connected nodejs to python with websocket and let python to control matlab. In the matlab I have created websocket server to broadcast the simulation output to a specfici ws connection. Then I realized the, second client can connect to the line and command to start a simulation where matlab ws server will not receive the commend due to the locked thread or command line etc. Which means no stopping command can be made with websocket approach.
I want to run simulations on matlab/simulink one at a time queueing the client requests if possible or let them know the sim server is freed.
Writing and reading files didn't solve my problem because concurrent read and write operations are not so efficient.
How can I run simulink from a script and let the matlab listen for further commands?

回答 (0 件)

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by