LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure Action Deffered (LabView 2018)

Solved!
Go to solution

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

0 Kudos
Message 1 of 8
(2,957 Views)

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

0 Kudos
Message 2 of 8
(2,952 Views)

Make sure the string is set to "update value while typing". (right-click...)

0 Kudos
Message 3 of 8
(2,945 Views)

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. 

aputman
0 Kudos
Message 4 of 8
(2,941 Views)

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

0 Kudos
Message 5 of 8
(2,939 Views)
Solution
Accepted by topic author maciej.n

"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

0 Kudos
Message 6 of 8
(2,916 Views)

I think I read somewhere that if you set the string control for "single line" the enter key will cause a value change event.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 8
(2,912 Views)

Hi Bob,

 

Thanks for that. Now I get it.

 

Kind regards,

MN

0 Kudos
Message 8 of 8
(2,909 Views)