Help converting CAN Payload in String format to engineering unit
이전 댓글 표시
Hello,
I have the following valiable in Matlab which holds the CAN data from a recorder in the following format:
Hexadecimal

The output of Row 1047 Should be -1951 normally and -1.951 after factoring it by 0.001. This conversion is done using this website.This is basically a force value of a Dynamometer. How can I do this conversion in Matlab? Any known function?
The DBC is as follows:

댓글 수: 2
T = "61,F8,FF,FF";
N = double(typecast(uint8(sscanf(T,'%x,')),'int32'))*0.001
Harpreet Singh
2024년 7월 16일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Timetables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
