07-12-2024 04:01 PM
Hello, I want to write a LabVIEW program that uses while loop and a case structure to flash the light for 3 seconds for only the first iteration of the while loop (i=0), and for other iterations (i>0) flash the other light continuously until I stop the program. I am new to LabView and I don't know how to use feedback node and shift register yet. Can you help me with the code?
07-12-2024 05:16 PM - edited 07-12-2024 05:17 PM
I'm not entirely sure I understand your requirements. But you can "flash" an LED indicator with the blinking property node.
07-12-2024 06:09 PM
Thanks for your help. This is what I did and it worked for me. I didn't have to use a feedback node or the shift register.
07-13-2024 01:09 AM
@Likusha wrote:
Thanks for your help. This is what I did and it worked for me. I didn't have to use a feedback node or the shift register.
This is still poor. We also cannot see most of your code (e.g what's in the other case or outside the cropped area.
You also need to define what you mean by "flash for 3 seconds. Blink n times over 3 seconds? Have it True for 3 seconds? Something else?)
Your indicator belongs outside the case structure. There should never be long waits, etc. all you probably need is a proper state machine that changes state based on elapsed time.
Please attach your VI and we'll fix it.