Matlab中的实时数据 [英] Real-time data in Matlab

查看:119
本文介绍了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!

推荐答案

如果您使用的是Windows,则可以使用

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆