• 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
  • RampGenerator
  • 5.0.0

RampGenerator Class

(Automation::RampGenerator)

The RampGenerator component is a ramp signal generator. It can be used to generate upward, downward and nonlinear ramps. More...

Header: #include <RampGenerator>
Inherits: CDPComponent
  • List of all members, including inherited members

Protected Functions

int MessageRestart(void *message)

Reimplemented Protected Functions

virtual void Create(const char *fullName) override
virtual void CreateModel() override
virtual void ProcessNull() override
  • 12 protected functions inherited from CDPComponent
  • 15 protected functions inherited from CDPObject
  • 1 protected function inherited from CDP::StudioAPI::CDPNode

Additional Inherited Members

  • 92 public functions inherited from CDPComponent
  • 39 public functions inherited from CDPObject
  • 49 public functions inherited from CDPBaseObject
  • 27 public functions inherited from CDP::StudioAPI::CDPNode
  • 22 public functions inherited from CDP::StudioAPI::ICDPNode
  • 2 static public members inherited from CDPComponent
  • 6 static public members inherited from CDPObject
  • 1 static public member inherited from CDPBaseObject
  • 42 protected variables inherited from CDPComponent
  • 9 protected variables inherited from CDPObject
  • 10 protected variables inherited from CDPBaseObject

Detailed Description

The RampGenerator component is a ramp signal generator. It can be used to generate upward, downward and nonlinear ramps.

Properties

PropertyDescription
fsGenerator running frequency (affects the ramp output granularity)

Parameters

ParameterDescription
StartingValueStarting value of the ramp
OverflowValueOverflow value of the ramp
StopOnOverflowStop changing the Output value when overflow value has reached

Signals

SignalDescription
RampRateRamp output change rate, per second. Use negative value to generate falling slope ramp. Set to zero to stop ramp output from changing. Note, that you can change the RampRate during the ramp generation to get nonlinear ramps by setting it manually (eg. via GUI) or by routing in some other (eg. signal) value.
OutputGenerator output (generated ramp)
OverflowWill be set to true when the ramp output has reached overflow value

Messages

MessageDescription
RestartRestart the waveform generation (and zero the Time signal)

Example

Below is an example plot of the changing RampRate input signal (cyan), the RampGenerator(StartingValue=-50, OverflowValue=100, StopOnOverflow=true) Output value (orange) and the Overflow value (yellow).

Member Function Documentation

[override virtual protected] void RampGenerator::Create(const char *fullName)

[override virtual protected] void RampGenerator::CreateModel()

[protected] int RampGenerator::MessageRestart(void *message)

[override virtual protected] void RampGenerator::ProcessNull()

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