Effacer les filtres
Effacer les filtres

Matlab display wrong received data

1 vue (au cours des 30 derniers jours)
ismael saad
ismael saad le 9 Juil 2014
Modifié(e) : ismael saad le 10 Juil 2014
Hello,
I work with a PIC microchip connected to the serial COM port of my computer to send and receive data to and from the microchip PIC.
When I work with the command windows of Matlab these commands are not working well specially "out = fscanf(s)" when i was sent from micro-controller for example "hello" i received "¥™û" on matlab, also when i sent from Matlab "fprintf(s,'Ff')" i got "9u" on micro-controller : s= serial('COM3','BaudRate',9600,'DataBits',8,'terminator',17); fopen(s); fprintf(s,'F') out = fscanf(s) fclose(s); delete(s); clear s; Is there anybody out there who met such a problem ... and solve it ?

Réponses (1)

Michael scheinfeild
Michael scheinfeild le 9 Juil 2014
i havent done so but maybe its big little endian issue ? , i hope it helps

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by