LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI execution behavior is weird.

Hi,

Here is attached SubVI Keydowncheck.vi which is getting called from a state machine. I am using this SubVI to display dialog pop-up to user which shows which is key pressed. But it seems like Start Engine Splash Screen.vi popup causing this Keydowncheck.vi to hang up and it become unresponsive. Then clicking on Keydowncheck.vi make it responsive. Not sure about the reason behind this. Also tried couple of things like SubVI node setup--> (Enabling) Show front panel when called,Also enabling Show front panel when called setting in VI properties-->Window appearance. but didn't worked.

0 Kudos
Message 1 of 3
(2,292 Views)

It seems that you have in two different VI a event structure with the check lock front panel.

See picture:

0 Kudos
Message 2 of 3
(2,250 Views)

Are you sure the Keypress VI is locked up?  I took both subVIs off of modal mode (modal mode is not a good idea during development), set them to "show front panel when called" and "close afterwards if originally closed" and it seems to work.  The keypress VI is going to show ASCII for the majority of the keys on keyboard because you are only looking at the VKEY item in the event data node.  Maybe this is why the VI appears to be "locked up" when it reality, the front panel is just not changing as you might be expecting. 

aputman
0 Kudos
Message 3 of 3
(2,225 Views)