Reading same data that I write on serial Device. Is i normal ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 ?
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!