如何使用1000个采样点和特定频率生成图形。 [英] How do I generate a graph by using 1000 sample points and certain frequency .?

查看:65
本文介绍了如何使用1000个采样点和特定频率生成图形。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i希望在x轴上生成一个sin波,在y轴上生成振幅,我将串口RS-422连接到我的系统...任何人都可以向我推荐相关文章和关于产生波浪的一些有价值的想法



谢谢



我尝试了什么:



i生成一个没有任何振幅和时间值的波,但我希望它们都作为输入

并通过更改值来改变图形

hi all,

i want to generate a sin wave as time on x-axis and amplitude on y- axis, i connected serial port RS-422 to my system ... can any one suggest me related article and some valuable ideas about generating the wave

thank you

What I have tried:

i generated a wave with out any values of amplitude and time but i want both of them as inputs
and vary the graph by changing the values

推荐答案

正如其他人所说,您的请求有点模糊。

无论如何,你基本上需要收集来自串口的数据,执行某种规范化并在屏幕上输出它们。如果您需要显示实时图表,您可以即时执行此类操作。

使用 SerialPort 组件来收集数据(假设你有一个 RS422 适配器,以及你正在使用的任何图形框架/库(你没有指定它)来显示它。
As others noted, your request is a bit vague.
Anyway, you basically need to collect data coming from the serial port, perform some kind of normalization and the output them on the screen. You may perform this kind of operation 'on the fly' if you need to show a real time graph.
Use the SerialPort component to collect data (assuming you ahave a RS422 adapter, and whatever graphic framework/library you are using (you didn't specify it) to show it.


这篇关于如何使用1000个采样点和特定频率生成图形。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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