LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cursor

Yes, you are getting trapped in the "key-down?" event. (Which should be "Key-down" (no question mark), green arrow, not the *red* filtering event anyway.)

Easiest would be to do the event handling in a paralell loop as my quick modification.

Of course you could also do it with dynamic event registration.

btw. I would also hide the "tabs" of the tab control since you are using it only as indicator. Users expect tabs to work if the tabs show.
0 Kudos
Message 11 of 14
(850 Views)
OK, I took the liberty to clean it up a bit with some suggestions:
(1) Allow user to operate tab in case corrections are needed (hide the tabs if this is not desired).
(2) Only one set of OK and cancel buttons are needed, they can be outside the tab. Cancel stops the VI. OK goes to page 2 or stops the VI if already on page 2.
(3) We don't need a big case structure, just a single event structure.
(4) You can use a filter event for key-down, but make sure that "discard?" gets the appropriate boolean depending on the tab state so typed charaters are not lost.

Of course programming styles vary, so modify as needed. 🙂
0 Kudos
Message 12 of 14
(850 Views)
Thank you very much for your input. Though programming styles do vary some are better then others. Your suggestions will clean up the block diagram greatly. Thanks again. One last question. Could you explain the dynamic registration you mentioned in a previous posting for I gave it shot with no luck.
0 Kudos
Message 13 of 14
(850 Views)
No need to resond to my previous reply. I figured out the dynamic registration. Thanks again for your help.
0 Kudos
Message 14 of 14
(850 Views)