Power System Analysis Toolbox (PSAT)

I have been using PSAT to model a 24 bus bar power system, which is in PSAT Library. Yet, I have an error during power flow test. This error pops up, when I click on Power Flow button:
Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier.
Error in fm_wcall (line 49) count = fprintf(fid,'function fm_call(flag)\n\n');
Error in fm_spf (line 41) fm_wcall;
Error in fm_set (line 720) fm_spf
Error while evaluating uicontrol Callback
Although I do know that PSAT is not a TOOLBOX supported by matlab, even your short reply could be certainly helpful.

21 commentaires

Mojtaba Heydari
Mojtaba Heydari le 21 Déc 2014
You need to rerun MATLAB as an administrator and then run PSAT again in command window. Hoping that would fix the error.
Basile CLAUZEL
Basile CLAUZEL le 22 Nov 2016
It works for me, thank you very much !
Jyles Tiña
Jyles Tiña le 6 Sep 2018
It worked for me also. Thank You!
SAIFUL ISLAM
SAIFUL ISLAM le 30 Oct 2018
Dear Mojtaba Heydari,May Allah bless you.Thank you.
Olatunde Ogundeji
Olatunde Ogundeji le 19 Déc 2018
Thanks So much It Works
Lucas Lameira
Lucas Lameira le 16 Jan 2019
It worked, thank you so much!
Richard Joseph
Richard Joseph le 28 Juin 2019
Déplacé(e) : DGM le 1 Mai 2024
Hello Gentlemen, Dr., and Prof.:
Help me here.
I installed PSAT in MATLAB but when running power flow it shows:
Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier.
Error in fm_wcall (line 49) count = fprintf(fid,'function fm_call(flag)\n\n');
Error in fm_spf (line 41) fm_wcall;
Error in fm_set (line 720) fm_spf
Error while evaluating uicontrol Callback
Please help me.
Chibuike Ohanu
Chibuike Ohanu le 4 Août 2019
Please help me out with the solution. I'm having the same problem
Chibuike Ohanu
Chibuike Ohanu le 4 Août 2019
Please help me My PSAT is displaying Registration key is invalid. P1.m not found
Walter Roberson
Walter Roberson le 4 Août 2019
Psat registration keys would not seem to be a matlab problem?
Walter Roberson
Walter Roberson le 5 Août 2019
psat2.1.10 does not mention "registration" even once in the code, and has no P1.m in it. It does have a variable named P1 in a couple of the methods.
Chibuike Ohanu
Chibuike Ohanu le 13 Août 2019
I am using MATLAB 2018a .Could it be a problem?
Walter Roberson
Walter Roberson le 14 Août 2019
I searched through the entire PSAT source code and it does not have even one reference to "registration".
Where did you download PSAT from?
Stalin Tipán
Stalin Tipán le 5 Sep 2019
SI es necesario simplemente ejecutar como administrador Matlab y se soluciona el problema. Muchas gracias :)
Muataz Fahad
Muataz Fahad le 15 Oct 2019
Déplacé(e) : DGM le 1 Mai 2024
Hello sir.
Have you gotten something? Is the problem solved? Because I have the same problem now. Please help me.
sira
sira le 29 Nov 2019
Déplacé(e) : DGM le 1 Mai 2024
Hello Muataz Fahad... Did you solve your problem?
shaniamiranda polopadang
shaniamiranda polopadang le 25 Mar 2020
i have the same eror, and i use macbook. and i can't run as administrator. please help
ihsan mousa
ihsan mousa le 26 Mar 2020
Modifié(e) : ihsan mousa le 26 Mar 2020
Yes, it solved.Thanks.
malek malikou
malek malikou le 13 Mai 2020
plz can anyone help me, I have been using PSAT to model a 30 bus power system, and i can't find where i put this data.
i have the same problem. when i run the psat toolbox, the diagram becomes red colour and said that there are too many argument, so i cant save my test files. how can i fix this?
Walter Roberson
Walter Roberson le 18 Mai 2020
With regards to the problem with permission being denied, see my Answer below, https://www.mathworks.com/matlabcentral/answers/91079-power-system-analysis-toolbox-psat#answer_421960

Connectez-vous pour commenter.

Réponses (6)

Walter Roberson
Walter Roberson le 25 Mar 2020

2 votes

This problem can occur if you start running psat from the psat directory and you do not have write access to the psat directory.
psat keeps a record of which directory you were in when you start running it, and in some cases tries to write file fm_call.m into that directory.
The work-around is to make sure that psat is on you MATLAB path, and to start it running by name when you are cd'd to a directory that you have write access to.

2 commentaires

Ezechukwu Ani
Ezechukwu Ani le 9 Juil 2023
Well said sir, What can be done to resolve this problem? Thank you Nelson
Ezechukwu Ani
Ezechukwu Ani le 31 Août 2023
You can select the file and click on add path,this will add your file directory to PSAT toolbox

Connectez-vous pour commenter.

samjhana rai
samjhana rai le 1 Mar 2021

1 vote

Hello everyone;
I m trying to run the load flow usng the PSAT, I have 5 generators and it is a 1 slack and 4 PV bus system. But when we run the power flow we are not getting the load flow, we are getting the error as, ''the convergence is increasing'' and ''convergence likely not reachable.'' What could be th possible problems? would be glad if anyone of you coould answer.

2 commentaires

PRITAM KUMAR NIRALA
PRITAM KUMAR NIRALA le 25 Fév 2022
I am also getting same message could you please help me how to resolve it
Gaurav rawat
Gaurav rawat le 24 Fév 2023
please re check the data u putting in simulation

Connectez-vous pour commenter.

HUSEYIN BAKIR
HUSEYIN BAKIR le 13 Jan 2017
Modifié(e) : Image Analyst le 1 Jan 2020

0 votes

I don't have the PSAT toolbox in MATLAB? How can I get the PSAT toolbox?

7 commentaires

Gary Singh
Gary Singh le 4 Août 2019
Download it from link given below:
Walter Roberson
Walter Roberson le 1 Jan 2020
The web site for that seems to have trouble, but by using the Internet Archive I am able to find the link https://web.archive.org/web/20190507161224/http://faraday1.ucd.ie/archive/psat/psat-2.1.10-mat.zip that retrieves PSAT 2.1.10
Walter Roberson
Walter Roberson le 1 Jan 2020
I have sent email to the professor noting the problems reaching the site.
dursun bahadir celik
dursun bahadir celik le 17 Mar 2021
Merhabalar psatı ındırıyorum hıcbır matlab surumune olmuyor ne yapmam gerekıyor yardımcı olurmusunuz
Walter Roberson
Walter Roberson le 17 Mar 2021
I just tried the link I posted above on archive.org and I was able to download the file without difficulty.
dursun bahadir celik
dursun bahadir celik le 17 Mar 2021
PSAT LİNK PLEASE ? CAN YOU SEND ME

Connectez-vous pour commenter.

Abdulmunim Guwaeder
Abdulmunim Guwaeder le 20 Mar 2017

0 votes

how can I install PSAT

3 commentaires

GAURAV
GAURAV le 21 Déc 2018
Modifié(e) : Image Analyst le 1 Jan 2020
After installing PSAT this error shows
MATLAB Version 9.0
Failed Conversion from simulink model : Permision Denied
Index exceeds matrix dimensions
Data conversion failed.
Gary Singh
Gary Singh le 4 Août 2019
Modifié(e) : Image Analyst le 1 Jan 2020
Watch it to add the toolbox to MATLAB.

Connectez-vous pour commenter.

Ismael Abdulrahman
Ismael Abdulrahman le 31 Déc 2019

0 votes

2 commentaires

Image Analyst
Image Analyst le 1 Jan 2020
Modifié(e) : Image Analyst le 1 Jan 2020
That seems to be a link to a ZIP file. Is the Toolbox inside that zip file? This could be helpful since the other links the others gave seem to be dead links now.
Walter Roberson
Walter Roberson le 1 Jan 2020
It appears to be a link to code for some paper.

Connectez-vous pour commenter.

Hamed
Hamed le 7 Nov 2022

0 votes

Hello guys,
I'm running power flow in PSAT and in my network, for the slack bus, there are two generators connected. The PSAT does not perform the power flow and says: "More than one slack generators are connected to the same bus".
What should I do? Please help me

1 commentaire

Ezechukwu Ani
Ezechukwu Ani le 12 Juil 2023
Remove the rectangular PSAT icon from the second generator only place it on your slack bus, insert pq or pv on the second generator.
All the best

Connectez-vous pour commenter.

Catégories

Déplacé(e) :

DGM
le 1 Mai 2024

Community Treasure Hunt

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

Start Hunting!

Translated by