Go to Post As Murphy as my witness, things happen and will continue to happen. - Pavan Dave [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 22-08-2011, 10:54
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,880
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming Blinking LEDs?

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.
  1. 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.
  2. 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.
  3. 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.
Attached Thumbnails
Click image for larger version

Name:	AlternateTwoRelays.jpg
Views:	55
Size:	62.5 KB
ID:	10893  Click image for larger version

Name:	AlternateOneRelay.jpg
Views:	42
Size:	25.6 KB
ID:	10894  Click image for larger version

Name:	AlternateTwoOnOneRelay.jpg
Views:	39
Size:	33.9 KB
ID:	10895  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-08-2011 at 13:14.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi