LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event structure using read indicator labview

Solved!
Go to solution

Hi,
I would like to to be able control on LED indicator using event structure.
I'm using with read serial block, and scan string. when it's recognized the string its should change the LED state each time.
Please let me know if it's possible and how can i exec that?
Please find attached VI file.
For example i would like that when the string "Door opened!" will appear its should change the state of the LED.
Thanks for any help,

0 Kudos
Message 1 of 6
(3,648 Views)
Solution
Accepted by topic author doron_str@walla.com

That is not what an Event Structure is used for.  An Event Structure is used for capturing GUI events, like a user presses a button or changes the value of a control.

 

If you just want the value to toggle, use a shift register to hold the current value.  If you detect the right string, toggle it (using the NOT function).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(3,615 Views)

Thanks crossrulz for your reply.
I tried to implement with ashift register like you suggested but with no luck.
Could you please elaborate if i need to use with case block and inside its should be the shift register?
If it's possible could you please provide an example for this?

 

Thanks,

0 Kudos
Message 3 of 6
(3,581 Views)

Post your code so we can help you fix it.  🙂

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 4 of 6
(3,556 Views)

I already fixed that issue following your suggestion using a shift register.
Thanks,Smiley Happy

0 Kudos
Message 5 of 6
(3,528 Views)

Excellent!

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 6 of 6
(3,503 Views)