ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED Lauflicht

Hallo zusammen,
ich wollte ein LED Lauflicht programmieren mit z.B. 6 LED's (am liebsten Anzahl individuell einstellbar). Die LED's sollten hin und her laufen (vergleichbar mit dem Knight Rider Auto von David H.). Ich probierte es mit Schleifen, Sequenzen, Arrays, JK Flip Flop, Takten usw. aber leider ist keine zufriedenstellende Lösung herausgekommen.
Hat irgendjemand schon mal das gleich Problem gehabt und eine Lösung gefunden?
Gebt mir doch bitte Hilfestellung?
Vielen dank
Gruß
 
0 Kudos
Message 1 of 18
(7,890 Views)
Hello,

Something like this?

Regards,

André
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 18
(7,877 Views)
ich hatte vergessen zu erwähnen, dass ich noch mit LV7.0 arbeite, deshalb kan ich es leider nicht öffnen
0 Kudos
Message 3 of 18
(7,876 Views)
Hello,

Is there someone who can easily save the VI back to version 7?

I use a small state-machine with four states. Fill L-R, Empty L-R, Fill R-L and Empty R-L.
For the value I used a 8-bit Uint and the right and left shift functions in the data manipulation palette.

For presentation purposes I converted the U8 to an array of bools.

Regards,

André
Regards,
André (CLA, CLED)
0 Kudos
Message 4 of 18
(7,874 Views)
Here is 7.0

Andrey.
0 Kudos
Message 5 of 18
(7,868 Views)
it works, but I want it different:
 
only one LED should go through the LED field (left to right and right to left)
0 Kudos
Message 6 of 18
(7,863 Views)
Hi zäpfle,

it's a pretty straight-forward solution... Smiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 18
(7,856 Views)

I'm impressed, it is original that what I want and the diagramm looks so easy, I think I thought to complex

thank you very much

0 Kudos
Message 8 of 18
(7,852 Views)
Hello,

Sometimes you have to do some thinking of yourself when someone hands you something close to what you want.

Regards,

André
Regards,
André (CLA, CLED)
0 Kudos
Message 9 of 18
(7,843 Views)
Hi zäpfle,

one more solution using simple math instead of case structures and SRs...

P.S.: Wohnst du da wo man in der Kneipe nicht mehr rauchen darf?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 18
(7,829 Views)