04-20-2015 03:21 PM
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 🙂
04-20-2015 03:41 PM
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?
04-20-2015 08:05 PM
04-21-2015 03:24 AM - edited 04-21-2015 03:28 AM
beacuse i dont know how to choose from array only second row etc. I should light diods with buttons and buttons should be combinated.
04-21-2015 05:29 AM
Here's an example to set the value of one element at a time.
A small change and you can set entire rows. You just need to figure the logic for the specific permutations you've been assigned.
04-21-2015 08:05 AM
Wow, OP doesn't even have to do any work, and he gets a VI.
04-21-2015 08:32 AM
@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.
04-21-2015 08:59 AM
oh yes one more thing, if there is an even number of columns or rows, there will be no "middle" led.
Mike...
04-21-2015 09:07 AM
@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.
04-21-2015 11:05 AM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord