Speedgoat IO306 Serial Connection
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rafael Vazquez
am 6 Jun. 2023
Kommentiert: Rafael Vazquez
am 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 Kommentare
Akzeptierte Antwort
Dimitri MANKOV
am 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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Target Computer Setup finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!