VC ++可以实时绘制的最大样本数 [英] maximum number of samples VC++ can dump in real time plotting

查看:79
本文介绍了VC ++可以实时绘制的最大样本数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我需要一个重要的信息,即VC ++可以实时绘制多少样本。我每秒需要500个样本。是否可以在我们的VC ++ GUI中实时绘制这些样本?



如果是,它可以支持的系统配置是什么?



如果有人可以帮助我,我真的对他们很有帮助。



提前谢谢。

Hello everyone!

I need an important information that how much samples VC++ can plot in real-time. I am taking 500 samples per second . Is it possible to plot these samples real time in our VC++ GUI ?

If yes what is the configuration of system that it could support?

If anyone can help me I am really helpful to them.

Thanks in advance.

推荐答案

当然,你不能在每次采样时更新 GUI (这意味着每 2毫秒刷新一次图)。通常,您(或多或少)定期更新 GUI (比如每 50毫秒)。在每次更新时,您都会绘制当前数据。当然,为了获得好的结果,你的绘图应用程序应该很快。

看看这个代码项目文章:高速制图控制 [ ^ ]。
Of course you cannot update the GUI at each sample acquisition (that would mean refreshing the plot every 2 msec). Typically you update the GUI at (more or less) regular intervals (say every 50 msec). At each update you plot the current data. Of course, in order to get good results, your plot application should be fast.
Have a look at this Code Project article: High-speed Charting Control[^].


每秒的样本数不是C ++规范的一部分。 :-)



这甚至不是100%相关。性能取决于很多因素。对不起,但这个问题毫无意义。另外,谈到实时:你使用实时操作系统的可能性极小。也就是说,即使你达到了你想要的性能,你也不应该依赖于执行任何事情的时间。



对于一些非常基本的背景,请参阅:

http://en.wikipedia.org/wiki/Race_condition [ ^ ],

http://en.wikipedia.org/wiki / Real-time_computing [ ^ ]。< br $>


-SA
Number of samples per second is not a part of C++ specification. :-)

This is not even 100% relevant. Performance depends on very many factors. Sorry, but this question makes no sense. Also, speaking of "real-time": it's extremely unlikely that you are using a real-time OS. That said, even if you achieve performance you want, you should never rely on the time of execution of anything.

For some very basic background, please see:
http://en.wikipedia.org/wiki/Race_condition[^],
http://en.wikipedia.org/wiki/Real-time_computing[^].

—SA


这篇关于VC ++可以实时绘制的最大样本数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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