필터 지우기
필터 지우기

How to set the local IP address of real-time SLRT UDP blocks (R2017b) as a variable from the base workspace?

조회 수: 4 (최근 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.

답변 (1개)

Nick Choi
Nick Choi 2017년 10월 6일
You can set the IP address of a UDP block with a workspace variable by:
  1. Creating the variable in the MATLAB workspace
  2. Opening the UDP block parameters and entering the variable name for the IP address
  3. Pressing the 'OK' or 'Apply' button in the block parameter window
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.
  댓글 수: 1
Alexey Illarionov
Alexey Illarionov 2017년 10월 10일
Thank you for answer!
Is it possible to Configure UDP in the parent model and have UDP send/receive blocks in reference models used that configuration? Or should I have the same configuration UDP block in every reference models?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by