Sensor Module Functionality-Simulink

1 Ansicht (letzte 30 Tage)
Dermansah Hazar Ersoy Yalin
Dermansah Hazar Ersoy Yalin am 19 Mär. 2020
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.

Akzeptierte Antwort

Shresth Sharma
Shresth Sharma am 23 Mär. 2020
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 Kommentar
Dermansah Hazar Ersoy Yalin
Dermansah Hazar Ersoy Yalin am 23 Mär. 2020
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by