LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Change number of bytes COMMANDLENGTH 15

I need to change the number of bytes to send a Arduino to 85bytes, then I change the definition #define COMMANDLENGTH  to 85:

#define COMMANDLENGTH 85

In LabView I change too the number of bytes to 85, but I have a Error 5002 in the Init.vi routine....

It's not possible to send more than 15 bytes although I change the COMMANDLENGTH  to this new size in LabVIEWInterface.h and in Init.vi?

Thanks,

Jose

0 Kudos
Message 1 of 3
(5,337 Views)

You cannot transmit more than the memory allocated for the serial buffer.  One post that I found said that it was 64 bytes.  You either need to break the data up into smaller chunks using custom functions and then handling them with custom functions in the LIFA firmware.

0 Kudos
Message 2 of 3
(2,798 Views)

Last I checked the serial buffer was 128 bytes, but that might be Arduino version and board type dependent (not sure).  Try someting larget than 15 but smaller than 85 and see what happens.

-Sam K

LIFA Developer

0 Kudos
Message 3 of 3
(2,798 Views)