Info

This question is closed. Reopen it to edit or answer.

How can I share data between a GUI (deployed with the MCR) and the C++ code ?

1 view (last 30 days)
Hello,
I work on a Linux 64 bits and I want to use a GUI (created with Matlab and deployed as a shared library thanks to the MCR) in a C++ Code, where are my calculus functions.
The problem is to share data between the GUI and the C++ Code.
I isolated the GUI and the calculus functions in two different threads in the C++ and I've been able to write in a named pipe from the GUI (after a click on a button which switch on a callback) while the C++ was reading.
Thus I get the data to give to the calculus functions, but then, when the GUI is going to read, all is blocked.
Does anybody have an idea ?
Thanks and regards

Answers (0)

Community Treasure Hunt

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

Start Hunting!