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 Center および File ExchangePHY Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by