06-11-2014 03:04 PM
Hello,
I want to make a simple program that goes like this. I will have 2 numeric controls and 2 comparisons. 1st numeric will compare if the number if less than 50. Second comparison if it's greater that 50. If less than 50, the LED according to that number will blink up and stay on. If the second number is greater than 50 then the LED belonging to that number will blink and stay on. NOW...
If either OR both of these lights turn on, a THIRD light should BLINK off and on automatically. if both the first two lights stay off, then the third should stay off.
I tried to use shift registers and a delay to get the delaying but i'm stuck.
Any help would be great. Thank you !
Thuba25
Solved! Go to Solution.
06-11-2014 03:24 PM - edited 06-11-2014 03:44 PM
FIrst you need to change your code to a real interactive state machine. Your code is inside-out.
Currently the controls are read once at the start of the program and then never again.
See how far you get.... Good luck.
06-11-2014 03:25 PM - edited 06-11-2014 03:26 PM
There is the property Blinking...
06-11-2014 03:32 PM
Thank you for your help! I was wondering, how do you get the property node you were talking about ?
06-11-2014 03:34 PM
@Thuba25 wrote:
Thank you for your help! I was wondering, how do you get the property node you were talking about ?
Right-click on your LED and select Create->Property Node->Blinkning.
06-11-2014 03:42 PM - edited 06-11-2014 03:42 PM
I would actually blink it programmatically instead of with a property node. You have better control over rate and blink color.
Here's a quick draft. Modify as needed.
06-11-2014 03:43 PM
I'm having trouble with this VI. Would you mind posting the one you created? Thank you
06-11-2014 03:45 PM
Which one is "this vi"?
Tim's VI is a snippet. Just download the image and drag it to the block diagram. It will turn into runnable code automagically. 😄