Sensor Module Functionality-Simulink

1 vue (au cours des 30 derniers jours)
Dermansah Hazar Ersoy Yalin
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 commentaire
Dermansah Hazar Ersoy Yalin
Is there anyone who can help me with this?

Connectez-vous pour commenter.

Réponse acceptée

Shresth Sharma
Shresth Sharma le 23 Mar 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 commentaire
Dermansah Hazar Ersoy Yalin
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

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by