- Scoped
- Global
- Port-Scoped
매트랩에서 시뮬링크 Function을 로컬 함수로 생성하는 방법.
10 views (last 30 days)
Show older comments
안녕하세요. 모빌진에서 탑 -> 바텀(매트랩)으로 설계 진행중입니다.
Client 서버 콜을 사용하기 위하여 Simulink Fuction Block 내에 Caller Block을 생성한 뒤
차트에서 Call을 하니 Local이 아닌 Global 함수로 생성되는 문제가 있습니다. *같은 .c파일내에서만 함수 Call을 허용할 예정이기에 반드시 Static 함수로 생성되었으면 합니다.
함수 가시성 : 유효범위로 설정되어있고, automic 서브시스템 내에서 Call을 하는 차트와 같은 루트내에 Simulink Function Block이 위치하고 있습니다.
Q1. 시뮬링크 Function Block은 반드시 Global 함수로 생성되는지요 ?
Q2. Q1이 No라면 추가적으로 확인해볼 수 있는 옵션이 있을까요 ?
0 Comments
Answers (1)
Deepak
on 3 Sep 2025
Hi,
It is not necessary that function visibility of function blocks should always be global. In fact, when they are created, by default, the visibility is “scope”. Scope visibility means, they are accessible only inside a subsystem or model hierarchy.
To answer the second question as to if there are any other options available, the answer is yes. Namely,
To give more clarity on the answer, refer to the MathWorks documentation regarding Scoped and Global Simulink Functions attached below:
Hope this helps.
0 Comments
See Also
Categories
Find more on Simulink 함수 in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!