Clear Filters
Clear Filters

Parsim and sim functions return "Insufficient number of outputs from right hand side of equal sign to satisfy assignment" error.

6 views (last 30 days)
Just like the above, both the parsim and sim functions return a "Insufficient number of outputs from right hand side of equal sign to satisfy assignment" error. Using the simulation manager, it appears that the simulation is running fine, it's just that the functions don't appear to return anything when using the simuilation via a script. When I enter Simulink and run the model in question and avoid using a script to run it, it runs just fine and outputs data upon completion.
To make matters more complicated, this only happens on 1 or 2 computers that the script is being run on. When running my script on my work computer, it returns the error upon completion. If I run the script on a different computer, it runs perfectly and returns all of the results and logged data.
Any suggestions?

Accepted Answer

Amritha
Amritha on 4 Mar 2024
Edited: Amritha on 4 Mar 2024
Hello,
This may be related to a known issue with the Simulink Data Inspector preferences in MATLAB R2023b. A possible workaround for this issue is to delete the file "sdiprefs.json" from the MATLAB folder that contains the preference files and allow the file to be automatically regenerated to correct the issue. The path to the folder can be found by executing the following command in the MATLAB Command Window:
>> prefdir
Hope this helps.

More Answers (0)

Categories

Find more on View and Analyze Simulation Results in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!