LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Led Display

Hello, I am new in labview iam learning only 2 weeks. If someone have little time to help i will be realy thankful. I need help with simple led display. Display should have maximum 20columns and 40rows, user should choose the size of display. After run program, leds should be shine sequentially : every second row, every second column, 4 corners leds and middle led.

I wieved all tutorials from NI on youtube i understand basic items but i realy dont know how to create this program.

I will be realy thankful if someone can help me with that.

Sorry for my bad English thats not realy my cup of coffe 🙂

0 Kudos
Message 1 of 15
(4,737 Views)

Well, drop an array container, drop an LED indocator in it, and resize the index for two dimension. Resize the array to show 20 rows and 40 columns.

Initialize a 2D array of booleans with the desired size, then use a loop with a small wait to light certain LEDs based on the state.

 

What is giving you problems?

0 Kudos
Message 2 of 15
(4,732 Views)
First, the term is "tea". "Not my cup of tea." If it were an American term it would probably be coffee -- or something stronger, but it's British, so there you are...

Second, so the idea is that the user will set the size of the array before running the program, and then light up the LEDs in the patterns you identified? This means that you will have to determine the size of the front panel array using property nodes, then generate the binary patterns on the fly -- very tricky of your instructor..

Third, you will need to provide some sort of timing to keep the loop from running too fast.

Fourth, it would probably work well to structure the whole thing as a kind of state machine.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 15
(4,707 Views)

beacuse i dont know how to choose from array only second row etc. I should light diods with buttons and buttons should be combinated.

0 Kudos
Message 4 of 15
(4,678 Views)

Here's an example to set the value of one element at a time.

 

Example_VI.png

 

A small change and you can set entire rows.  You just need to figure the logic for the specific permutations you've been assigned.

Example_VI_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 15
(4,661 Views)

Wow, OP doesn't even have to do any work, and he gets a VI.

0 Kudos
Message 6 of 15
(4,640 Views)

@nyc_(is_out_of_here) wrote:

Wow, OP doesn't even have to do any work, and he gets a VI.


It's nothing close to a solution, but it shows a few things that will be needed in the solution.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 7 of 15
(4,628 Views)

oh yes one more thing, if there is an even number of columns or rows, there will be no "middle" led.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 15
(4,619 Views)

@jcarmody wrote:

@nyc_(is_out_of_here) wrote:

Wow, OP doesn't even have to do any work, and he gets a VI.


It's nothing close to a solution, but it shows a few things that will be needed in the solution.


Maybe so, I would much rather the OP had actually attempted something first.

He didn't and hasn't.

0 Kudos
Message 9 of 15
(4,614 Views)

@nyc_(is_out_of_here) wrote:

Maybe so, I would much rather the OP had actually attempted something first.

He didn't and hasn't.


I agree, but some times you want a mental exercise, and something to get your mind off of what ever thing you just got done.  Going through the forums for a simple task helps me with that.  Hey it's better than browsing Facebook.

0 Kudos
Message 10 of 15
(4,590 Views)