C Engine API non-blocking

2 views (last 30 days)
JimTal on 2 Jan 2020
Commented: Mohammad Sami on 7 Jan 2020
I am using R2019b version of Matlab and integrating the Matlab engine API into legacy C code using MS VS 2008 (compiled to 64 bit). When issuing a Matlab command to run a program using the engEvalString(..) command I found that the command is blocking (synchronous) in the C code, example:
Is there a way to issue an asynchronous Matlab command from C so that it is non-blocking on the C code side? Or is there a way to start the Matlab engine from C code so that it runs asynchronously.
The C code passes Numeric Matrix data to matlab using the function engPutVariable(..) and it (C code) is very time sensitive in it's task and can only be minimaly blocked by Matlab's process.
Thanks for your input
Mohammad Sami
Mohammad Sami on 7 Jan 2020
Yes I think Matlab currently requires minimum VS 2015. I don't have any examples available.

Sign in to comment.

Answers (0)


Find more on External Language Interfaces in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by