Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

LED's like the light of the Knight Rider car

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
0 Kudos
Message 1 of 4
(6,420 Views)
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?Smiley Very Happy
Tom W
National Instruments
0 Kudos
Message 2 of 4
(6,393 Views)

thanks Tom W and all other people for the help, now my problem is solved

greetings zäpfle

0 Kudos
Message 3 of 4
(6,371 Views)

For solutions, see the other thread:

http://forums.ni.com/ni/board/message?board.id=170&message.id=262675

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 4 of 4
(6,363 Views)