serial com RS422, sending hexadeximal coomands
14 views (last 30 days)
Show older comments
Hello,i am trying to communicate with a "reciever" device which is connected as shown in the attached photo(serial-com).
i communicated with the device using PCOM software,as shown in the attached photo with "hexadeximal" commands.
i tried to do the same thing with matlab shown as following,
but it doesnt do anything,how to do these hexadecimal commands in matlab?
Thanks
s = serial('COM4');
set(s,'BaudRate',115200);
fopen(s);
fprintf(s,'0801')
fprintf(s,'63')
out = fscanf(s);
fclose(s)
delete(s)
clear s


0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!