09-05-2014 06:45 AM
Hello,
in a loop a string-control can be changed until the ok-button is clicked. This works.
But the button is also assigned to toggle with the Return-key.
But now the output is not updated any more.
Is there a workaround?
Thx
Solved! Go to Solution.
09-05-2014 06:57 AM
On my machine there is the same behaviour with or without the toggle.
09-05-2014 07:06 AM
Attached my VI that is not working here.
If i stop the loop with key Return then the text s not written
09-05-2014 07:06 AM
Well, you are telling the loop to stop. So you just want the output to update when you press the OK button? But then you also want to keep the VI running? So how are you then stopping your VI?
Use an Event Structure. It will make your life easier (and not burn up your CPU).
09-05-2014 07:07 AM
I can't tell what your goal is with this fast-running loop. If you're waiting for a change to the string you should use an Event structure. If you want to process every change to the String control you can set it to Update Value while Typing. If you just want to restore the edit position in the string after you're done editing it, use a KeyFocus roperty node.
09-05-2014 07:07 AM
Are you running highlight mode?
Norbert
09-05-2014 07:08 AM
@OnlyOne wrote:
Attached my VI that is not working here.
If i stop the loop with key Return then the text s not written
Set the control to Update Value while Typing.
09-05-2014 07:29 AM
Solution is only working with strings.
What can i do with numeric-controls? There is no setting "Update while typing"?
Thx
09-05-2014 07:31 AM
Use an event structure.....
Norbert
09-05-2014 07:38 AM
I did. But it is the same problem. If the focus is on the control then the value is not updating.
It is solved for striing-control but still not working for numerics.
Same problem in the loop or event-structure.