LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Close SubVI Front Panel

Hatef,  I'm getting various data mismatches all around my end application when trying to implement that Queue function.    I may have over-simplified the example that I posted here?

 

It is not necessary to have the dial control functional, other than to set a single initial value to pass to the SubVI.   If you go back to my original VI and SubVI, correct operation is as follows:

 

1)  Run MainVI

2)  Set dial control to any value

3)  Click TEST button on Main VI to "ON"

4)  SubVI displays result.

 

To update the data click the TEST button on the MainVI (to turn it OFF), set a new value, then repeat steps 3 & 4.   Anything fancier than that  is overkill for my application.

 

The actual Data is a 2D array of unsigned U8.  I have a version of my End Application posted on the forums, but I thought that it would confuse the situation more than help.

 

RS422 Data Display

 

I have basically made two additional SubVi's to decode this data stream (U8 output Array) for the end user, that I'd like to close with a button on the SubVI rather than the MainVI.  If you go back to this applicaiton, I have added the SubVI's as shown in the attached image.

 

 

0 Kudos
Message 21 of 32
(1,797 Views)

The control reference is strict; certain Boolean buttons, the ones that pop up after being pressed, are not allowed to use the value property of the reference. You have to use a different control or typecast it to a strict reference. Do not have LabVIEW at the moment so can't give an example.

 

cheers,

mcduff

0 Kudos
Message 22 of 32
(1,795 Views)

Hi Sparky,

 

The switch is just a picture on your front panel, it's meant to be wired up in the connector pane, but not clicked on.

0 Kudos
Message 23 of 32
(1,771 Views)

SparkyOne I could not find the subvi that you mention could you attach again the files and explain in the vi what you want leave essential massage on the code to be clear 

0 Kudos
Message 24 of 32
(1,745 Views)

Here you go...   It may be a moot point at this time, I created a brute-force method that works with my Application (Which I'm sure violates any formal Labview training).    I'm still interested in a more elegant solution....

0 Kudos
Message 25 of 32
(1,741 Views)

This VI will show you how to open and close the front panel using your "TEST" button. The SubVI is set to floating, but it was weird. Even though "Show when called" was unchecked, it still seemed to show everytime it called. So for the purpose of a quick upload I just checked "Show when called" and "Close after running", so you might see a little flicker. For your actual code you should get the "Show when called" working correctly.

0 Kudos
Message 26 of 32
(1,718 Views)

Here's my "Brute-Force" solution.   Not going to accept it at the moment.....but it's "Working as intended".

Download All
0 Kudos
Message 27 of 32
(1,710 Views)

I see your code you need just to do small trick to handle  this.

this vi will help you to know what I means just try to replace the same loop and case with your code same structures 

 

Download All
0 Kudos
Message 28 of 32
(1,704 Views)

Still having problems implementing this method.    I cannot seem to resolve this error when adding the Queue functions.

0 Kudos
Message 29 of 32
(1,646 Views)

attach vi your image really really show nothing to understand what is problem 

0 Kudos
Message 30 of 32
(1,632 Views)