Real time data in Matlab

I am trying to get data from the server. Right now, I am checking the server every couple of seconds for the current values. I am wondering if it is possible to get Matlab data in real time or if I am stuck with my current implementation. Has anyone done something like this? If so, perhaps you can tell me how you got started with it.

Any help would be greatly appreciated. Thank!

+2


source to share


2 answers


If you are on Windows, you can listen for ActiveX (COM) events using REGISTEREVENT . You will need to provide an ActiveX control (servers can run too, I'm not sure) that fires an event that will trigger your MATLAB function.



+2


source


Matlab timer works well for periodic events. You want to be careful to make sure your function executes in less time than the timer frequency, although there are indeed settings for behavior when this is not executed.



0


source







All Articles