Unable to understand what receive in UDP block in simulink

1 visualización (últimos 30 días)
Oren Musicant
Oren Musicant el 5 de En. de 2023
Respondida: Atharva el 29 de Mzo. de 2023
Hello,
When I send a packets from openBCI gui into phyton code that receive UDP packates I get array that looks like this (yellow line):
When I try to get the same packages from UDP receiver in simulink the values are look so diffrent
the data type for message that I defined in UDP receive block is double
Why am I not getting the same array as I get in phython? what do I miss?
Thank.

Respuestas (1)

Atharva
Atharva el 29 de Mzo. de 2023
Hey Oren,
It's possible that the differences you're seeing in the received data between Python and Simulink could be due to differences in the way the two programs are handling the incoming UDP packets. One possible cause of this issue could be differences in the way the data is being parsed and/or formatted in Python and Simulink. Another possible cause of the issue could be differences in the way the data is being processed or stored in Python and Simulink.
To troubleshoot this issue, you may want to start by examining the format and structure of the data being sent by the OpenBCI GUI and ensure that it matches the expected format and structure of the data being received by the Simulink UDP Receive block. You may also want to compare the data processing steps being performed in the Python code with those being performed in the Simulink model to identify any differences that could be causing the discrepancies you're seeing in the received data.

Categorías

Más información sobre Android Devices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by