LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reinitialize default values in a subpanel

Hi,

I’m using a subpanel to open a subVI (with invoke node: Insert VI).  The subVI has some simple Boolean buttons.  I would like to reinitialize these buttons every time I call the subVI in the subpanel.  I tried the “invoke node: Reinit to Default” and it always gives me an error message: Hex0403E, Wrong Control Type.  I also tried using local variables and property nodes to set the default values at the beginning of the SubVI, but these don’t work either.  Can any help me on this?  Thanks.

0 Kudos
Message 1 of 4
(4,045 Views)
Post the code and let us have a look. I use the reinit to default and have only seen a problem when using active x references.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 4
(4,042 Views)

Here are the files.  Also notice that the subVI works fine when it runs alone.  Once it is called in the subpanel, the LEDs don't work.

Thanks.

Download All
0 Kudos
Message 3 of 4
(4,031 Views)

the reason that the way you are doing it does not work is because you are trying to reinitialize the actual Subpanel control and not the VI inside it. Here is a modified version of your VI. LV 8.6

 

You will have to change the subvi path to match your computer.

 

sub.jpg




Joe.
"NOTHING IS EVER EASY"
Download All
Message 4 of 4
(4,024 Views)