How can I receive and display data using TCP\IP client
Mostrar comentarios más antiguos
Hello there, I have a Simunlink model with the TCP\IP client blockset. I would like to modify the client in a way that I can display the data from the server. My project has to be in such as way that once the communication is established both end can send and receive data. Regards
Respuestas (2)
Walter Roberson
el 27 de En. de 2016
0 votos
There should not be any modification required, other than adding appropriate blocks to the model.
Issopui
el 28 de En. de 2016
0 votos
8 comentarios
Walter Roberson
el 28 de En. de 2016
Issopui
el 29 de Feb. de 2016
Walter Roberson
el 29 de Feb. de 2016
If you are not using the Instrument Control Toolbox and are not using the blocks from the File Exchange then we have no idea how your model is using TCP.
I have no experience with using Microsoft compilers. I have read a small amount about Mex files, but I have never constructed any.
You might find it easier to use loadlibrary()
Or, considering that you are using MS Windows, you might find it easier to use ActiveX.
If the goal is to deploy to a device, then you need to use blocksets provided by Mathworks for code generation to that target, or you need to do a whole bunch of work to create blocks compatible with the target.
Issopui
el 3 de Mzo. de 2016
Editada: Walter Roberson
el 3 de Mzo. de 2016
Walter Roberson
el 3 de Mzo. de 2016
Sorry, I am not familiar with that source code.
Issopui
el 12 de Abr. de 2016
Editada: Walter Roberson
el 14 de Abr. de 2016
Issopui
el 12 de Abr. de 2016
Editada: Walter Roberson
el 14 de Abr. de 2016
Walter Roberson
el 14 de Abr. de 2016
Why are you taking the output port width of the same thing multiple times? If you had varied the 0 to something else I might have understood.
You made myMessage a number which is just the width of some port, but you are trying to access a "fp" field of that width. Perhaps you need another ssGetOutputPortRealSignal or something similar?
Categorías
Más información sobre Development Computer Setup en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!