Discussion:
LED's like the light of the Knight Rider car
(too old to reply)
zäpfle
2007-08-01 10:40:06 UTC
Permalink
Hello,
I looking for a solution:
I tried to program 6 (or more, it sould be flexible) LED's and this LED's should goes on / off like the light of the Knight Rider car. I tried this with loops, shift register, sequence, arrays, jk flip flop and a lot of other things, but I couldn't find a good woorking solution.
Do anybody have the same problem an give me help?
thanks and greetings Peter
 
I work with LV7.0
Tom W [DE]
2007-08-01 19:40:13 UTC
Permalink
Hi Peter-
 
Here's a quick method I came up with.  It adjusts to the Representation width of the shift register initialization constant (i.e. the left-most '1' on this diagram).  So, it will work for u8, u16, and u32.
 
To use this with DAQ you probably just want to use the DigitalOutput>MultipleChannel>SingleSample>1D array of bool instance of the DAQmx Write VI.  You'll need to specify a line grouping of "One Channel For Each Line" on the DAQmx Create Channel VI.
 
I'm sure this could be done in a more optimized way- does anybody else want to give it a shot?:smileyvery-happy:


knightRider.vi:
http://forums.ni.com/attachments/ni/70/7254/1/knightRider.vi
AnalogKid2DigitalMan
2007-08-02 15:40:12 UTC
Permalink
For solutions, see the other thread:
<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=262675" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=262675</a>
Continue reading on narkive:
Loading...