How to access data stored in dictionary dictionary from Test Sequence Block?

조회 수: 6 (최근 30일)
Ricardo Borges
Ricardo Borges 2018년 10월 8일
댓글: Ynukre 2025년 9월 25일
I am trying to access data stored in a data dictionary from the Test Sequence Block. I've tried Simulink.data.dictionary.open but it is not supported for code generation.
  댓글 수: 2
Julian
Julian 2025년 7월 25일
@Doodle Baseball, To access data from a data dictionary in a Test Sequence block, define the variables as Simulink.Parameter or Simulink.Signal objects in the dictionary, and ensure they are in the model workspace or base workspace. The Test Sequence block can reference these variables directly if they are properly scoped and do not require run-time dictionary access (which is unsupported in code generation). Avoid using Simulink.data.dictionary.open during simulation.
Ynukre
Ynukre 2025년 9월 25일
@geometry dash lite wow that's useful information, I can put it to good use

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Inputs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by