LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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. Smiley Happy
0 Kudos
Message 22 of 36
(1,299 Views)
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 Kudos
Message 23 of 36
(1,293 Views)

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 Kudos
Message 24 of 36
(1,290 Views)


@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!
Message 25 of 36
(1,267 Views)
TonyP, Thanks for the excelent link. That was exactly that I was looking for.


0 Kudos
Message 26 of 36
(1,237 Views)
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 Kudos
Message 27 of 36
(1,225 Views)
The event is attached.
0 Kudos
Message 28 of 36
(1,222 Views)
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 Kudos
Message 29 of 36
(1,211 Views)
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 Kudos
Message 30 of 36
(1,201 Views)