微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 测试测量 > 虚拟仪器 > 问题:如何捕获一个变量的数值变化事件?

问题:如何捕获一个变量的数值变化事件?

时间:12-13 整理:3721RD 点击:
比如,一个复选框有3个值可选,改变选择,可以控制波形的清零等事件。
属性节点能做到吗?选择哪个?

我通常是用event结构,不过ms用队列更好一点,然而最好的还是状态机。

谢谢,已用shift register解决。

Talking about design patterns, if we sort them in terms of complexity, the order will be (1) regular event case (2) state machine (3)producer/customer. As you said, "queue is better", in fact the producer/customer pattern is a combination of queue and event case.

In the book I read, it claims that the state machine is the universal best solution.

并不是所有情况都这样
象楼主这点需求,状态机有点高射炮打蚊子了吧

Mosquitos are very fz.

quit labview是啥vi?

就是它的名字那样的啊……

你机器上有么
我这咋搜不到呢

我的是中文的,改名叫“退出labview”了。

ft
路径是啥?


找到了

哼哼

就叫 quit LabVIEW ……

中文版的 example finder 关键字都变中文了 , 找个东西好难 ……

I do not want to argue simply for the sake of arguing. However, whoever the author is, for the book you read, I do not think there is a absolutely universal best solution. Even for state machine, there are several variations.  Every design pattern has its suitable cases, advantages and disadvantages.
For example, state machine is very possible to miss user interface operations, while such a problem is less severe for the producer/customer patter.
Anyway, use the best fit.

To tell the truth, I don't really know many kinds of different situations...
So give some examples of these solutions each plz, if you have time.
Haha, niubilitis should contribute more!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top