找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 1232|回复: 6

事件结构与配置文档

[复制链接]
发表于 2007-6-15 16:28:11 | 显示全部楼层 |阅读模式
可以在配置文档里面驱动事件结构吗?
就是说在配置文档里面写好顺序与时间延迟,加载进去以后就可以按顺序驱动事件结构,不知道这样能否实现?
发表于 2007-6-15 16:48:14 | 显示全部楼层
可以。。。。你用machine state试试
回复 顶

使用道具 举报

发表于 2007-6-15 16:50:23 | 显示全部楼层
为什么会有这样的想法呢,
使用状态机就好了
回复 顶

使用道具 举报

 楼主| 发表于 2007-6-15 16:56:33 | 显示全部楼层

回复 #3 lgh269 的帖子

状态机?
什么意思?
因为我想在配置文档里面把程序的执行顺序定义好,这里面可能会有某步重复执行,而且执行时间较长
所以用顺序结构很难实现,我才会想用事件结构的!
回复 顶

使用道具 举报

 楼主| 发表于 2007-6-15 17:01:15 | 显示全部楼层

回复 #2 飞雨天 的帖子

两位的意思都是用状态机吗?
怎么在配置文档里面使用状态机,有具体的例子吗?

非常感谢!
回复 顶

使用道具 举报

发表于 2007-6-15 19:49:44 | 显示全部楼层
我这里有个老外写的关于洗衣机的state  machine,传上去给你看下
结合labview的state machine model(在labview的模般里,你可以把另外几个和它一起的摸板都给学习下,对以后写程序很有帮助),自己好好琢磨,下面是一段文字,你看看,如果知道阿兰。图灵和他的图灵机的话,你理解起来会很容易的:
Alan Turing first proposed the state machine in 1936. He envisaged a box with a paper tape input (input alphabet), a set of states (and start states), and a mechanism for mapping the input to the next state.
Definition:A state machine is a conceptual machine with a given number of states; it will only be in one of the states at any given time. State transitions are changes in state caused by input events. In response to an input event the system may transition to the same or a different state, while an output event may be optionally generated.

[ 本帖最后由 飞雨天 于 2007-6-15 20:11 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 顶

使用道具 举报

 楼主| 发表于 2007-6-16 21:36:02 | 显示全部楼层

回复 #6 飞雨天 的帖子

哦
好的
我再琢磨琢磨,非常感谢啊
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-30 21:10 , Processed in 0.044489 second(s), 11 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表