LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

What amount of data can be received by Arduino UNO R3 with USB?

I'm using arduino with the SPI protocol, and in my VI I use a Wait Until next ms Multiple for control a "for loop" then I'm sending data in ranges form 0 ms to 250 ms, but when I send whit 0 milliseconds the Arduino collapses...

I'm trying to drive a LED Matrix 8x8 with shift register 74HC595 and SPI. How You know we need to use a low range of time (0 ms - 10 ms) for multiplexing the LEDs...

Thank you!

0 Kudos
Message 1 of 4
(4,949 Views)

Hey abraham.sanchez,

Are you using the LabIVEW Interface for Arduino or just communicating between LabVIEW and the arduino using VISA (serial)?

Depending on the version of the Arduino API you are using the serial buffer is typically 64 bytes.  If you write too fast from LabIVEW you'll overflow the buffer.

You should not be able to overflow the serial buffer of the Arduino if you are using LIFA (unless there is a bug )

-Sam K

LIFA Developer

Message 2 of 4
(3,489 Views)

Yes, I'm using LIFA, let me explain the problem...

VI.png

As you can see in the picture, I'm sending values by SPI to the arduino, this values are from the matrix rows and columns for turn ON and OFF the LEDs from a Real Matrix. I want to accomplish the Multiplexing effect for this reason I put the Arduino SPI Send Receive Node inside a for loop, and this also inside a while loop for repeat the pattern. For accomplish the multiplexing we need to seewp the LED Matrix so fast to create de Persistence of Vision,for this reason I put the dial in the front panel... but when the VI is running and the POV is accomplished and the Dial is in 1, the Arduino collapses after 5 seconds if you want you could see how it fuks...

http://www.youtube.com/watch?v=ui7kxHsgOFY

Thank you!

0 Kudos
Message 3 of 4
(3,489 Views)

Hey Abraham,

Cool project!

Can you enable shift registers on the error wires for your for loop and while loop. Can you describe what happens when you say the Arrduino collapses? Is an error generated?

Thanks!

-Sam K

0 Kudos
Message 4 of 4
(3,489 Views)