Skip to main content

StmCreate_Ramp (limits user-defined)

CAPL Functions » Test Service Library » Stimulus Functions » StmCreate_Ramp (limits user-defined) Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

To stimulate signals:
To stimulate signals with the Interaction Layer (IL):
To stimulate environment variables:
To stimulate system variables:
To stimulate system variables (64 bit):

Constructor

Constructor

Description

Creates a stimulus generator that creates a ramp.

Parameters

  • aMessage: Existing message (dbMsg type) in DB
  • aDBSignal: Existing signal (dbSignal type) in DB
  • EnvVarHandle: Existing environment variable (EnvVar type) in DB
  • SystemVariable: Must be available in the configuration.
  • ValueA and ValueB:
    • Value A = Value B: ESE Invalid stimuli effect (measurement stops)
    • Value A and Value B are physical values, not raw values. They can be user-defined or will be taken from the CANdb++ database (dbc-file) that is assigned to the CANoe configuration and are called Minimum and Maximum of the signal.
  • CycleTime: ms; 1 < x < ∞
    • Defines the cycle in which the signal value in the message buffer is being updated. There is no affect to the bus.
    • Defines the cycle in which the value of the environment or system variable is being updated.
  • TimeUp: ms; 0 < x < ∞
  • TimeHigh: ms; 0 < x < ∞
  • TimeDown: ms; 0 < x < ∞
  • TimeLow: ms; 0 < x < ∞

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:
To stimulate signals with the Interaction Layer:
To stimulate environment variables:
To stimulate system variables:

Example Code

Stimulus Generator: Sample Code StmCreate_Ramp