TCP Client block, cannot make the "Remote server IP address" an instance parameter
Show older comments
I sucessfully developed and tested a Simulink real-time model that uses two TCP Client blocks, and a TCP Receive and a TCP Send block.
The two client connections represent the interaction with one external device.
Now I would like to integrate this in a larger contect, where I have two instances of this model, to interact with two instances of the external device. The only difference between the instances is the target IP address.
I tried and failed with two approaches
1) Model Reference with Instance Parameters (new to me)
As I'm trying to follow instuctions to set up the instance parameter, I can't get the "remoteAddress" parameter, which is a mask parameter of the TCP Client block, to show up in the Model Data Editor
2) Masked Library block
I put my functionality into a masked library block, where I'm trying to pass the IP address as a mask parameter at the library level down into the "remoteAddress" mask parameter of the TCP Client blocks.
That appears to work, but now I'm getting error messages from the associated TCP Send and TCP Receive blocks... They have a "Send using..." drop down mask parameter which gets populated based on the available TCP clients in the model, and that fails to uddate.
Accepted Answer
More Answers (0)
Categories
Find more on TCP 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!