I can't save a PSAT file
Show older comments
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
Walter Roberson
on 17 Sep 2020
Please post the complete error message including traceback.
ABU SADAT MOHAMMAD SAYEM
on 17 Sep 2020
Shruheti Vaghasiya
on 19 Sep 2020
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.
Adeyemi Alabi
on 1 Oct 2021
I just installed 2019a and it still gives the same error of too many output arguments
Walter Roberson
on 1 Oct 2021
Did you check whether you have a psat settings.m file such as I described in my Answer below?
hiba al-kaoaz
on 25 Mar 2022
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
Answers (1)
Walter Roberson
on 17 Sep 2020
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
ABU SADAT MOHAMMAD SAYEM
on 17 Sep 2020
Edited: ABU SADAT MOHAMMAD SAYEM
on 17 Sep 2020
Walter Roberson
on 17 Sep 2020
Which version of psat are you using? psat2.1.10 does not have any settings.m
ABU SADAT MOHAMMAD SAYEM
on 18 Sep 2020
Walter Roberson
on 18 Sep 2020
Where are you getting your psat from?
ABU SADAT MOHAMMAD SAYEM
on 18 Sep 2020
Walter Roberson
on 18 Sep 2020
Can you post the link, and would I be able to access it to examine it?
ABU SADAT MOHAMMAD SAYEM
on 18 Sep 2020
Walter Roberson
on 18 Sep 2020
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.
Adeyemi Alabi
on 1 Oct 2021
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
Walter Roberson
on 1 Oct 2021
After that,
rehash toolboxcache
Amirul Hakim
on 12 Jan 2022
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
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!