LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure LED array

Solved!
Go to solution

Good afternoon Labview community support,

 

  Trying to configure LED array to display 6 LEDs in ring or circular pattern every time position is changed? Please advise at your earliest convenience. 

0 Kudos
Message 1 of 13
(1,442 Views)

Your description of what you want to do is unclear.  Please "Save for previous version" of your VI.  It might also help to take pencil and paper and draw a diagram of what you envision.  Are the "LEDs" Boolean indicators on a Front Panel?  What does it mean to display "in a ring or circular pattern"?  Sometimes a Picture is worth at least 512 words ...

 

Bob Schor

0 Kudos
Message 2 of 13
(1,433 Views)

Please refer to attachment for better description. 

0 Kudos
Message 3 of 13
(1,428 Views)

Unless you want the LEDs in a row or column (1D array) or rectangular grid (2D array), you need to use a cluster instead. You can keep it as array on the diagram and use  array to cluster for display.

0 Kudos
Message 4 of 13
(1,400 Views)

Are the LEDs meant to be "real LEDs on a circuit board that you are turning on with some type of hardware", or are they LabVIEW Boolean Indicators (of which there are two, the Round and the Square LED)?  Your picture shows rectangular LEDs oriented as though they were sides of a hexagon, so at angles of multiples of 60 degrees -- LabVIEW (at least up to LabVIEW 2021) doesn't have such indicators.

 

But if you have an array of 6 Boolean indictors, surely you know how to turn them on, one at a time, say half-second on for LED 1, then half-second on for LED 2, ... then for LED 6, then for LED 1 ... until you push the Stop button, right?  (If the answer to this question is "No", learn about For loops and study the functions in the top row of the Block Diagram "Timing" Palette.

 

Bob Schor

0 Kudos
Message 5 of 13
(1,393 Views)

@altenbach wrote:

 You can keep it as array on the diagram and use  array to cluster for display.


Here's is an old example for that. Make sure to order the cluster elements as desired and adjust the cluster size for "array to cluster". I assume you know how to do that.

 

 

altenbach_0-1588530045300.png

Alternatively, you could use a 2D picture display and some backend code. to do whatever you think you need.

 

0 Kudos
Message 6 of 13
(1,392 Views)

I dont trying to figure it out now. 

0 Kudos
Message 7 of 13
(1,386 Views)

To get better help, save your VI for previous (2020 or below) before attaching. Many can't look at your earlier VI.

0 Kudos
Message 8 of 13
(1,364 Views)

VI version 19, let me know if you can view VI. 

0 Kudos
Message 9 of 13
(1,340 Views)
Solution
Accepted by topic author Manny904

OK, I recognize that code. As I said, just create a cluster of LEDs. A cluster also has the advantage that each LED can be different (color,label, boolean text, etc.).

 

altenbach_0-1686868137891.png

 

0 Kudos
Message 10 of 13
(1,285 Views)