LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Xcontrol bug with reinitialize to default value

If you right click and select reinitialize to default value on a xcontrol. The data change event will not be fired with in the xcontrol. A value change event will be fired from the xcontrol though.

Attached is an example. The xcontrol is basically a numeric with a counter for data change events.

In the example vi is a numeric that changes the value(signal) of the xcontrol. And another numeric that changes whenever the xcontrol has a value change event. It works as expected unless you reinit to default, which doesn't change the display of the xcontrol (because it doesn't fire a data change event), but does change the numeric that reflects value change events.

Matt W


0 Kudos
Message 1 of 2
(2,506 Views)
Hello Matt,
 
This was reported to R&D (# 4GPD8CUD) for further investigation.  It looks like the data is being reinitialized, but then the control is not receiving the event to update what the data is in the control.  I have tried to look for a way of changing this behavior, but I cannot find an event that would update the control like it should be updated.  I thought there might be a different event for the reinitialization, but I couldn't find one.  I have made a report on this for R&D to look into more closely. 
 
Brian Coalson
Applications Engineering
National Instruments
Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,482 Views)