本文介绍了在C#.net中计算信号的频率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在用c#.NET开发示波器的应用程序,我正在借助zedgraph控件绘制不同类型的波(正弦波,方波等).
我从示波器获取值并将其存储在大小为1024(字节数组)的缓冲区中,并且必须在运行时计算诸如时间段,频率,上升时间,下降时间等参数.
为此,我只需要提取整个信号的单个周期.另一个问题是值并不总是连续地上升或下降,平均值存储在缓冲区中是这样的[0,0,0,1,1,2,3 ,4,5,5,6,6,6,5,5,4,3,2,1,1,0,0,0 .....].信号不断从机器接收.
不确定波是否总是在零附近振荡.
谢谢
问候
Nilesh

Hello,
I am developing an application for an oscilloscope in c# .NET, I am drawing different kinds of waves (sine, square etc..) with the help of zedgraph control.
I get values from oscilloscope and stored in a buffer of size 1024(byte array) and have to calculate parameters like time period, Frequency, rise time, fall time etc at run time.
for this purpose i have to extract only a single cycle of whole signal.one more problem is that values are not always rise or fall continuously mean values are stored in buffer like this[0,0,0,1,1,2,3,4,5,5,6,6,6,5,5,4,3,2,1,1,0,0,0..........]. signals are continuously receive from machine.
it is not sure that waves are always oscillating around zero.
Thanks
Regards
Nilesh

推荐答案



这篇关于在C#.net中计算信号的频率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 12:40