LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Value signaling problem with subpanel vi

I'm having a problem with the code in attachment.

My main vi loads a subpanel vi. When I change one of the controls in the main vi, it is the purpose that the corresponding controls/indicators in the subpanel change as well.
Every control in the subpanel is reacting on a value signaling event and transfers its value to an indicator.

I'm having problems with the value signaling event. The signal is always coming through in the sub panel (indicated by the message box), but is seems that sometimes the value is not always set in time.
The problem does not exist for the 'numeric 2' control. The difference is that in the subpanel vi I wired the 'new value' field instead of the control itself. However this is not always pos
sible (e.g. numeric 3 and 4) and therefore is not a general solution for the problem.

Am I doing something wrong here, is this a bug or is this expected behaviour?

Any help is very much appreciated.
0 Kudos
Message 1 of 2
(2,661 Views)
Hi Dimitri,

This is indeed a bug that has been fixed in LabVIEW 7.1.

Say you have a parent VI that uses VI scripting to obtain the Connector Pane reference of a child VI that is running inside the parent as a subpanel. Using the conector pane ref, it sets a control in the child VI using the Value(Signal) property. The child VI has an event that handles when the Control's value changes. The control is inside the event and it receives its new value from the parent VI. However, if the control is wired to an indicator, the indicator doesn't get the new value. If I run this, the indicator will end up getting the OLD value of the control. I can see this problem in LV 7.0 and 7.0f1. The problem is gone in LV 7.1 because I just tried it, and it worked fine.

Regards
.

Joris Vanderschrick
NI Belgium
0 Kudos
Message 2 of 2
(2,661 Views)