I can't save a PSAT file

Hi,
When I try to save a model an error pops up "Too many output arguments." & I can't save the file anyway. Could you please suggest any workaround to fix this?
Thanks

6 Comments

Please post the complete error message including traceback.
Error using uigetputfile_helper (line 32)
Too many output arguments.
Error in uiputfile (line 114)
[filename, pathname, filterindex] = uigetputfile_helper(1, varargin{:});
Error in Simulink/SaveDialog (line 75)
[f,d] = uiputfile(filter,title,filename);
Error in uiwait (line 81)
waitfor (hFigDlg, 'WaitStatus', 'inactive');
Error in fm_set (line 463)
uiwait(Fig.dir);
I had same problem few days back.But here is the solution, the PSAT is compatible upto MATLAB 2019a only, and I had MATLAB 2020 on my laptop so it didnt work as expected. Later on I installed MATLAB 2016a and it works just fine.
I just installed 2019a and it still gives the same error of too many output arguments
Did you check whether you have a psat settings.m file such as I described in my Answer below?
i have matlab 2019 a and when i I try to save a model an error pops up "Too many output arguments." & I can't save the file anyway. Could you please suggest any workaround to fix this? how can i solve this problem please

Sign in to comment.

Answers (1)

I suspect that you have a file named settings.m that is interfering with the operation of MATLAB.
which -all settings
You should see something like toolbox/matlab/configtools/settings.m

11 Comments

I get below response :
>> which -all settings
C:\Program Files\MATLAB\R2020b\toolbox\psat\settings.m
C:\Program Files\MATLAB\R2020b\toolbox\matlab\configtools\settings.m % Shadowed
Then I tried to move the path file at the bottom and opened PSAT got warning messages like this :
Warning: fm_lib.mdl, line 238: Registration key for 'psatdomain' is invalid.
> In load_system (line 21)
In psat (line 827)
Warning: fm_lib.mdl, line 271: Registration key for 'psatdomain' is invalid.
If I try to save any model this error message shows "
##Even if I try to run an example in 'Simulink' error message "Too many output arguments" pops up.
How to solve this issue?
Which version of psat are you using? psat2.1.10 does not have any settings.m
I have tried with 2.1.11 and Matlab R2020b. Should I try version 2.1.10?
Where are you getting your psat from?
From the professor's website.
Can you post the link, and would I be able to access it to examine it?
Odd, I have a psat 2.10 directory that is missing a lot of what is in those... I wonder where I found it.
The settings.m that is used in psat is a problem, but one that is not too difficult to deal with. If you just rename or delete the file, then the existing psat.m will build internal settings.
The whole bit about registration key being invalid is more difficult. I am not positive, but I suspect it is because there is no psatdomain.ssc "domain" declaration file.
If it worked before in past MATLAB releases but does not work now, then maybe that has something to do with the fact that a few releases ago, Simscape was moved from being Simulink only to being usable from MATLAB as well -- that is, there were changes to Simscape a few releases ago, so it would not be out of the question for this to be one of them. However, a .ssc domain file was expected even back in (say) R2017a, so this would not seem to be a new problem.
previously accessible file "C:\Program Files\MATLAB\R2019a\toolbox\pasat\settings.m" is now inaccessible
This is the error i get when i delete the settings.m file as you have suggested
After that,
rehash toolboxcache
then should i install the older version of matlab?
> In load_system (line 21)
In sim2psat (line 128)
In fm_dirset (line 474)
In fm_dirset (line 563)
Warning: d_009_svc.mdl, line 481: Registration key for 'psatdomain' is invalid.
the error repeat many time

Sign in to comment.

Categories

Find more on Programming 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!