Communicate with a pressure sensor in ASCII hexadecimal
2 views (last 30 days)
Show older comments
Hello, I have a usb pressure sensor, which communicate in ASCII hexadecimal code (CR= 0D, ask for pressure value= p=70). I can't define 0D as a terminator when i configure the serial port : s=serial('COM7','baudrate', 115200,'terminator',OD or'OD') 0D is refused, only integer from 0 to 127, and CR or CR/LF. Do you have a solution ?
1 Comment
Geoff Hayes
on 27 Oct 2014
laurent - have you tried either of
s=serial('COM7','baudrate', 115200,'terminator',13);
or
s=serial('COM7','baudrate', 115200,'terminator','CR');
Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!