A timeout occurred before the Terminator was reached in matlab serial communication

2 次查看(过去 30 天)
Hello,
I tried to estrablish serial commnunication between two computers using the following command wriiten below but while executing i am getting following error A timeout occurred before the Terminator was reached in matlab serial communication
s = serial('COM1'); set(s,'BaudRate',4800); fopen(s); fprintf(s,'*IDN?') out = fscanf(s); fclose(s) delete(s) clear s
Let me know how to resolve it

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by