Skip to content

Commit

Permalink
Frequency error iicsys#4
Browse files Browse the repository at this point in the history
In C37.118.2-2011 - IEEE Standard for Synchrophasor Data Transfer for Power Systems  says that frequency can be 32 bit floating point in witch case we would use real value of freq and 16 intiger in witch case we would represent frequency as real value of frequency + deviation frequency
  • Loading branch information
Skalar2001 committed Jul 28, 2022
1 parent 133cc71 commit 81dcb6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synchrophasor/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ def get_measurements(self):
"phasors": self.get_phasors()[i],
"analog": self.get_analog()[i],
"digital": self.get_digital()[i],
"frequency": self.cfg.get_fnom()[i] + self.get_freq()[i] / 1000,
"frequency":(self.get_freq()[i]) if (self.cfg.get_data_format()[i])[3] else self.cfg.get_fnom()[i] + self.get_freq()[i] / 1000,
"rocof": self.get_dfreq()[i]}

measurements.append(measurement)
Expand All @@ -2368,7 +2368,7 @@ def get_measurements(self):
"phasors": self.get_phasors(),
"analog": self.get_analog(),
"digital": self.get_digital(),
"frequency": self.cfg.get_fnom() + self.get_freq() / 1000,
"frequency": (self.get_freq()) if (self.cfg.get_data_format())[3] else self.cfg.get_fnom() + self.get_freq() / 1000,
"rocof": self.get_dfreq()
})

Expand Down

0 comments on commit 81dcb6a

Please sign in to comment.