How can I receive and display data using TCP\IP client
이전 댓글 표시
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
답변 (2개)
Walter Roberson
2016년 1월 27일
0 개 추천
There should not be any modification required, other than adding appropriate blocks to the model.
Issopui
2016년 1월 28일
0 개 추천
댓글 수: 8
Walter Roberson
2016년 1월 28일
Issopui
2016년 2월 29일
Walter Roberson
2016년 2월 29일
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
2016년 3월 3일
편집: Walter Roberson
2016년 3월 3일
Walter Roberson
2016년 3월 3일
Sorry, I am not familiar with that source code.
Issopui
2016년 4월 12일
편집: Walter Roberson
2016년 4월 14일
Issopui
2016년 4월 12일
편집: Walter Roberson
2016년 4월 14일
Walter Roberson
2016년 4월 14일
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?
카테고리
도움말 센터 및 File Exchange에서 System Configuration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!