上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页
摘要: public override void Run(TaskContext context) { var serialPort1 = new SerialPort("COM3", 9600, Parity.None, 8, StopBits.One); try { context.WriteLog($ 阅读全文
posted @ 2020-08-06 16:04 星星c# 阅读(892) 评论(0) 推荐(0)
摘要: 插件源码地址:https://github.com/HakamFostok/NModbus4.NetCore This library is driven from this library https://github.com/NModbus4/NModbus4 with three change 阅读全文
posted @ 2020-08-05 19:06 星星c# 阅读(2645) 评论(0) 推荐(0)
摘要: 1、下载nssm http://nssm.cc/download 我下载版本是:prelease build 2.2.4-101 2、打开界面 把nssm拷贝到网站目录里后,在cmd里,把路径指向网站的发布目录,然后执行 nssm install,如下图: 执行完以后弹出界面如下: 3、选择文件 点 阅读全文
posted @ 2020-08-05 14:33 星星c# 阅读(788) 评论(1) 推荐(0)
摘要: 一、从github下载文件 https://github.com/vuejs/vue-devtools 下载后解压到电脑上。 二、安装 nodejs后执行 npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org 阅读全文
posted @ 2020-08-02 18:40 星星c# 阅读(96) 评论(0) 推荐(0)
摘要: 一、引用dll 从nuget里引用 NModbus4 版本选择:2.1.0.0,备注:选那个到目前为止最新的“3.0.0-alpha2”版本不可以,如下图: 二、添加using,如下图: using System.IO.Ports; using Modbus.Device; 三、采集温度和湿度的代码 阅读全文
posted @ 2020-08-02 17:56 星星c# 阅读(5076) 评论(2) 推荐(0)
摘要: 一、安装Modbus Poll 我使用的版本是:64位的9.2.2版本,如下图: 二、打开软件 界面如下(截图时我把最初系统默认打开的的那个实例关掉了): 三、新建实例 点击File-New,如下图: 点击new以后界面如下: 四、建立连接 点击:Connection-Connect如下图: 点开以 阅读全文
posted @ 2020-08-01 11:35 星星c# 阅读(1126) 评论(0) 推荐(0)
摘要: var aaa = this.viewer.Document.CreateBitmap(pageIndex, 1500); SaveImageToFile(aaa, @"C: \Users\wjx\Desktop\图书\b" + pageIndex + ".png"); private void S 阅读全文
posted @ 2020-07-27 16:30 星星c# 阅读(537) 评论(0) 推荐(0)
摘要: 引用如下: 代码如下: <Window x:Class="TestGeneratePdf.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.mic 阅读全文
posted @ 2020-07-27 16:24 星星c# 阅读(980) 评论(0) 推荐(0)
摘要: 一、定义样式 <style> .blueBack { background-color: blue; } .yellowBack { background-color: yellow; } </style> 二、定义两个按钮,一个div <div id="vueFirst"> <div :class 阅读全文
posted @ 2020-07-19 12:32 星星c# 阅读(19143) 评论(0) 推荐(0)
摘要: 一、初始化容器 每个vue对象,都对应着一个容器 <div id="vueFirst"> </div> 二、引用vlue.js <script type="text/javascript" src="js/vue.js"></script> 三、添加vue对象 <script type="text/ 阅读全文
posted @ 2020-07-19 12:11 星星c# 阅读(679) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页