data acquisition from a custom system

I have a custom data acquisition system that captures the pressures. The system is managed from a program made in Visual C++. I would like to send to matlab captured data updating in real time the workspace of matlab variables. I wish it were possible to simultaneously work in matlab. How can I do?

Respuestas (1)

Walter Roberson
Walter Roberson el 26 de Sept. de 2016

0 votos

engPutVariable() would be one approach. Another would be PutWorkspaceData DCOM method.
A third approach would be to use mmap() to share a file between two programs.

3 comentarios

Gianluca Capuano
Gianluca Capuano el 27 de Sept. de 2016
engPutVariable (): allows you to work in Engine matlab but not in matlab full program PutWorkspaceData DCOM method: MATLAB COM Automation Server I think they are subparts of matlab that I can import in the visual basic project M_Map is a set of mapping tools to work on the maps, but could not find documentation on how to use it to share files. I needs instead of having the ENTIRE FULL ORIGINAL MATLAB PROGRAM, and in this environment I would like to be able to work freely. Simultaneously the workspace variables are updated in real time by my data acquisition system
Walter Roberson
Walter Roberson el 27 de Sept. de 2016
I should have said memmapfile().
(The mmap() name I used comes from the underlying Unix/Linux system call http://man7.org/linux/man-pages/man2/mmap.2.html; it looks like the corresponding MS Windows call might be CreateFileMapping)
Walter Roberson
Walter Roberson el 27 de Sept. de 2016
If you need MATLAB to be "managed" from a different program, with the "ENTIRE FULL ORIGINAL MATLAB PROGRAM" available, then you will need to use Java Robot Class to send keypresses and mouse clicks to MATLAB to imitate a user sitting in front of the machine. That approach is, however, not compatible with updating in "real time".
The engPutVariable() and PutWorkspaceData methods are related to the parts of MATLAB that can be remote controlled efficiently.

Iniciar sesión para comentar.

Preguntada:

el 26 de Sept. de 2016

Comentada:

el 27 de Sept. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by