How can I receive and display data using TCP\IP client
Mostra commenti meno recenti
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
Risposte (2)
Walter Roberson
il 27 Gen 2016
0 voti
There should not be any modification required, other than adding appropriate blocks to the model.
Issopui
il 28 Gen 2016
0 voti
8 Commenti
Walter Roberson
il 28 Gen 2016
Issopui
il 29 Feb 2016
Walter Roberson
il 29 Feb 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
il 3 Mar 2016
Modificato: Walter Roberson
il 3 Mar 2016
Walter Roberson
il 3 Mar 2016
Sorry, I am not familiar with that source code.
Issopui
il 12 Apr 2016
Modificato: Walter Roberson
il 14 Apr 2016
Issopui
il 12 Apr 2016
Modificato: Walter Roberson
il 14 Apr 2016
Walter Roberson
il 14 Apr 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?
Categorie
Scopri di più su Development Computer Setup in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!