03-25-2017 08:58 AM
03-25-2017 09:41 AM
03-25-2017 09:49 AM - edited 03-25-2017 09:51 AM
(And please attach the actual VI. Pictures are pretty useless)
03-25-2017 09:58 AM - edited 03-25-2017 10:05 AM
Here's a triangle. Good enough? (Note that you can even simplify it (bottom), but it is typically recommended to initialize the final size and operate on a fixed size array (top).
(There are many ways to do this. I am also intentionally only attaching a picture because I don't know your LabVIEW version and recreating the code by yourself is a good beginner exercise :D)
03-25-2017 10:49 AM
IN 5*5 leds array and up to diagonal
03-25-2017 10:51 AM
Thaaank you very much
03-25-2017 11:18 AM
@Nare wrote:
IN 5*5 leds array and up to diagonal
When asking question, make sure to give all requirements. For example we also don't know if the diagonal should be included or excluded.
In this case, just change the numeric diagram constant to five.
03-25-2017 11:34 AM
Oh yes you are right, however thank you
03-25-2017 01:23 PM
Sorry, Can you say me How can I write this code,how can I write this letter, please
03-25-2017 01:55 PM
@Nare wrote:
Sorry, Can you say me How can I write this code,how can I write this letter, please
Well, start with the 2D boolean array initialized with all FALSE, then replace some with true using "replace array subset" given the indices.
You could also just turn the array into a control and change the values manually.