自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

原创 解读ATV312变频器modbus协议中地址8501的数据,不用自己对着datasheet一个位一个位的解读了

使用VS2013, 开发语言c#,下载链接https://download.csdn.net/download/qq_20573423/10862241using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;u...

2018-12-19 17:38:13 2904

转载 radiobutton checkbutton

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....

2018-12-18 20:30:13 149

转载 Button MessageBox RTF Background Picture password

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace Wind...

2018-12-16 22:29:20 132

原创 input radius get area

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace calculate_area{ class Program { static void Main(string[] args) { ...

2018-12-15 14:37:06 257 1

原创 c sharp chart控件学习

chartArea2.AxisX.Interval = 2D;这一个可以改变坐标轴间隔,最后一个大写的字母D是十进制数chartArea2.AxisX.MajorGrid.Enabled = false;这一个可以决定是否可以带网格 chartArea2.AxisX.Maximum = 66D;这个决定了x轴的最大值chartArea2.AxisX.Inter...

2018-11-29 21:59:12 962

原创 最匹配的重载方法具有一些无效参数C SHARP

language:C#框架:.NET Framework 4 这句话把method中的“,10”去掉就行了。int dd = Convert.ToInt32(b[0]); 

2018-11-29 21:50:50 5952

转载 错误 104 命名空间“System.Windows.Forms”中不存在类型或命名空间名称“DataVisualization”。是否缺少程序集引用?

没有引用就去引用一下,否则点下“.”之后DataVisualization不出来。首先需要把目标框架改为.NET Framework 4,否则无法引用,因为低版本里面压根没这个东西。“项目”-->“添加引用”--》“.NET”...

2018-11-29 06:33:08 3275

原创 chart is not supported by all dotNET Framework

support begin from 4.0.

2018-11-29 06:17:17 132

原创 对《Visual C#.NET串口通信及测控应用典型实例》P101,PC端c#.net电压输入程序设计的改进

要解决的问题:当曲线显示到头时会出现曲线无法更新的情况:原因:有一个采样变量x,一直累加但是但是chart控件显示的点有限,只能显示51个点,而且人家的横坐标是不会跟着变的。解决方法:在 private void DisplayText(object sender, EventArgs e)这个文本显示的函数里增加x++; if (x == 50) ...

2018-11-15 16:05:31 874

转载 c# serial port example (microsoft has copyright)(refer to msdn)2018-11-5 10:34:49

// Use this code inside a project created with the Visual C# > Windows Desktop > Console Application template.// Replace the code in Program.cs with this code.using System;using System.IO.Po...

2018-11-05 10:37:57 201

原创 c# draw a line then clear it 2018-11-3 16:12:33

i find it is a good way to learn c sharp,i can  save the code on csdn,and it is very easy to browse and consult.function:click a button to clear the line that drewadd two buttons in the window...

2018-11-03 16:15:43 219

转载 c# draw a line 2018-11-3

本文完全参考https://jingyan.baidu.com/article/c35dbcb098017f8917fcbc77.htmlusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using Syst...

2018-11-03 15:37:13 146

原创 stc15系列单片机与ds18b20 晶振24Mhz

这个代码的时序调整的比较好,抗干扰能力强 晶振24Mhz针对ds18b20时序的问题,完美解决,什么单片机都可以参考以下程序,每一部分的延时都很明确#include <STC15F2K60S2.H>#include "intrins.h"#define u8 unsigned char#define u16 unsigned inttypedef unsigne...

2018-04-13 09:21:50 1546

原创 stc15系列单片机读取单个ds18b20数据,晶振24Mhz

这段代码不是很稳定,有时凑巧了能用#include <STC15F2K60S2.H>#include "intrins.h"#define u8 unsigned char#define u16 unsigned inttypedef unsigned char BYTE;typedef unsigned int WORD;#define FOSC 24000000L         ...

2018-04-12 16:23:56 1567 1

解读ATV312变频器modbus协议中地址8501

解读ATV312变频器modbus协议中地址8501,不用工程师一位一位解读了,亲测好用

2018-12-19

采集mpu9150加速度计x轴数据

采集mpu9150加速度计x轴数据,51单片机两个IO口模拟I2C通信,里面有mpu9150的初始化

2018-05-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除