Sharing memory with external application in Linux

5 ビュー (過去 30 日間)
M. C Ertem
M. C Ertem 2015 年 6 月 9 日
回答済み: Walter Roberson 2015 年 6 月 9 日
I know how to share memory between two Matlab sessions, per
But how do I share memory between Matlab and an external console application.
In Linux, I use shmget and shmat to share memory between programs, using the following redacted code:
shmid = shmget(key, SharedMemSize, 0666 | IPC_CREAT);
ShMemPtr = shmat(shmid, NULL, 0);|
How can I get Matlab to join in the act. I would like to use it to monitor my data to run a visualization front end.
Thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 6 月 9 日
and request to attach to the matrix with the given key?

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by