LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting text to rolling "LED-style" matrix

Hi,

 

I have a linear array (1x16) of laser diodes which I'd like to be able to write text with (by illuminating a moving substrate with them). I have written straightforward labVIEW code to switch the elements on and off, but it is not trivial to obtain sequential patterns as the diodes are controlled by a shift register (much in the same way as ink-jet printers). Does anyone have any idea of how to convert a word or line of text to the appropriate code to save me "hard-wiring" it every time?

 

Many thanks in anticipation!

Craig.

0 Kudos
Message 1 of 6
(4,242 Views)

Hi Craig,

you can create a buffer for all characters. With this buffer you can go through your text, load the stored matrix and show it line by line.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 6
(4,233 Views)
There's a Scrolling LED XControl that may provide some insight into what you're trying to do.
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 3 of 6
(4,211 Views)

Mike,

 

Thanks for the reply. How do I create a buffer for characters? How do I convert a text chracter to a matrix? I only seem to be able to "convert string to unsigned byte", which gives a unique 8-bit number for each letter. But there's obviously no correlation between these numbers and the way the letter appears.

 

thanks,

Craig.

0 Kudos
Message 4 of 6
(4,194 Views)

Hi Craig,

your buffer should be a boolean array like in the xControl example. Depending on the current character you load the according boolean array and show it line by line.

See the attached example please.

 

Hope it helps.

Mike

Message 5 of 6
(4,186 Views)

Thanks Mike, I'll give it a go!

Craig.

0 Kudos
Message 6 of 6
(4,150 Views)