摘要: <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2020-09-13 12:52 阿坦 阅读(613) 评论(0) 推荐(0)
摘要: M-V-VM是Model-View-ViewModel的简写,Model,ViewModel是个类文件(.cs文件),View是前台文件(,xaml文件)。假设我们的工程只有一个前台文件和一个后台文件,当设计要求越来越多的时候,前后台文件可能会高达上千行,甚至上万行,此时要想找到对应的代码,鼠标滚轮 阅读全文
posted @ 2020-09-10 15:22 阿坦 阅读(1861) 评论(2) 推荐(2)
摘要: 效果: <Window x:Class="RichTextBoxDemo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.c 阅读全文
posted @ 2020-09-09 09:13 阿坦 阅读(210) 评论(0) 推荐(0)
摘要: 程序发送456,如果收到123则认为发送成功,重发次数3次,每次检测时间间隔1秒,效果如下 #region 串口发送 //str 是发送的字符,retry_num 是重发次数timeout 是超时时间 public bool UartSend(string str,UInt32 retry_num, 阅读全文
posted @ 2020-09-08 11:33 阿坦 阅读(621) 评论(0) 推荐(0)
摘要: 1、Shift + H 取消PCB界面头部实时显示,再按一下Shift + H又会重新显示头部信息 2、原理图界面中,鼠标停留在器件上面片刻会显示一个框图,如果想取消显示,工具->原理图有选项,在接下来的对话框中取消使能连接检视 取消前: 取消后: 阅读全文
posted @ 2020-09-07 11:00 阿坦 阅读(740) 评论(0) 推荐(0)
摘要: 效果如下: 源码下载地址:https://github.com/lizhiqiang0204/WPF_Halcon_xyGray.git 阅读全文
posted @ 2020-08-27 14:44 阿坦 阅读(466) 评论(0) 推荐(0)
摘要: 有如下工程 其中Sheet1文件里有四个二极管,Sheet2文件里有4个数码管,想让Sheet1文件里的内容更新到PCB1,Sheet2文件里的内容更新到PCB2,如果直接用Design->Uptate,AD默认会将两个原理图的内容都更新到PCB1或者PCB2文件中。那么如何将他们一一分开更新呢? 阅读全文
posted @ 2020-08-20 16:43 阿坦 阅读(4562) 评论(0) 推荐(1)
摘要: 上一篇博客介绍了如何制作用户控件库并简单的使用,今天的这个例程进一步使用自己创建的时间库控件,先看效果 源码就不详细介绍了,直接去工程里看吧。源码下载地址:https://github.com/lizhiqiang0204/UserTimeEditer.git 阅读全文
posted @ 2020-08-19 17:31 阿坦 阅读(228) 评论(0) 推荐(0)
摘要: 首先创建一个User Control Library工程,工程名为UserTimeEditer 控件库工程程序集如下 UserControl1.xaml 前台文件如下: <UserControl x:Class="UserTimeEditer.UserControl1" xmlns="http:// 阅读全文
posted @ 2020-08-08 18:14 阿坦 阅读(814) 评论(0) 推荐(0)
摘要: 1、ADC1参数设置如下,本历程开启了9路ADC通道 2、设置DMA 3、设定DMA数据宽度,把数据宽度有默认的Half Word改为Word,否则两路的ADC值会合并成一个数据 采集代码如下: /* USER CODE BEGIN Header_StartTaskCheckTemp */ uint 阅读全文
posted @ 2020-08-03 16:43 阿坦 阅读(2269) 评论(0) 推荐(0)