How to access data stored in dictionary dictionary from Test Sequence Block?
Ältere Kommentare anzeigen
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.
Antworten (2)
Julian
am 25 Jul. 2025
Verschoben: Walter Roberson
am 2 Feb. 2026
0 Stimmen
@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.
Pat Canny
am 2 Feb. 2026
0 Stimmen
Kategorien
Mehr zu Inputs finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!