bitconnect.cs
来自「串口通讯源代码。。 比较经典。。希望大家能喜欢」· CS 代码 · 共 50 行
CS
50 行
using System;
using System.Collections.Generic;
using System.Text;
namespace WFZJ.BitConnnect
{
public class BitConnect
{
public bool StartConnect()
{
return true;
}
public bool TestDevice()
{
return true;
}
public List<double[]> GetData(string Interval)
{
List<double[]> ld = new List<double[]>();
Random r = new Random(2);
for (int i = 0; i < 10; i++)
{
double[] di = new double[10];
for (int j = 0; j < 10;j++ )
di[j] = r.NextDouble();
ld.Add(di);
}
return ld;
}
public List<double[]> GetAllData()
{
List<double[]> ld = new List<double[]>();
Random r = new Random(2);
for (int i = 0; i < 10; i++)
{
double[] di = new double[10];
for (int j = 0; j < 10; j++)
di[j] = r.NextDouble()*100;
ld.Add(di);
}
return ld;
}
public bool EndConnect()
{
return true;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?