Matlab中的实时数据 [英] Real-time data in Matlab
问题描述
我正在尝试从服务器获取数据.现在,我每两秒钟轮询一次服务器以获取当前值.我想知道是否可以让Matlab实时获取数据,或者我是否坚持目前的实现方式.有人做过这样的事情吗?如果是这样,也许您可以告诉我如何开始使用它.
I'm trying to get data from a server. Right now, I am polling the server every couple of seconds for the current values. I am wondering if it is possible to have Matlab get the data in real-time or if I am stuck with my current implementation. Has anyone done anything like this? If so, maybe you can tell me how you got started with it.
任何帮助将不胜感激.谢谢!
Any help would be greatly appreciated. Thanks!
推荐答案
If you're on Windows, you can listen to ActiveX (COM) events using REGISTEREVENT. You would need to provide an ActiveX control (servers might work too, I'm not sure) that triggers the event, which would invoke your MATLAB function.
这篇关于Matlab中的实时数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!