04-05-2007 07:07 PM
04-06-2007 11:54 AM
Hey Argon,
I like the example vi - very well done. You've got a few options for the output. First off, what DAQ card do you have controlling the Elvis? If you have an M Series card, you can do clocked (fast HW timed) digital output on your 8 DI lines. This would open up a few options. You could generate a waveform that pulsed your LEDs very quicky and have it scroll across. You would have to map out the letters to the correct DO lines, but it looks like you have a good handle on that.
If you dont have an M series card, you're going to have to use SW timed writes. It will be slower and instead of using a digital waveform, you'll have to write one output at a time. You can write to the whole port to ensure that the whole 8 bits are correctly generated.
As far as using the 5x8 matrix, ideally you would have 13 DO's - do you have a break out box other than the Elvis? Most of our cards have more that 8 DIO lines, if you can get a break out box you can use all of the DIO of your card. If that's not an option, your work around with the encoder is going to be the best option - you may look into adding a few caps or flip flops to extend the duration of the LED's being on.
Cheers,
Andrew S
National Instruments
04-09-2007 03:43 AM
04-10-2007 09:59 AM
Hi Argon,
Have you tried using a pull down resistor? If you supply a resistor to ground from the cathode along with the DO from the decoder, then when the row input is high and the column input is high then there will be no differential and no current will flow. When the row is high and the column is low, then current will flow across the LED and through the pull down resistor. You may have to play around with resistors to find one that works (I'd start with 10k, maybe less).
Cheers,
Andrew S
04-10-2007 03:37 PM