- Log Signals: Right click the signal, select Properties, and check 'log signal'. Use the Simulation Data Inspector to view them.
- Programmatic Access: Use get_param and set_param to access and modify parameters:
- Initial States: Use Simulink.BlockDiagram.getInitialState('model_name').
- Workspace Export: In Configuration Parameters, enable 'States' and 'Signal logging' under Data Import/Export, and then run the simulation.
- Use find_system to locate blocks and signals.
- get_param: https://mathworks.com/help/releases/R2024b/simulink/slref/get_param.html
- set_param: https://mathworks.com/help/releases/R2024b/simulink/slref/set_param.html
- find_system: https://mathworks.com/help/releases/R2024b/simulink/slref/find_system.html
- Simulink.BlockDiagram.getInitialState: https://mathworks.com/help/releases/R2024b/simulink/slref/simulink.blockdiagram.getinitialstate.html