Skip to content

GSF.PhasorProtocols: [CFG-3] Assign appropriate values to ConversionFactor and MagnitudeMultiplier#452

Merged
StephenCWills merged 1 commit intomasterfrom
cfg3-phasor-multipliers
Nov 26, 2025
Merged

GSF.PhasorProtocols: [CFG-3] Assign appropriate values to ConversionFactor and MagnitudeMultiplier#452
StephenCWills merged 1 commit intomasterfrom
cfg3-phasor-multipliers

Conversation

@StephenCWills
Copy link
Copy Markdown
Member

ConversionFactor is used to scale data when reading/writing phasor values.
MagnitudeMultiplier is used when reading/writing PHSCALE values in the configuration frame.

When generating a fixed-integer IEEE C37.118-2011 data stream, ConversionFactor and MagnitudeMultiplier should be the same so that the phasor magnitudes can be scaled by the appropriate multiplier and then that same multiplier can be encoded into the config frame.

When parsing a fixed-integer IEEE C37.118-2011 data stream, ConversionFactor should be 1 in order to assign the raw phasor magnitude to the Measurement.Value field. The MagnitudeMultiplier should be assigned to the Measurement.Multiplier field during input device configuration so that the scaled value can be accessed at runtime via Measurement.AdjustedValue.

This logic should only apply to phasors since PhasorValueBase is the only class that is using ConversionFactor for scaling during parsing/generation.

Copy link
Copy Markdown
Member

@ritchiecarroll ritchiecarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks simple enough.

@StephenCWills StephenCWills merged commit e0f10b0 into master Nov 26, 2025
3 checks passed
@StephenCWills StephenCWills deleted the cfg3-phasor-multipliers branch November 26, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants