05-30-2021 10:47 AM
Hi,
I have some ideas for the games by using LEDs.
I would like to control them based on their locations like [x;y]. I have tried to use an array to control a specific LED easily but it didn't work.
Does anyone know how to do that? Do you have any other suggestions?
Solved! Go to Solution.
05-30-2021 11:27 AM
Store the array in a Shift Register. You can then use Replace Array Subset to update a specific LED.
05-30-2021 11:36 AM
05-30-2021 02:17 PM
@longnhan252 wrote:
I have tried to use an array to control a specific LED easily but it didn't work.
An array is just a data structure and does not control anything. We can only help you if you show us what you tried. A picture of a 2D Boolean array is not useful, we don't even know if it is a control or indicator.
@longnhan252 wrote:Does anyone know how to do that? Do you have any other suggestions?
Once you define what you are trying to do, we will be willing to help. Define "control them". What does the user do what what you be displayed during play? You show 64 LEDs. Is only one lit an any give time or more? What makes one turn on or off?
Feel free to attach your code attempt.
05-30-2021 08:50 PM
Last time I have made a snake game by using matrix led and Arduino. I just want to make it again on LabVIEW. So I can't use the array on this idea, right? Is there any way I can try?
05-31-2021 12:53 AM - edited 05-31-2021 12:55 AM
@longnhan252 wrote:
Is there any way I can try?
There are many, many ways you can try. I would start with the learning resources on top of the forum.
Of course you can use a 2D boolean array!
06-02-2021 03:12 AM
Hi....In the event that you Write a variety of ones and zeroes to the Array of Boolean Indicators, the qualities will mirror the 1 and 0 of the source exhibit.
The source can be the aftereffect of some interaction, a steady positioned on the Block Diagram, or a Control put on the Front Panel UI. The Write work is refined by the utilization of a wire joined from the source symbol to the sinking symbol of the marker exhibit.
On the Block Diagram you will see a Constant, Control or other interaction Source wired to the symbol of an Indicator that is a variety of like measurement and type to the source.
Maybe you should shows us and illustration of your own work so we can appropriately resolve the particular issue you are having as opposed to driving us to be general and vague in noting your solicitation.
06-02-2021 03:19 PM
@JethTran wrote:
Hi....In the event that you Write a variety of ones and zeroes to the Array of Boolean Indicators, the qualities will mirror the 1 and 0 of the source exhibit.
The source can be the aftereffect of some interaction, a steady positioned on the Block Diagram, or a Control put on the Front Panel UI. The Write work is refined by the utilization of a wire joined from the source symbol to the sinking symbol of the marker exhibit.
On the Block Diagram you will see a Constant, Control or other interaction Source wired to the symbol of an Indicator that is a variety of like measurement and type to the source.
Maybe you should shows us and illustration of your own work so we can appropriately resolve the particular issue you are having as opposed to driving us to be general and vague in noting your solicitation.
So none of this makes any sense whatsoever! What kind of translation software did you use?