State 에서의 AUTOSAR server runnable 호출 방법
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
안녕하세요.
AUTOSAR Application SWC 를 MBD 로 구현하고자 하는데 state 내에서의 server runnable 호출을 하려면 어떻게 해야 하는지요?
state 내에 단순히 함수명을 이용한 호출을 시도하면 아래와 같은 오류가 발생합니다.
"AUTOSAR operation 'AuxH_SnsrRlyCtrl_SetMode' requires changes to the Simulink Function prototype that cannot be applied to 'StateHandler/R_StateHandler_10ms_sys/IFCU_State'. For AUTOSAR targets, changes to the Simulink Function prototype are only supported for 'Simulink Function' or 'Function Caller' blocks in the top model."
특정 state 에서만 server runnable 을 호출하고자 할 때 어떤 방법을 사용하면 되는지 가이드 부탁 드립니다.
감사합니다.
0 Kommentare
Antworten (1)
Karanjot
am 4 Jun. 2024
안녕하세요,
한국어에 능통하지 않아 영어로 답변하겠습니다.
I see that you want to call a server runnable from a specific state in a Model-Based Design (MBD) environment when working with AUTOSAR.
I suggest adhering to AUTOSAR's client-server communication patterns while also following Simulink's modeling practices. The error message you're encountering suggests that you're trying to directly invoke an AUTOSAR server runnable from within a state in a Stateflow chart, which is not directly supported for AUTOSAR targets
I suggest going through the following links for information on recommended client-server communication patterns:
Additionally, The mapFunctionaCaller function can be used to map Simulink function-caller block to AUTOSAR client port and operation. More information about it here:
0 Kommentare
Siehe auch
Kategorien
Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!