Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

import os import sys import time import numpy as np PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN' sys.path.append(PYTHONPATH) os.environ['PATH'] += ' ; ' + PYTHONPATH import psspy import excelpy import redirect redirect.psse2py() psspy.read(0,r'C:\Users\tf\Desktop\test.raw') psspy.fnsl([1,0,0,0,1,1,-1,0]) psspy.fnsl([0,0,0,0,0,0,0,0]) psspy.psseinit(100) a = psspy.abusint(string = 'NUMBER')

import os import sys import time import numpy as np PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN' sys.path.append(PYTHONPATH) os.environ['PATH'] += ' ; ' + PYTHONPATH import psspy import excelpy import redirect redirect.psse2py() psspy.read(0,r'C:\Users\tf\Desktop\test.raw') psspy.fnsl([1,0,0,0,1,1,-1,0]) psspy.fnsl([0,0,0,0,0,0,0,0]) psspy.psseinit(100) a = psspy.abusint(string = 'NUMBER')

import os os

import sys import time import numpy as np np

PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN' sys.path.append(PYTHONPATH) os.environ['PATH'] += ' ; ' + PYTHONPATH import psspy import excelpy import redirect redirect.psse2py() psspy.read(0,r'C:\Users\tf\Desktop\test.raw') psspy.fnsl([1,0,0,0,1,1,-1,0]) psspy.fnsl([0,0,0,0,0,0,0,0]) psspy.psseinit(100) a = psspy.abusint(string = 'NUMBER')

import os

os import sys import numpy as np

np PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN' sys.path.append(PYTHONPATH) os.environ['PATH'] += ' ; ' + PYTHONPATH import psspy import excelpy import redirect redirect.psse2py() psspy.read(0,r'C:\Users\tf\Desktop\test.raw') psspy.fnsl([1,0,0,0,1,1,-1,0]) psspy.fnsl([0,0,0,0,0,0,0,0]) psspy.psseinit(100) a = psspy.abusint(string = 'NUMBER')

import os os

import sys sys

import numpy as np np

PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN' sys.path.append(PYTHONPATH) (x86)\PTI\PSSE33\PSSBIN'

sys.path.append(PYTHONPATH)

os.environ['PATH'] += ' ; ' + PYTHONPATH PYTHONPATH

import psspy psspy

import excelpy excelpy

import redirect redirect.psse2py() psspy.read(0,r'C:\Users\tf\Desktop\test.raw') psspy.fnsl([1,0,0,0,1,1,-1,0]) psspy.fnsl([0,0,0,0,0,0,0,0]) psspy.psseinit(100) redirect

redirect.psse2py()

psspy.read(0,r'C:\Users\Desktop\test.raw')

psspy.fnsl([1,0,0,0,1,1,-1,0])

psspy.fnsl([0,0,0,0,0,0,0,0])

psspy.psseinit(100)

a = psspy.abusint(string = 'NUMBER')

This is my code can someone tell me why I always have this error.

import os

import sys

import numpy as np

PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN'

sys.path.append(PYTHONPATH)

os.environ['PATH'] += ' ; ' + PYTHONPATH

import psspy

import excelpy

import redirect

redirect.psse2py()

psspy.read(0,r'C:\Users\Desktop\test.raw')

psspy.fnsl([1,0,0,0,1,1,-1,0])

psspy.fnsl([0,0,0,0,0,0,0,0])

psspy.psseinit(100)

a = psspy.abusint(string = 'NUMBER')

This is my error :

Messages for api FNSL No network data in memory (004289)

Messages for api FNSL No network data in memory (004289)

This is my code can someone tell me why I always have this error.

import os

import sys

import numpy as np

PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN'

sys.path.append(PYTHONPATH)

os.environ['PATH'] += ' ; ' + PYTHONPATH

import psspy

import excelpy

import redirect

redirect.psse2py()

psspy.read(0,r'C:\Users\Desktop\test.raw')

psspy.fnsl([1,0,0,0,1,1,-1,0])

psspy.fnsl([0,0,0,0,0,0,0,0])

psspy.psseinit(100)

a ierr = psspy.psseinit( 100000 )

ierr, (a,) = psspy.abusint(string = 'NUMBER')["NUMBER"])

print(a)

This is my error :

Messages for api FNSL No network data CASE PSS(R)E not properly initialized (004288)

PSS(R)E Version 33 Copyright (c) 1976-2020 Siemens Industry, Inc., Power Technologies International (PTI) This program is a confidential unpublished work created and first licensed in memory (004289)

Messages for api FNSL No network data in memory (004289)

1976. It is a trade secret which is the property of PTI. All use, disclosure, and/or reproduction not specifically authorized by PTI is prohibited. This program is protected under copyright laws of non-U.S. countries and by application of international treaties. All Rights Reserved Under The Copyright Laws.

       SIEMENS POWER TECHNOLOGIES INTERNATIONAL

  100000 BUS POWER SYSTEM SIMULATOR--PSS(R)E-33.4.0

         INITIATED ON SAT, NOV 14 2020  10:38

None