实时绘制示波器/捕获的数据

发布于 2025-01-12 20:03:44 字数 361 浏览 1 评论 0原文

我用于捕获波浪的硬件创建了一个 2D 阵列,其中包含 500 条长度为 5000(点)的迹线。我想看看在这个数组的计算过程中数据/痕迹是什么样子,因为我四处移动我的设备并捕获来自不同边缘的不同波。我使用 jupyter+python 进行捕获工作,并尝试使用 matplotlib 来绘制数据,虽然绘图只能(或者我只能)在收集跟踪后完成,但我需要看到实时变化的跟踪。我读到了 Holoviews 库,但也出现了同样的问题。

当每次计算得到 1 个迹线时,如何绘制实时数据?

例如:我捕获 5000 个点(x 轴长度)的 1 条迹线,并希望绘制该迹线,然后捕获另一条迹线,并且必须调整到旧图。这应该像录音绘图一样工作,您可以在其中录制语音,并且每当您说话时,您都可以立即看到波浪移动

My hardware for capturing waves creates an 2D array with 500 traces of length 5000 (points). I would like to see how the data/traces look like during the computation of this array, since I move my device around and capture different waves from different edges. Im using jupyter+python for the capturing work and tried matplotlib to plot the data, although the plotting can be only (or I can only) done after the traces are gathered, but I would need to see the traces changing in real time. I read about the holoviews library, although the same problem occurs.

How can I plot real time data, when I get 1 trace per computation?

For example: I capture 1 trace of 5000 points (x-axis length) and would like to plot that one trace, then another trace is captured and it would have to adjust to the old plot. This should work like an audio recording plotting, where you record voice and whenever you speak you can instantly see the waves as they move

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文