eeijiake 发表于 2007-3-29 01:21:43

关于修改动态注册事件的例子的问题

以下是lv帮助中的一段话
The example in the following figure shows how you can dynamically change at run time which objects LabVIEW generates events for. When the following block diagram executes, LabVIEW registers the Numeric reference and waits for an event to occur on the associated Numeric control. When LabVIEW generates a Value Change event for the Numeric control, the Numeric Value Change event case executes a Register For Events function to change the numeric control registered for the Value Change event from Numeric to Numeric 2. If the user subsequently changes the value of the Numeric control, LabVIEW does not generate a Value Change event. However, changes to the Numeric 2 control generate Value Change events. Each time LabVIEW generates a Value Change event for the Numeric 2 control, the Register For Events function executes but has no effect because the Numeric 2 control is already registered for the Value Change event.
大致意思是通过动态注册的修改,numeric1的数值改变不会表现出来,而是表现在了numeric2上
下面的图是例子里面的图(没有给源程序,只有截图)
我按照截图做的程序却无论如何实现不了上述功能,请教大家,谢谢!

eeijiake 发表于 2007-3-29 01:29:31

突然之间明白了,i上面接了个计数器,意思是num1改变第一次后就不会再影响这个计数器,而改由num2来影响了,呵呵,不知道可对啊?
页: [1]
查看完整版本: 关于修改动态注册事件的例子的问题