|
Hello everybody,
the Matlab engine API has a function engOutputBuffer that
allows to catch the text output that usually would go to
the command window. I have written and tested a program
with the Matlab IDE, and developed an application that uses
the engine. After putting together both, I found one flaw
in an otherwise well working system: The progress
information from the Matlab program gets visible in one
block after the engine call returns, because my single-
thread application can read the text buffer only then.
I would like to know if it helps to make the application
multi-threaded, i.e. if the text buffer is written by the
engine immediately at the time it executes a statement that
creates output. And does it perhaps create new problems to
read the text buffer while the engine executes a program?
Heinrich
|