Hi everybody !
I have to sent a big amount of data on the serial port (from Matlab to Arduino) as fast as possible ( for on live application). In order to do that, I have changed my baudrate. On the oscilloscope, no problem ( even if I send at 1Mbps) : one bit 'lasts' during 1/1000000 second.
Nevertheless, the gap between two bytes sent with matlab is still the same ( around 1 ms).
Do you know how to decrease this time ?
This is an example of the code I use to test :
s=serial('com4','baudrate',9600);
fopen(s);
for i=1:508
fwrite(s,aEnvoyer(i,1));
end
fclose(s);
I have already tried to modify BytesAvailableFcnMode or InputBufferSize, without any success.
Thanks !