ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

取消
显示结果 
搜索替代 
您的意思是: 

led

Hello to all,
I would like to ask you to solve a problem.
In my code I have an LED that turns red or green depending on whether the information is correct or wrong. I want that when the LED turns red stays red forever (like to report a problem) although subsequent iterations do not give problems (and the LED would return to green).
How can I do?
Thanks

0 项奖励
1 条消息(共 7 条)
4,034 次查看

Shift Registers may solve your problem.

 

Regards,

Mondoni
0 项奖励
2 条消息(共 7 条)
4,025 次查看

Hello.
I have tried using the Shift Register but I can not get the desired result.
Can you tell me how to wire the shift register to the LED "Error"?
Thanks

I enclose a picture of the piece of my code

0 项奖励
3 条消息(共 7 条)
3,979 次查看

Just add an OR into it.

0 项奖励
4 条消息(共 7 条)
3,937 次查看

I'm sorry I did not understand.
Where to add an OR? And what should I wire it?

0 项奖励
5 条消息(共 7 条)
3,920 次查看
Insert it into the feedback loop! One input goes to the write that is setting the condition and the other input goes to the shift register on the left side. The output goes to your Boolean indicator. Understand how that wil latch the output of the OR to true?
6 条消息(共 7 条)
3,911 次查看
p.s. Don't forget to initialize the shift register to false.
7 条消息(共 7 条)
3,903 次查看