Hi Mark,
I understand that you are looking to access and modify the parameters of the 'Motor & Drive (System Level)' block in your Simulink model, such as "Mot.maxT".
Here's how you can proceed:
- Check the Base Workspace: Open the MATLAB Command Window and use the command “whos” to list all variables in the base workspace. If "Mot" is a structure containing your parameters, it should appear in this list.
- Access Struct Variables: If "Mot" is indeed a structure, you can access its contents by typing “Mot” in the Command Window. To specifically see the "maxT" parameter, you can type “Mot.maxT”.
- Modify Parameters: If you find the parameter, you can modify it directly from the Command Window by typing “Mot.maxT = newValue;”, where “newValue” is the value you want to assign to the parameter.
- Save Changes: After modifying the parameter, you need to save the changes to the workspace. Use the command save if you want to save the workspace variables to a MAT file.
- Update Simulink Model: Go back to your Simulink model and update it to reflect the changes. This can be done by clicking the "Update Model" button in the Simulink toolbar.
If you do not find the "Mot" structure in the base workspace, it might be defined elsewhere, here’s how you can check it:
- Search for Referenced Variables: Within the Simulink model environment, right-click on an empty area of the model background and select 'Find Referenced Variables'. This action will display a table listing all the variables along with their respective paths, which can guide you to the location of the "Mot" structure.
Hope this helps!