How to get the system frequency? in the following code I get only voltage and frequency error. File ".\psspy.py", line 49525, in busdat psspy.BusdatError: busdat Error: ierr=2
Hi everyone, I want to get the system frequency, but in the following code I get only voltage and frequency error.
import os, sys
# Set environment for psse33.04
PYTHONPATH = r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN'
sys.path.append(PYTHONPATH)
os.environ['PATH'] += ';' + PYTHONPATH
import psspy
# Get the system voltage
ierr,voltage = psspy.busdat(2,'KV')
# Get the system frequency
ierr,freq = psspy.busdat(2,'FREQ')
File ".\psspy.py", line 49525, in busdat psspy.BusdatError: busdat Error: ierr=2