I am using Arduino DUE to stream the status of an input port (32-bit value 4*8 bit buffer) the data rate is 1.79 MB/sec(sampling, storing and transmitting every 10 ms (sampling rate 1us)). I am using Arduino DUE's Serial.USB to stream the data to the computer. I am acquiring the data in software by LabVIEW. Now, after running for approximately 40~50 second the data transmission just freezes. after that, if I reset the Arduino it works fine. I think it's some kind of buffer overflow in the USB function (USB buffer).
The function I am using - SerialUSB.write((uint8_t*)realV,512);
now I have tried SerialUSB.flash() but still, it freezes after 30~50 second.
It would be really helpful if somebody can help.