フィルターのクリア

Not sure if sending serial data

4 ビュー (過去 30 日間)
Conner Carriere
Conner Carriere 2021 年 3 月 1 日
回答済み: Sindhu Karri 2021 年 3 月 5 日
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.
clc
clear s
s = serialport("COM4",115200);
text = extractFileText("transition.txt");
write(s,text,"string");
Is there way that I can check to see if the arduino is actually getting the string?

採用された回答

Sindhu Karri
Sindhu Karri 2021 年 3 月 5 日
Hii,
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.

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by