取消
显示结果 
搜索替代 
您的意思是: 

Event structure problem...

Thanks Joe. I feel like I have to give you a portion of my salary because you helped me out so many times. 高兴表情
0 项奖励
22 条消息(共 36 条)
1,444 次查看
I have a new question. So I  have an event case where if the table on the front panel gets updated by the user  the code overwrites certain columns and rows after the user.  My question is can I programmatically turn off  the event case mentioned above?  The reason why I am asking is  will have to  via code write something in this table so that the code from the the Value change event hadler won't overwrite that I have written via code in the table.
0 项奖励
23 条消息(共 36 条)
1,438 次查看

I do not think you can programatically turn it off (as a properly)

But you can wire a case statement outside the updater for table value. So that in case the disable control is active, the case is empty (do nothing)

0 项奖励
24 条消息(共 36 条)
1,435 次查看


@RSibagatullin wrote:
I have a new question. So I  have an event case where if the table on the front panel gets updated by the user  the code overwrites certain columns and rows after the user.  My question is can I programmatically turn off  the event case mentioned above?  The reason why I am asking is  will have to  via code write something in this table so that the code from the the Value change event hadler won't overwrite that I have written via code in the table.


Yes you can, it's called Dynamic event Registration.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
25 条消息(共 36 条)
1,412 次查看
TonyP, Thanks for the excelent link. That was exactly that I was looking for.


0 项奖励
26 条消息(共 36 条)
1,382 次查看
The example provided in the this link is pretty advanced and hard for me to understand since I am a beginner.  So from my understanding I can cancel dynamically only dynamic events right? So there is no way to cancel the old-school static events, ? If there is a way could someone show a simple example? Thanks.

0 项奖励
27 条消息(共 36 条)
1,370 次查看
The event is attached.
0 项奖励
28 条消息(共 36 条)
1,367 次查看
I know of no way to "cancel" a statically defined event.  But what you are showing in your code will basically do that.  The code in a case structure where if you want the code to occur, it runs in the true case,   In the false case nothing happens.  So the event will fire, the event case will run, but nothing will happen if your boolean is set to false.
0 项奖励
29 条消息(共 36 条)
1,356 次查看
I see your point but during the false step I have another code running. Basically what I want is to dynamically do someting that none of the cases of (true and false)  will get exectued in the event of Value Change.

0 项奖励
30 条消息(共 36 条)
1,346 次查看