• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - Automation
  • ScalingPoint
  • 5.0.0

ScalingPoint Class

(Automation::ScalingPoint)

The ScalingPoint maps input value to the output value . More...

Header: #include <ScalingPoint>
Inherits: CDPBaseObject
  • List of all members, including inherited members

Public Functions

ScalingPoint()
virtual ~ScalingPoint()
T GetInValue(bool inverse)
double GetOffset()
double GetOutValue(bool inverse)
double GetScalingFactor()
void RegisterConfigurationChangeCallback(const std::function<void( CDPPropertyBase * ) > &handler)
void SetOffset(double offset)
void SetScalingFactor(double scalingFactor)

Reimplemented Public Functions

virtual void Configure(XMLPrimitive *pObjectElement) override
virtual void Create(const char *pzName, CDPBaseObject *pParent) override
virtual const std::string GetNodeName() const override
  • 49 public functions inherited from CDPBaseObject
  • 27 public functions inherited from CDP::StudioAPI::CDPNode
  • 22 public functions inherited from CDP::StudioAPI::ICDPNode

Additional Inherited Members

  • 1 static public member inherited from CDPBaseObject
  • 1 protected function inherited from CDP::StudioAPI::CDPNode
  • 10 protected variables inherited from CDPBaseObject

Detailed Description

The ScalingPoint maps input value to the output value .

Properties

Property NameDescription
NameThe name of the ScalingPoint.
TypeThe type of the ScalingPoint.
InValueThe input value of the ScalingPoint.
OutValueThe output value of the ScalingPoint.
InValueRoutingThe routing of input value for the ScalingPoint when using routed value.
OutValueRoutingThe routing of output value for the ScalingPoint when using routed value.
ModelThe model name of the ScalingPoint.

Importing ScalingPoints

In cases where you need to add or change large number of prepared ScalingPoint value mappings, you can easily import them to CDP Studio from a spreadsheet application (like Excel or LibreOffice Calc) using the import features.

For ScalingPoint import you have to prepare a spreadsheet table (in Excel or LibreOffice Calc) in the specific format used in CDP Studio for import and export, like what is described in the Configure Mode Manual

For example, the following is a screenshot of the simple spreadsheet table prepared for 2 ScalingPoint import

And the following is a screenshot of the spreadsheet table for the case you already have 2 ScalingPoints added but you need to alter their InValues and/or OutValues

After you have the spreadsheet table prepared the easiest way to import ScalingPoints is just to select the rows in the table, copy them to the clipboard and then paste them to the CDP Studio

Note: You have to make sure the first column of the table matches exactly your CDP version number. CDP Studio does not import rows whose version number does not match.

See also ScalingOperator.

Member Function Documentation

ScalingPoint::ScalingPoint()

Constructs a ScalingPoint.

[virtual] ScalingPoint::~ScalingPoint()

Destroys the instance of ScalingPoint. The destructor is virtual.

[override virtual] void ScalingPoint::Configure(XMLPrimitive *pObjectElement)

Reimplemented from CDPBaseObject::Configure().

Connects InValue and OutValue Properties to InValueRouting and OutValueRouting when initialized.

[override virtual] void ScalingPoint::Create(const char *pzName, CDPBaseObject *pParent)

Reimplemented from CDPBaseObject::Create().

Argument CDPObjectBased is not used by this subclass.

T ScalingPoint::GetInValue(bool inverse)

Returns the ScalingPoint input value. Returns actually the OutValue property value when the ScalingOperator is in inverse mode.

[override virtual] const std::string ScalingPoint::GetNodeName() const

Reimplemented from ICDPNode::GetNodeName().

double ScalingPoint::GetOffset()

Returns the offset.

double ScalingPoint::GetOutValue(bool inverse)

Returns the ScalingPoint output value. Returns actually the InValue property value when the ScalingOperator is in inverse mode.

double ScalingPoint::GetScalingFactor()

Returns the scaling factor.

void ScalingPoint::RegisterConfigurationChangeCallback(const std::function<void( CDPPropertyBase * ) > &handler)

void ScalingPoint::SetOffset(double offset)

Sets the offset.

void ScalingPoint::SetScalingFactor(double scalingFactor)

Sets the scalingFactor.

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top