06-15-2023 02:29 PM
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.
Solved! Go to Solution.
06-15-2023 02:39 PM
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
06-15-2023 02:48 PM
Please refer to attachment for better description.
06-15-2023 03:11 PM - edited 06-15-2023 03:11 PM
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.
06-15-2023 03:14 PM
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
06-15-2023 03:15 PM
@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.
Alternatively, you could use a 2D picture display and some backend code. to do whatever you think you need.
06-15-2023 03:20 PM
I dont trying to figure it out now.
06-15-2023 03:32 PM
To get better help, save your VI for previous (2020 or below) before attaching. Many can't look at your earlier VI.
06-15-2023 03:35 PM
VI version 19, let me know if you can view VI.
06-15-2023 05:29 PM
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.).