フィルターのクリア

Multiple versions of matlab communicate with same figure window?

1 回表示 (過去 30 日間)
Darin McCoy
Darin McCoy 2011 年 3 月 16 日
Hi,
Is there any way for multiple instances of matlab to use the same figure handle for displaying data?
Basiclaly - i have several matlab scripts (that take a long time to run) that i would like to....(if possible)....use the same figure window for a progress bar.....that way....i can see how my scripts are progressing across multiple versions of matlab
any ideas?

採用された回答

Walter Roberson
Walter Roberson 2011 年 3 月 16 日
Have the master window listen for on a UDP port for information from the other sessions broadcasting their ID and their progress.
You can use the Instrument Control Toolbox for UDP, or you can use the tcpudpip Matlab File Exchange (FEX) Contribution.
If all of the sessions are running on the same machine, you may be able to use shared memory to communicate between them. There is a FEX contribution to communicate between sessions with shared memory.
  4 件のコメント
Darin McCoy
Darin McCoy 2011 年 3 月 30 日
Jan -
Do you have any entries that work on windows machines? That submission looks like it works just for UNIX style machines...
Walter Roberson
Walter Roberson 2011 年 3 月 30 日
Windows XP SP2 and later _claim_ POSIX compliance. I've never had sufficient motivation to test that claim.

サインインしてコメントする。

その他の回答 (1 件)

Jan
Jan 2011 年 3 月 16 日
You could write the progress status of the different threads to one or several files, and read them by the main thread to display the progress bars.
There are nicer methods, but this is simple.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by