Hi everyone! I am using an Arduino Due board as an interface between a position analyzer and my computer. So far, I have been able to exploit the serial communication to read data from the board and save them in a text file.
- once in the setup() function, Serial.begin(115200) is called
- at some point during the loop(), the board sends data through Serial.print();
- An external program is used to read the virtual serial port (at the moment, I am using these Matlab functions, but any language is fine);
- Data are stored in a text file;
Since the Arduino Due has a native USB port (which should be way way faster than virtual serial communication) is there a way to directly read the data sent via SerialUSB.print() in a similar fashion? That is, is there any code to read the data sent from the Arduino Due to the computer via native USB using the whole USB 2.0 bandwidth? If possible, I would like to see a coding example in C, C++, C#, VBScript or Matlab (last one would be the favourite option) - or a good link where to retrieve information about it.
I need to read as high as ~150 Kbyte and at the moment this needs ~10 seconds to be accomplished with the standard serial communication.
Any clue would be appreciated, Thanks in advance.
Additional information (if needed): * programming software: Arduino IDE 1.6.3 * software I am using to read serial port: Matlab 2015a I have googled it for three days without any good results, so this is why I am asking here ;)