91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3KB
    文件類型: .cs
    金幣: 1
    下載: 0 次
    發布日期: 2021-05-12
  • 語言: C#
  • 標簽: c#??winform??chart??示波器??

資源簡介

做電子開發的,會經常需要使用虛擬儀器,除了labview 感覺winform是一個不錯的選擇 然而虛擬示波器更常用,去年和同學參加個比賽 后來示波器都沒做好 現在抽空自己學習寫了個

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
using?System.Windows.Forms.DataVisualization.Charting;

namespace?_2.chart
{
????public?partial?class?Form1?:?Form
????{
????????private?Queue?dataQueue1?=?new?Queue(100);??//初始化隊列
????????private?Queue?dataQueue2?=?new?Queue(100);??//初始化隊列
????????//private?double?Px?=?0;

????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????///?
????????///?系統初始化
????????///?

????????///?
????????///?
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????chart1.ChartAreas[0].AxisX.Minimum?=?0;????//橫坐標最小值?
????????????chart1.ChartAreas[0].AxisX.Maximum?=?100;??//橫坐標最大值
????????????chart1.ChartAreas[0].AxisY.Minimum?=?-50;??//縱坐標最小值
????????????chart1.ChartAreas[0].AxisY.Maximum?=?50;???//縱坐標最大值

????????????chart1.Series[0].Points.AddXY(0?0);???????//初始化時顯示坐標軸
????????}

????????/*
?????????*chartArea------圖標區域?
?????????*series???------數據序列?一個chartArea可以有多個數據線
?????????*AxisX/Y??------坐標軸?每個chartArea都隊友坐標軸
?????????*Queue????------隊列
?????????*/

????????///?
????????///?定時器程序
????????///?

????????///?
????????///?
????????private?void?timer1_Tick(object?sender?EventArgs?e)
????????{
????????????try
????????????{
?

評論

共有 條評論