Is it possible to retrieve machine electrical output (PELEC) during dynamic simulation without using channels?
I have tried using agenbusreal and amachreal APIs to get the machine outputs for each time steps but it is not working. I was wondering if there is an easy approach to get the machines data without assigning channel to each individual machine. My code is as follows:
while t <= 30:
psspy.run(0, t, 0, 24, 0)
ierr, rarray = psspy.agenbusreal(0, 4, 'PGEN')
#ierr, rarray = psspy.amachreal(0, 4, 'PGEN')
df_mach[i] = rarray[0]
# pgen_array.append(rarray[0])
i += 1
t += 0.1