How can I receive and display data using TCP\IP client
Show older comments
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
Answers (2)
Walter Roberson
on 27 Jan 2016
0 votes
There should not be any modification required, other than adding appropriate blocks to the model.
Issopui
on 28 Jan 2016
0 votes
8 Comments
Walter Roberson
on 28 Jan 2016
Issopui
on 29 Feb 2016
Walter Roberson
on 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
on 3 Mar 2016
Edited: Walter Roberson
on 3 Mar 2016
Walter Roberson
on 3 Mar 2016
Sorry, I am not familiar with that source code.
Issopui
on 12 Apr 2016
Edited: Walter Roberson
on 14 Apr 2016
Issopui
on 12 Apr 2016
Edited: Walter Roberson
on 14 Apr 2016
Walter Roberson
on 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?
Categories
Find more on Development Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!