Simulink code generation for tcpclient
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Maximilian Perschl
el 8 de Sept. de 2020
Respondida: Benjamin Thompson
el 10 de Oct. de 2022
I am trying to setup a tcp communication with matlab functions inside a simulink model (since I have variable sized data incoming, I refrain from using the tcp send/recv blocks from the instrument control toolbox)
However, whenever I use the "tcpclient" function inside my functions, I can't build the simulink model.
Using matlab 2019a, I get the error "The tcpclient class does not support code generation" even though its documentation says otherwise.
Using matlab 2020a, I get the error "The current BuildConfig has not been set" an error for which I have not found a solution while searching through the forums.
If anyone could help, I would greatly appreciate it.
0 comentarios
Respuestas (1)
Benjamin Thompson
el 10 de Oct. de 2022
Looks like code generation support for tcpclient was added in R2019B. You may just have a configuration issue in your R2020A testing, if this is still a problem please create a new question and attach sample files.
0 comentarios
Ver también
Categorías
Más información sobre Simulink Coder 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!