LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running LED in FPGA

Solved!
Go to solution

Hi, in the attachment you will find a VI that can create multiple running LEDs across 20 spaces. The user can increase the numer of running LEDs, i.e. the distance between the running LEDs and the duration they are lit up. That works fine.

 

My Boss wants me to programme the same "thing" in FPGA in LabView! I have no idea what exactly the difference would be to my programme at the moment. Can anyone help me?!

0 Kudos
Message 1 of 9
(4,744 Views)

Hello Thorsten!

I think before we talk about implementing your code on the FPGA we should try to simplify the algorithm. Just having a quick look, there is much potential for improvement.

Please tell us how exactly the LEDs are supposed to light up. So we can figure out the best solution. As soon as we have done that, it should be fairly easy to implement

the algorithm on an FPGA.

 

Regards,

  Georg

0 Kudos
Message 2 of 9
(4,700 Views)

Hi Georg,

 

today I ran my LabView VI as it is, to show you how I want the algorithm to work. I uploaded it to Youtube, so you can have a look:

 

https://www.youtube.com/watch?v=Pb3lqfeb_Yw

 

In the description area I explained it shortly. I struggled to find an algorithm that is simple, thats why I guess my algorithm looks a bit clustered! Smiley Frustrated

Maybe you can give me a tip on how I can aproach the algorithm differently?

 

Thank you! Regards, Thorsten

0 Kudos
Message 3 of 9
(4,693 Views)

P.S. After working through several FPGA tutorials, today I managed to create a new Project, that uses the cRIO as a FPGA Target. I also managed to switch the LEDs on and off after compiling the VI. I guess now its all about improving my algorithm for the running LEDs...

0 Kudos
Message 4 of 9
(4,689 Views)
Solution
Accepted by topic author thorsten.zuhaus

Hi Thorsten!

I am glad to hear you were successful in using your cRIO.

I think your algorithm can be greatly simplified by using a simple bitshift function. This would also benefit the implementation on the FPGA since this function will not consume a lot of resources on the FPGA. The VI in the attachment probably does not meet all your requirements and needs some adjustments to run on the FPGA properly, but I think it should give a good idea on how the algorithm works.

 

Regards,

  Georg

Message 5 of 9
(4,642 Views)

Wow! That is alot simpler! 😄 I will try to integrate your solution into my project and report back.

 

Thanks a million! Smiley Happy

0 Kudos
Message 6 of 9
(4,611 Views)

I looked at it one more time.

I think the VI in the attachment comes very close to what you want to implement.

Regards,

  Georg

0 Kudos
Message 7 of 9
(4,600 Views)

Dear All 

greetings 

I want same like this raw of LEDs puted in a stick and by waving the stick and flashing the LEDs to display some words.. is it possible?? and how ? 

please help me . i need it in my master study.. 

by the way i have NI RIO evaluation KIT could i use it to do so ?? 

thanks in advance 

 

yours,

Mustafa 

0 Kudos
Message 8 of 9
(4,449 Views)

Hello George,

 

As my work with these running LEDs continues, I am in need of yet another feature (or two for that matter).

 

1. I want to increase the number of LEDs running "as a group" through the LED array. At the moment I can only run single

light through the array, but would like to run multiple lights next to each other. So the lights travell in groups of two, three or more..

 

2. I would like to change the direktion in which the lights run.

 

Any ideas?

Kind Regards

Thorsten

0 Kudos
Message 9 of 9
(4,367 Views)