First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Thanks for the answer but still it is not showing the results. I used this code and found this answer below.
import os import sys
syspathPSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" #or where else you find the psspy.pyc sys.path.append(syspathPSSE)
ospathPSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" # or where else you find the psse.exe os.environ['PATH'] += ';' + ospathPSSE os.environ['PATH'] += ';' + syspathPSSE import redirect redirect.psse2py()
import psspy psspy.throwPsseExceptions =True import redirect redirect.psse2py()
psspy.psseinit(8000)
psspy.case('E:\Thesis-REN\IEEE14.sav')
psspy.fnsl()
Numberiterations = psspy.iterat() Maxmismatch = psspy.maxmsm() TotalSystemmismatch = psspy.sysmsm()
msg1 = "The number of itterations was %s" msg2 = "The max mismatch was %s" msg3 = "The system mismatch was %s" print(msg % Numberiterations) print(msg2 % Maxmismatch) print(msg3 % TotalSystemmismatch)
SIEMENS POWER TECHNOLOGIES INTERNATIONAL
50 BUS POWER SYSTEM SIMULATOR--PSS(R)E-34.3.2
INITIATED ON WED, MAY 20 2020 0:26
08/19/93 UW ARCHIVE 100.0 1962 W IEEE 14 BUS TEST CASE
The Saved Case in file E:\Thesis-REN\IEEE14.sav was saved on WED, APR 24 2019 16:03 PS E:\Thesis-REN\Python_Script>
2 | No.2 Revision |
Thanks for the answer but still it is not showing the results. I used this code and found this answer below.
import os import sys
syspathPSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" #or where else you find the psspy.pyc sys.path.append(syspathPSSE)
ospathPSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" # or where else you find the psse.exe os.environ['PATH'] += ';' + ospathPSSE os.environ['PATH'] += ';' + syspathPSSE import redirect redirect.psse2py()
import psspy psspy.throwPsseExceptions =True import redirect redirect.psse2py()
psspy.psseinit(8000)
psspy.case('E:\Thesis-REN\IEEE14.sav')
psspy.fnsl()
Numberiterations = psspy.iterat() Maxmismatch = psspy.maxmsm() TotalSystemmismatch = psspy.sysmsm()
msg1 = "The number of itterations was %s" msg2 = "The max mismatch was %s" msg3 = "The system mismatch was %s" print(msg % Numberiterations) print(msg2 % Maxmismatch) print(msg3 % TotalSystemmismatch)
SIEMENS POWER TECHNOLOGIES INTERNATIONAL
50 BUS POWER SYSTEM SIMULATOR--PSS(R)E-34.3.2
INITIATED ON WED, MAY 20 2020 0:26
08/19/93 UW ARCHIVE 100.0 1962 W IEEE 14 BUS TEST CASE
The Saved Case in file E:\Thesis-REN\IEEE14.sav was saved on WED, APR 24 2019 16:03 PS E:\Thesis-REN\Python_Script>
3 | No.3 Revision |
Thanks for the answer but still it is not showing the results. I used this code and found this answer below.below. From my understanding, it is not doing the iterations in python.
import os
os
import sys
syspathPSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" #or where else you find the psspy.pyc
psspy.pyc
sys.path.append(syspathPSSE)
ospathPSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" # or where else you find the psse.exe
psse.exe
os.environ['PATH'] += ';' + ospathPSSE
PSSE
os.environ['PATH'] += ';' + syspathPSSE
import redirect
PSSE
import redirect
redirect.psse2py()
import psspy
psspy
psspy.throwPsseExceptions =True
import redirect
=True
import redirect
redirect.psse2py()
psspy.psseinit(8000)
psspy.case('E:\Thesis-REN\IEEE14.sav')
psspy.fnsl()
Numberiterations = psspy.iterat()
Maxmismatch = psspy.maxmsm()
Number_iterations = psspy.iterat()
Max_mismatch = psspy.maxmsm()
TotalSystemmismatch = psspy.sysmsm()
msg1 = "The number of itterations was %s"
%s"
msg2 = "The max mismatch was %s"
%s"
msg3 = "The system mismatch was %s"
%s"
print(msg % Numberiterations)
Number_iterations)
print(msg2 % Maxmismatch)
Max_mismatch)
print(msg3 % TotalSystemmismatch)
SIEMENS POWER TECHNOLOGIES INTERNATIONAL
50 BUS POWER SYSTEM SIMULATOR--PSS(R)E-34.3.2
INITIATED ON WED, MAY 20 2020 0:26
08/19/93 UW ARCHIVE 100.0 1962 W
W
IEEE 14 BUS TEST CASE
The Saved Case in file E:\Thesis-REN\IEEE14.sav was saved on WED, APR 24 2019 16:03 PS E:\Thesis-REN\Python_Script>
4 | No.4 Revision |
Thanks for the answer but still answer. I actually used the below code. I also provide the output here. From my understanding it is not showing the results. I used performing the iterations. I am not getting it why I am having this code and found this answer below. From my understanding, it is not doing the iterations in python.
import os
import sys
syspathPSSE=r"C:\Program output.
import os
import sys
sys_path_PSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" #or where else you find the psspy.pyc sys.path.append(syspathPSSE)
ospathPSSE=r"C:\Program
(x86)\PTI\PSSEXplore34\PSSBIN"
sys.path.append(sys_path_PSSE)
os_path_PSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN" # or where else you find the psse.exe (x86)\PTI\PSSEXplore34\PSSBIN"
os.environ['PATH'] += ';' + ospathPSSE os_path_PSSE
os.environ['PATH'] += ';' + syspathPSSE import redirect
redirect.psse2py()
import psspy
sys_path_PSSE
import redirect
redirect.psse2py()
import psspy
psspy.throwPsseExceptions =True import redirect
redirect.psse2py()
psspy.psseinit(8000)
psspy.case('E:\Thesis-REN\IEEE14.sav')
psspy.fnsl()
=True
import redirect
redirect.psse2py()
psspy.psseinit(8000)
psspy.case('E:\Thesis-REN\IEEE14.sav')
psspy.fnsl()
Number_iterations = psspy.iterat() psspy.iterat()
Max_mismatch = psspy.maxmsm() TotalSystemmismatch = psspy.sysmsm()
psspy.maxmsm()
Total_System_mismatch = psspy.sysmsm()
msg1 = "The number of itterations was %s" %s"
msg2 = "The max mismatch was %s" %s"
msg3 = "The system mismatch was %s" %s"
print(msg % Number_iterations) Number_iterations)
print(msg2 % Max_mismatch) Max_mismatch)
print(msg3 % TotalSystemmismatch) Output
Total_System_mismatch)
####Output#####
SIEMENS POWER TECHNOLOGIES INTERNATIONAL
50 BUS POWER SYSTEM SIMULATOR--PSS(R)E-34.3.2
INITIATED ON WED, MAY 20 2020 0:26
08/19/93 UW ARCHIVE 100.0 1962 W
W IEEE 14 BUS TEST CASE
The Saved Case in file E:\Thesis-REN\IEEE14.sav was saved on WED, APR 24 2019 16:03
PS E:\Thesis-REN\Python_Script>