Simulink bus object modification from Matlab script
1 view (last 30 days)
I have a Simulink project with a subsystem. I am using Data store read and write so, the subsystem does not have inputs or outputs. For verifying the subsystem is functioning properly, I need to modify the values of the Simulink bus object which is in the data reads. For verifying functioanlity I often use a repeated sequence block or a matlab script but with data read block I haven't succeeded yet. The problem seems simply about accessing the objects. Has anyone succeeded in doing this before?
Benjamin Thompson on 15 Aug 2022
Edited: Benjamin Thompson on 15 Aug 2022
This article explains some ways of modifying the model workspace. If you have more specific questions please ask them and post some sample files.