Reading same data that I write on serial Device. Is i normal ?

1 Ansicht (letzte 30 Tage)
Antoine Belin
Antoine Belin am 16 Mai 2019
I'm trying to communicate with a telescope mount with a serial communication.
Sending the command 'E', the device should respond with its current coordinates.
My very simple code:
clear all;
Mount = serial('COM10');
fopen(Mount);
fprintf(Mount,'E');
out=fscanf(Mount)
fclose(Mount)
I get this ouput: 'E
'
Did i wrote something wrong ?

Antworten (0)

Kategorien

Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by