Skip to main content

StmCreate_Ramp (limits taken from database)

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

To stimulate signals:
dword StmCreate_Ramp(message aMessage, dbsignal aDBSignal, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);
To stimulate signals with the Interaction Layer (IL):
dword StmCreate_Ramp(signal aDBSignal, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);
To stimulate environment variables:
dword StmCreate_Ramp(dbenvvar EnvVarHandle, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);
To stimulate system variables:
dword StmCreate_Ramp(sysvar SystemVariable, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);

Constructor

TestStimulus::CreateRamp
TestStimulus::CreateRamp(message aMessage, dbsignal aDBSignal, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);
TestStimulus::CreateRamp(signal aDBSignal, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);
TestStimulus::CreateRamp(dbenvvar EnvVarHandle, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);
TestStimulus::CreateRamp(sysvar SystemVariable, dword CycleTime, dword TimeUp, dword TimeHigh, dword TimeDown, dword TimeLow);

Description

Creates a stimulus generator that creates a ramp.

Parameters

Return Values

  • 0: Stimulus could not be created and must not be referenced
  • > 0: Stimulus was created successfully and may be referenced using the handle
Later this ID can be used to control the stimuli.

Example

To stimulate signals:
mId = StmCreate_Ramp(MsgBuf, Msg::Sig, CycleTime, Tup, Thigh, Tdown, Tlow);
To stimulate signals with the Interaction Layer:
mId = StmCreate_Ramp(Msg::Sig, CycleTime, Tup, Thigh, Tdown, Tlow);
To stimulate environment variables:
mId = StmCreate_Ramp(EnvVarToStimulate, CycleTime, Tup, Thigh, Tdown, Tlow);
To stimulate system variables:
mId = StmCreate_Ramp(SysVarToStimulate, CycleTime, Tup, Thigh, Tdown, Tlow);
Stimulus Generator: Sample Code StmCreate_Ramp