Here are some variations to alternate Relays between on and off.
There are further variations that turn everything on at once and everything off.
These loops would go only in Periodic Tasks.vi.
- The first alternates between two cases and you can control the times of the blinks independently by passing in the delay time if you want.
- The second is another way to do the same thing without a Case statement. It only does one Relay, but you can add as many more as you want.
- The third wires two sets of LEDs to a single Relay and alternates between them
Relays only work while the robot is Enabled.
If you want them to blink while disabled, then you'd need a custom circuit that does the blinking for you as long as it gets power.