LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is an event structure right?

Do you have Lock front panel until the event case completes on? And if so, is the event completed when you try to click the button? Do you have multiple event structures? Posting your code would go a long way in determining what you've done.
0 Kudos
Message 21 of 25
(1,108 Views)

Hello,

I don't know how to lock front panel until the event case completes on nor how to check if it is.

The prupose of the programm is to let people enter a code (bar code) with the keyboard (in case no other way is possible). So if you click on the button "CTRL+F7", you should be abble to enter a code, and then if you choose Validate (F1) you validate the code, if not Cancel (F12), you come back to the first front panel and you should be abble to click again on the button "CTRL+F7" (that is what does not work). Indeed the case when I click on F1 works without problem.

Moreover, trying to post you the selected code, I first selected only the 2 parallel loop ( one is with the event structure). When the code is only this (step 0 and 1 from "grde boucle.vi"), it's working perfectly.

The complete code is in "grde boucle.vi" and the one which works "essai lecture code palette.vi" (Sorry it's french names).

Thank you if you find an explanation of the problem.
 
Cécile
0 Kudos
Message 22 of 25
(1,097 Views)

If you are setting up a "value change" events or events that you create through a registration node, right click on the element of the event registration node and there is an option there for locking the font panel. For other kinds of events, when you define the event case in the event structure, there is a checkbox at the bottom of the dialog that accomplishes the same thing.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 23 of 25
(1,091 Views)
Thank you very much!!
I did not know this property.
In fact, unfortunately, that is not the point. My event is in a loop which is stopped by various conditions among one is if you validate the messagebox or cancel it. If you validate, you stop the loop (it is the purpose and it works). But when you cancel, it shouldn't stop the loop (what it does) but enable you to reclick on the button to have the message box (once the button clicked, it seems in the event that it can not be done again, unlike the timeout condition is running)
 
If you have any idea...
 
Cécile
 
0 Kudos
Message 24 of 25
(1,089 Views)
Frankly, I don't understand the purpose of the bottom while loop at all but if you want your Boolean to return to the false state, it has to be read and the way to do that is to put the terminal in the event structure and not the lower while loop. Put the LED indicator in there as well.
0 Kudos
Message 25 of 25
(1,079 Views)