Speedgoat IO306 Serial Connection
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rafael Vazquez
el 6 de Jun. de 2023
Comentada: Rafael Vazquez
el 8 de Jun. de 2023
Hello,
I need to connect a microcontroller to the Speedgoat IO306 module through the use of a serial connection. In the block that handles transmitting data, there are two parameters number of bytes to write and data. How does one configure these parameters? How should the data be represented in order to accurately send information? How can multiple "variables" be sent throug this?
Thank you
0 comentarios
Respuesta aceptada
Dimitri MANKOV
el 7 de Jun. de 2023
Hi Rafael,
In short, the Serial (UART) protocol transmits packets of 8 bits each that will contain your data. The structure of that data is defined by the device you'd like to communicate with. Some devices expect ASCII characters, some a specific stream of bits, possibly preceded by headers used to identify the packets.
The value passed to the port called "Number of Bytes to Write" will define how many of the bytes passed to the "Data" port will effectively be transmitted at the current time step of your model.
You will find a detailed description of these parameters, as well as example models showing how the Serial (UART) functionality of your IO306 module can be configured in the Speedgoat documentation here. If you require more help, please feel free to contact the Speedgoat Support team.
I hope this is helpful!
Dimitri
Más respuestas (0)
Ver también
Categorías
Más información sobre Target Computer Setup en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!