Hi
I am using Arduino Due. Maybe my question be unrelated or not an Arduino question....
Consider two cases:
1- Using UART port: When using UART port to send data to PC (Using Serial object in Arduino code), the data I sent from Arduino can be seen on the Serial Monitor.
When I want to use MATLAB to receive the data, I use serial('COMx') command in MATLAB to connect to the serial port, and exactly see the same data which is appeared on Serial Monitor (At this time, the Serial Monitor should be closed, or the MATLAB does not recognize the serial port.)
2- Using Native USB port: When using USB port to send data to PC (Using SerialUSB object in Arduino code), the data I sent from Arduino can be seen on the Serial Monitor.
But, in this case, I am not able to see the data on MATLAB. I test various settings and search through the forums and MATLAB website and found nothing to solve the problem.
My questions is clearly as follows:
1- Is there a simple way to send the data on Serial Monitor to MATLAB in real time?
2- If no, what is the way to see the data sent from Arduino (using SerialUSB object) in MATLAB?
Thanks in advance.