LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid default value of control

I am running LV 6.1 and one of My sub-vis has strange behavior: The input cluster control returns to defualt value during execution. I am not able to keep it with another value.
CHCastro
0 Kudos
Message 1 of 3
(2,826 Views)
LV want data to execute a sub-VI.

To satisfy this need, it will fill in the default value any time a control that is wired to the icon connect does not have anything wired to it.

You can over-ride the default by wiring to the connector where sub-VI is called.

There other variations on this theme, but this is the answer to your query as posted.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,826 Views)
What controls are in your cluster?
If you have buttons, check the mechanical action: latch when pressed or latch when released will return to the default position after the control is read. Switch when released (or pressed) won't return to default. Right-click on the button control and select Mechanical action.
If you're using numerics, check the data range and the action if value is out of range: if your range is too small and the control is set to Coerce when out of range, you could see the default value instead of the value you entered. Right-click on the numeric control and select Data range.
If this doesn't help, post your vi.
0 Kudos
Message 3 of 3
(2,826 Views)