필터 지우기
필터 지우기

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