08-10-2021 05:00 AM
Hi there,
This appears to be a very basic question but just can't wrap my head around the solution.
The attached code should stop the program upon seeing "Escape" on the keyboard.
It sees that the keyboard is pressed and the "Esc Pressed?" indicator is ON.
However, the Event structure does not acknowledge a Change in Value of "Esc Pressed?". I believe this is because the indicator array size is nulled when nothing is pressed as opposed to being 0.
Is there a way to overcome this issue? Note, I don't want to use Case structures for this.
Solved! Go to Solution.
08-10-2021 05:20 AM - edited 08-10-2021 05:22 AM
Hi Duffy,
@SDuffyLV wrote:
However, the Event structure does not acknowledge a Change in Value of "Esc Pressed?". I believe this is because the indicator array size is nulled when nothing is pressed as opposed to being 0.
Learn the basics of events in LabVIEW!
Writing to a terminal of an indicator DOES NOT generate a ValueChange event!
Why don't you simplify your VI like this: