Speedgoat IO306 Serial Connection
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rafael Vazquez
il 6 Giu 2023
Commentato: Rafael Vazquez
il 8 Giu 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 Commenti
Risposta accettata
Dimitri MANKOV
il 7 Giu 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
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Target Computer Setup in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!