필터 지우기
필터 지우기

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

조회 수: 6 (최근 30일)
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?

채택된 답변

Amritha
Amritha 2024년 3월 4일
편집: Amritha 2024년 3월 4일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by