LabVIEW

cancel
Showing results forĀ
Did you mean:Ā

5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

Hi everyone, I am new user for LabView. May I know how to make 5 LEDs are circulating one by one at 1 sec interval.( In LabView VI). Thanks.

Message 1 of 12
(686 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

I only have a Rube-Goldberg-Machine for this problem. It may work for you or not ...

Joke apart:

It looks like an educational exercise and you should solve it by yourself. If you get stuck, then post your VI and we can help you with the next step.

Message 2 of 12
(650 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

There is actually an example of this in the actor framework project template! Take a look at the "launcher.vi" after loading the template

----------------------------------------------------
Studying for CLA.
LabVIEW, inherit from social media habits!
Message 3 of 12
(640 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

Your problem is much simpler than the problem solved here  (fewer LEDs, no random skipping, etc.). I am sure you can simplify it accordingly. Done correctly, the code will be trivial and fit on a postage stamp.

Message 4 of 12
(616 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

@Martin_Henz wrote:

I only have a Rube-Goldberg-Machine for this problem. It may work for you or not ...

Fantastic code and really funny in the details!. Definitely belongs into the Rube Goldberg thread. š

Message 5 of 12
(613 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

@davidterry wrote:

Hi everyone, I am new user for LabView. May I know how to make 5 LEDs are circulating one by one at 1 sec interval.( In LabView VI). Thanks.

When you say "circulating", do you mean that the LEDs are arranged in a circle? (Thus my reply above).

If they are arranged linear, use an array of LEDs (have a look here). Of course there are many equally simple alternatives to solve this.

As an exercise, see if you can recreate the following code:

Message 6 of 12
(610 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

may i ask the what is the name of this tool? Thanks

Message 7 of 12
(548 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

Hi David,

its a function to manipulate arrays, so it can be found in the array functions palette!

Hint: it does not insert, but replaceā¦

Best regards,
GerdW

using LV2016/2019/2020 on Win8.1/10+cRIO
Message 8 of 12
(542 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

another option would be to start with a boolean array constant (where one is true) and simply "rotate" the 1D array each iteration of your while loop.

Message 9 of 12
(530 Views)

Re: 5 LEDs are circulating one by one at 1 sec interval.( LabView VI)

I Heard good things about the Rotate function and number to boolean Array.