MATLAB access memory allocated by C++ application

Viewed 74

I have a C++ application that reads data packages from a hardware device. Each data package has a size of around 100 MB and I receive 5 packages per second. I would like to process the data in MATLAB directly after receiving it.

Currently, I am exporting the data package in a binary file and import it in MATLAB. However, as saving the file takes a long time, I would like to access it from MATLAB directly.

Is it possible in C++ to make the the memory accessible in MATLAB without storing it in a file on the hard drive? Are there other ways to create a (one-way) communication interface between C++ and MATLAB or is it possible to create a C++ function that returns the entire data package and can be called in MATLAB?

0 Answers
Related