Sensor Module Functionality-Simulink

조회 수: 1 (최근 30일)
Dermansah Hazar Ersoy Yalin
Dermansah Hazar Ersoy Yalin 2020년 3월 19일
Hello,
I am trying to simulate sensor module functionality that outputs distance and sensor id. More or less I have some ideas about how to output distance but I couldn't figure out to create a sensor id. For simulink could you please help me how can I generate unique integer that they will be sensor id?
Thanks in advance.
  댓글 수: 1
Dermansah Hazar Ersoy Yalin
Dermansah Hazar Ersoy Yalin 2020년 3월 22일
Is there anyone who can help me with this?

댓글을 달려면 로그인하십시오.

채택된 답변

Shresth Sharma
Shresth Sharma 2020년 3월 23일
Hi,
It is my understanding that you are trying to create a new Sensor ID for displaying the distance and Sensor ID, and you are having trouble with displaying the Sensor ID. In this case you can use Simulink MATLAB Function which can take the data and give the desired output according to your functionality and requirement.
For more understanding on how the Simulink MATLAB function works you can go through the following documentation links
  댓글 수: 1
Dermansah Hazar Ersoy Yalin
Dermansah Hazar Ersoy Yalin 2020년 3월 23일
Hi,
Thank you very much for your answer. In my project it is required to have multiple sensors that they all have unique IDs and they are generating the same type of outputs (in this case they will create generate distance in unit of centimeters) and then all those outputs have to be sent via UDP.
I am a little bit lost first with how to send to outputs in one packet via UDP and then I could try to apply it for multiple sensors

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PHY Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by