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.h> |
Inherits: | CDPComponent |
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
- 13 protected functions inherited from CDPObject
- 1 protected function inherited from CDP::StudioAPI::CDPNode
Additional Inherited Members
- 90 public functions inherited from CDPComponent
- 37 public functions inherited from CDPObject
- 46 public functions inherited from CDPBaseObject
- 26 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
- 11 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
Property | Description |
---|---|
fs | Generator running frequency (affects the ramp output granularity) |
Parameters
Parameter | Description |
---|---|
StartingValue | Starting value of the ramp |
OverflowValue | Overflow value of the ramp |
StopOnOverflow | Stop changing the Output value when overflow value has reached |
Signals
Signal | Description |
---|---|
RampRate | Ramp 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. |
Output | Generator output (generated ramp) |
Overflow | Will be set to true when the ramp output has reached overflow value |
Messages
Message | Description |
---|---|
Restart | Restart 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).
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.