TCP IP sensor communication

1 次查看(过去 30 天)
Daniele Indelicato
Daniele Indelicato 2018-3-23
Hello I wish to make a real time communication system over tcp ip protocol, that basically reads all the values coming from sick TIM561 lidar 2d sensor. basically I have been using the query block. Now i have to options to query the istrument: 1)Query over ascii and i send the telegram ".sRN LMDscandata" but i get an error as the output is non-numeric. 2)Query over binary and i basically send the same instruction over a binary equivalent.
In both case i checked with wireshark and the instrument receive the command correctly and send back the values I'm looking for. However I'm having problem with the reading phase. With option 1 the silumation stops as the answer from the instrument is non-numeric, where as with option two i receive random real number. SO basically simulink is not reading the answer correctly. Do you have any suggetion on how to create a binary array that is able to collect the data in that second case? Or any idea on how to read output as an ASCII string?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Automotive 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by