Speedgoat IO306 Serial Connection
6 views (last 30 days)
Show older comments
Rafael Vazquez
on 6 Jun 2023
Commented: Rafael Vazquez
on 8 Jun 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 Comments
Accepted Answer
Dimitri MANKOV
on 7 Jun 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
More Answers (0)
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!