TCP IP sensor communication
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!