LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[bug?] X-control does not refresh in response to a data change when this is concomitant with a front panel open

Solved!
Go to solution

Situation:
- a master-vi calls a sub-vi
- the front panel of the sub-vi is set to open when the sub-vi is called by the master-vi
- an x-control is programmed to display to different icons (e.g. a left or a right arrow) depending on its value (e.g. +1 or -1)
- both master-vi and sub-vi contain an instance of this x-control
- the value of the x-control is passed from the master-vi to the sub-vi by a wire to the sub-vi terminal connector in the standard way

Issue:
When the sub-vi is called and its front panel opens, the x-control does not refresh. It does not change its aspect (e.g. always shows left arrow) depending on the data value passed to the sub-vi, although the value is correctly passed to the sub-vi.

In order to make it refresh, a value property node must be used in the sub-vi (diagram disactivated).

If the sub-vi front panel is already open when the sub-vi is called the x-control refreshes correctly.

0 Kudos
Message 1 of 2
(2,431 Views)
Solution
Accepted by topic author paoma

Looks like an LV bug.  I can't find a better workaround than what you're doing.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 2
(2,383 Views)