07-03-2018 11:50 AM
Hello,
I am running LabView 2018 (32-bit) on Windows 10 64-bit. The problem I am experiencing is that when I change value of the string in the following example:
https://forums.ni.com/t5/Example-Program-Drafts/Event-Structures-Basics/ta-p/3536272
the event structure case is not triggered immediately. When I change an active window though, the boolean indicator lights up. I have experienced problems with event structures in other cases too.
Kind regards,
MN
Solved! Go to Solution.
07-03-2018 11:57 AM
Well, there are four sets of examples there (from pretty old versions of LabVIEW!), so I'm not 100% sure I know which code is giving you problems. However, you did mention changing a String -- the change isn't ordinarily noticed until you register the change by leaving the String Control (say, clicking somewhere else). Otherwise, LabVIEW just thinks (logically) that you are "editing" the String, but haven't yet settled on its new Value.
Bob Schor
07-03-2018 12:01 PM
Make sure the string is set to "update value while typing". (right-click...)
07-03-2018 12:02 PM
Also if you want the value to update while you are typing, check the "Update Value while Typing" property of the string control. Most of the time, this property is not necessary. It's good for converting capital to lowercase (or vice versa) as the user is typing.
07-03-2018 12:11 PM
Hi Bob,
I run 'Event Structures (Basics) (after) lv09.vi 12 KB'. I enter a new string and press 'Enter'. There is no response from the programme.
Ultimately, I want a trigger an event upon clicking 'OK button' in the project attached (VI: RT trial). But it seems again not to register the event.
Kind regards,
MN
07-03-2018 12:27 PM
"Enter" is just another key (it often gets represented as two characters, <CR><LF>. For all the Control knows, you plan to write the Gettysburg Address (and need multiple lines of text). As others have noted, there are ways to register changes as you enter Strings. But your basic problem is that you haven't told LabVIEW that you are finished inputting your String. Try clicking another Control ...
Bob Schor
07-03-2018 12:30 PM
I think I read somewhere that if you set the string control for "single line" the enter key will cause a value change event.
07-03-2018 12:33 PM
Hi Bob,
Thanks for that. Now I get it.
Kind regards,
MN