LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update from a Reference

Solved!
Go to solution

I have a Heisenbug (a bug that disappears when you look closely at it).

 

I use a text control user input. Somewhere else in the program I use a reference to the control get the value. When I use it in a loop, I cannot get the Value property to populate a text indicator. When I put a debug probe on it it works fine.

 

I am guessing that it has something to do with the logic that updates Windows widgets. The code that updates the debug probe also forces the correct behavior in the program. How can I force this update to occur without the debug probe?

 

 

--

Brian Rose
0 Kudos
Message 1 of 3
(2,137 Views)
Solution
Accepted by topic author Mister_Rose

 

I found that if I used the Text.Text property, it worked as expected. I am guessing that the Value property does not get updated until the input is finished (Enter key or when the focus is changed).

--

Brian Rose
0 Kudos
Message 2 of 3
(2,110 Views)

I don't see a problem - it works just as I would expect (LV 2010, Win Vista).

 

Perhaps your expectations are not correct.

 

I am guessing that the Value property does not get updated until the input is finished (Enter key or when the focus is changed).

 

That is normal behavior, and usually what you want.  If you want to update the value while typing, then set the UPDATE VALUE WHILE TYPING property of the control.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 3
(2,104 Views)