Running MEX-File callback Fonctions in Background

1 visualización (últimos 30 días)
Bolivar
Bolivar el 18 de Oct. de 2013
Hello,
I urgently request your insights about this matter. Actually, I want to run callback fonction (MEX-file; can mex file be callback for a listenig event?) in background and I was wondering if it is possible. In fact, I want to use the multiple threading features of C/C++ to make some computation in background to be provided to main stream while the later is waiting within a while-loop for result.
My problem looks like this : I have two super classes :
classdef super1 < handle
properties
refsup2 % reference to class super2
end
methods
subroutine1(obj,src,evnt);
subroutine2(obj,src,evnt);
subroutine3(obj,src,evnt);
end
end
classdef super2 < handle
properties
refsup1 %reference to class super1
end
methods
subroutine1(obj,src,evnt);
subroutine2(obj,src,evnt);
subroutine3(obj,src,evnt);
end
end
classdef subclass < super1&super2
methods
function obj=subclass(varargin)
obj=obj@super1();
obj=obj@super2();
end
end
end
All my program is coded in M-files yet. In a get function of class super1,the program enter a while-loop waiting for class super2 to provide necessary data to continue. The control of loop is made through reference to class super2 in super1 (refsup2). Now my question: It is possible to make use a MEX-File as callback of matlab events? if yes, can you give me some guidance to make it? can you give me some insights on how to parameter it to run in background? or eventually better solution to solve this issue!
thanks, Bolivar

Respuestas (0)

Categorías

Más información sobre Construct and Work with Object Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by