LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Button Function Problem When Showing Front Panel of Sub VI

Good Afternoon,
 
I have a created a simplified version of a much more complicated vi to illustrate the problem I am having. Attached is a main vi and a sub vi. The main vi has a boolean which says to open or close the front panel of the sub-vi. This works great. However, the other push button ( " My Button Function" ) on the main vi does not work properly when the sub-vi front panel is being displayed. It is supposed to be a  "switch until released" button. However, if you try to click and hold it down while the sub-vi panel is displayed it acts as if I am clicking the button rather than being able to hold it down? I was wondering why showing the sub-vi front panel makes this happen? And also, if anyone has any recommendations to fixing this problem?
Download All
0 Kudos
Message 1 of 4
(2,741 Views)
What is happening is the loop is running very fast.  It is constantly reading the open SubVI button and opening the subVI if true, even if the subVI front panel is already open.  If you are trying to hold down the other button, the opening of the subVI front panel is taking away the focus from the main VI and thus acting like you let up on the button.
 
Maintain the status of the subVI in a shift register and only open or close it if the status changes.  See attached Main VI.
0 Kudos
Message 2 of 4
(2,740 Views)

Hi Ravens Fan,

 

Thank you for the response. Would you mind saving the change in version 8.2 I do not have 8.5 and could not open the file you attached.

Thanks,

0 Kudos
Message 3 of 4
(2,720 Views)
Here you go.Smiley Happy

Message Edited by Ravens Fan on 03-12-2008 09:11 PM
0 Kudos
Message 4 of 4
(2,715 Views)