- Creating the variable in the MATLAB workspace
- Opening the UDP block parameters and entering the variable name for the IP address
- Pressing the 'OK' or 'Apply' button in the block parameter window
How to set the local IP address of real-time SLRT UDP blocks (R2017b) as a variable from the base workspace?
1 次查看(过去 30 天)
显示 更早的评论
By configuration of real-time UDP blocks one need manually type and select the local IP address.
1. it is uncomfortable and prone to errors if I want to change an assigned IP address. One need manually go through all of them.
2. Options of SLRT UDP send/recv blocks, placed in the reference models, do not see the configuration block from top model and revert to using host-target connection.
Is it possible to define it as variable from base workspace?
Cheers, A.
0 个评论
回答(1 个)
Nick Choi
2017-10-6
You can set the IP address of a UDP block with a workspace variable by:
If you try to start at step 2 before completing step 1, Simulink will display an error because it will try to use the variable name as the literal IP address.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!