Speedgoat IO306 Serial Connection

4 次查看(过去 30 天)
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

采纳的回答

Dimitri MANKOV
Dimitri MANKOV 2023-6-7
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

更多回答(0 个)

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by