LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about event structures.

It seems that when I had my two event structures, on for closing the app and one for updating some LED's when some controls were changed, that my app wouold periodically freeze on a computer other than my development computer. I just came across Dennis' ten commandments and #2 struck me as something I may have done wrong. I removed the event struct that looked for the changing switches and it no longer freezes. I also realize I don't need 2 event stucts. But are these two things (Two events and freezing) correlated?

Dennis' ten commandments:

1. Thou shalt not have any text languages before me.
>>2. Thou shalt not make two different event structures.
3. Thou shalt not take the name of Jeff Kodosky the creator in vain.
4. Remember the type def, to keep it strict.
5. Honor the wire and the shift register.
6. Thou shalt not skip reading the manual.
7. Thou shalt not commit a sequence structure.
8. Thou shalt not wire underneath objects.
9. Thou shalt not bear false witness against LabVIEW for memory leaks.
10. Thou shalt not covet the loacal variable."

Cason Clagg
SwRI
LabView 7.1, Windows XP
0 Kudos
Message 1 of 4
(2,687 Views)
Yes it is. Drop an event structure on a block diagram. Turn on Context Help. Move the cursor over the event structure and in the Context Hlpe window, click on the "Click here for more help" line at the bottom of the window. This will open the on-line help for the event structure. In the on-line help, you will see a link called "caveats and recomendations for using events". Click that and read what it has to say.
Message 2 of 4
(2,681 Views)
That was extremly helpful. And in doing so I found out why my app was freezing. When I would flip a switch more than once the event handler could not handle it past the first time since the event handler was not inside a loop!

You didn't even mention me using your ten commandments... Although, you replied first, but that is normal it seems.

Cason Clagg
SwRI
LabView 7.1, Windows XP
0 Kudos
Message 3 of 4
(2,674 Views)
Dennis is a wise and humble guru.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 4 of 4
(2,666 Views)