由于工作关系几个月没有接触Internet了,回来发现很多朋友给我写了信,其中很多一部分都是关于串口方面出现了问题。由于在以前的工程实施过程中关于串口通讯我有时用MSCOMM控件,有时自己用WIN32 API直接操作串口。后来还试验了网络上面很流行的SerialPort类。在工业控制过程中间我对SerialPort类进行了一些简单的修改,发现这个类确实是一个非常好的东西,其中封装了操作串口复杂的一些串口操作。我们使用的时候可以直接通过它的一些简单的接口就可以完成各种外围设备的工作了。我对串口数量和程序长时间运行做了一些测试,效果都是很好的(串口扩充到了11个,运行时间是在一个项目中,到现在已经运行了1个多月没有出现问题)。
标签: Internet
上传时间: 2015-10-12
上传用户:cuiyashuo
一:需求分析 1. 问题描述 魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在这两种形式中,从左到右均表示解释.试写一个魔王语言的解释系统,把 他的话解释成人能听得懂的话. 2. 基本要求: 用下述两条具体规则和上述规则形式(2)实现.设大写字母表示魔王语言的词汇 小写字母表示人的语言的词汇 希腊字母表示可以用大写字母或小写字母代换的变量.魔王语言可含人的词汇. (1) B --> tAdA (2) A --> sae 3. 测试数据: B(ehnxgz)B 解释成 tsaedsaeezegexenehetsaedsae若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:"天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鹅 | 追 | 赶 | 下 | 蛋 | 恨 |
上传时间: 2014-12-02
上传用户:jkhjkh1982
基于RS232的温度测量系统研究 一 引言 温度是一种最基本的环境参数,人民的生活与环境的温度息息相关,在工业生产过程中需要实时测量温度,在农业生产中也离不开温度的测量,因此研究温度的测量方法和装置具有重要的意义。本文介绍了一种基于RS232串口的数字温度传感器测温系统。
上传时间: 2015-11-24
上传用户:lepoke
Delphi开发的一款流程图处理软件,含有源码,对于绘制工业生产过程有帮助。
上传时间: 2013-12-22
上传用户:pkkkkp
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
标签: converts Toolbox complex logical
上传时间: 2016-02-12
上传用户:a673761058
汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
标签: the animation Simulate movement
上传时间: 2017-02-11
上传用户:waizhang
将魔王的语言抽象为人类的语言:魔王语言由以下两种规则由人的语言逐步抽象上去的:α-〉β1β2β3…βm ;θδ1δ2…-〉θδnθδn-1…θδ1 设大写字母表示魔王的语言,小写字母表示人的语言B-〉tAdA,A-〉sae,eg:B(ehnxgz)B解释为tsaedsaeezegexenehetsaedsae对应的话是:“天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅”。(t-天d-地s-上a-一只e-鹅z-追g-赶x-下n-蛋h-恨)
上传时间: 2013-12-19
上传用户:aix008
摘要】 本文介绍了以AT89S51单片机为核心的温度控制器的设计,在该设计中采用高精度的温度传感器AD590对电热锅炉的温度进行实时精确测量,用超低温漂移高精度运算放大器OP07将温度-电压信号进行放大,再送入12位的AD574A进行A\D转换,从而实现自动检测,实时显示及越限报警。控制部分采用PID算法,实时更新PWM控制输出参数,控制可控硅的通断时间,最终实现对炉温的高精度控制。 【关键词】 水温控制系统 PID控制单片机 温度控制是工业生产过程中经常遇到的过程控制,有些工艺过程对其温度的控制效果直接影响着产品的质量,因而设计一种较为理想的温度控制系统是非常有价值的。 一 系统设计方案的论证与比较 根据题目要求,电热锅炉温度控制系统由核心处理模块、温度采集模块、键盘显示模块、及控制执行模块等组成。
上传时间: 2017-06-06
上传用户:kristycreasy
带搅拌釜式反应器是一种最为常见,具有代表性的反应器,广泛的应用于化工生产的各个领域。带搅拌釜式反应器有一些非常重要的过程参数,如:反应压力、反应温度、冷却水阀流量等等。对于这些参数的控制至关重要,它们不但决定着产品的质量和生产的效率,也很大程度上决定了生产过程的安全性。由于非线性和温度滞后等很多因素,使得常规方法对釜式反应器的控制效果不是很理想。本文以带搅拌釜式反应器的工业生产过程作为被控对象,结合模糊 PID 控制、变比值控制、串级控制、前馈控制等多种控制方式,设计了一套基于西门子 PCS7 的自动化控制系统。
上传时间: 2013-12-25
上传用户:924484786