[Nucleo] string to signal returns 0
1 次查看(过去 30 天)
显示 更早的评论
I have a question about module[string to signel]
simulation: If I input a string "0702,0.21M", indeed I can get the desired value " 702" and "0.21".
nucleo monitor and tune: I had sent "0702,0.21M"(by hex:30 37 30 32 2C 30 2E 32 31 4D) by serial port, but I only can get the int or uint type number.
Actually, I guess that there are something else to make the string to float type or double type.
I don't know why, who can help me out?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1352874/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1352874/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1352879/image.jpeg)
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!