How can I receive and display data using TCP\IP client
Afficher commentaires plus anciens
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
Réponses (2)
Walter Roberson
le 27 Jan 2016
0 votes
There should not be any modification required, other than adding appropriate blocks to the model.
Issopui
le 28 Jan 2016
0 votes
8 commentaires
Walter Roberson
le 28 Jan 2016
Issopui
le 29 Fév 2016
Walter Roberson
le 29 Fév 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
le 3 Mar 2016
Modifié(e) : Walter Roberson
le 3 Mar 2016
Walter Roberson
le 3 Mar 2016
Sorry, I am not familiar with that source code.
Issopui
le 12 Avr 2016
Modifié(e) : Walter Roberson
le 14 Avr 2016
Issopui
le 12 Avr 2016
Modifié(e) : Walter Roberson
le 14 Avr 2016
Walter Roberson
le 14 Avr 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?
Catégories
En savoir plus sur Development Computer Setup dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!