Not sure if sending serial data
2 views (last 30 days)
I am trying to send serial data to my arduino, I am not sure if it is receiving it. This is what my code looks like.
s = serialport("COM4",115200);
text = extractFileText("transition.txt");
Is there way that I can check to see if the arduino is actually getting the string?
Sindhu Karri on 5 Mar 2021
You can use writeline and readline functions write and read back from aurdino.Alternatively,you can use readDigitalPin and writeDigitalPin functions to check if serial communication is established between aurdino and MATLAB.Refer to below links for further information.