Running MEX-File callback Fonctions in Background
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Software Development Tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!