Skip to main content

Test Service Library: Stimulus Functions

Open topic with navigation CAPL Functions » Test Service Library » Stimulus Functions Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE Stimulus Generators are part of the Test Service Library. They allow the user to stimulate signals or environment variables - referred to as data sinks in the following - according to a specific time behavior. With the exception of StmCreate_CSV (non-cyclic) all Stimulus Generators have a cycle time. This cycle time indicates the cycle at which the value of the data sink is updated. With the exception of StmCreate_EnvVar each Stimulus Generator has a period length T after which the values are repeated for the data sink. The program supports user-defined integers up to 32 bit.

The following types of Stimulus Generators are available:

The Stimulus Generators are created and controlled by the following functions in CAPL:

Note:
  • Once the Stimulus Generator has been destroyed the stimulus can no longer be used. If necessary a new stimulus must be generated by another means.
  • All given signal values are always physical values. Physical value = raw value * factor + offset. The values for “factor” and “offset” are defined in the database.