Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
HILAPISetSignalGeneratorSamplingTime
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
By default, all signal generators work with a cycle time of one millisecond. This means that every millisecond a new signal value is calculated and written to the system variable assigned to the generator. By calling this function you can change this cycle time. To do this, you can call this function at any time (before the generator starts or while it is already running) and specify a new cycle time. The smallest possible cycle time is one millisecond. Please note that this function can only be used for signal generators that actively output signal values. These are e.g. generators that stimulate a system variable. For signal generators that stimulate bus signals, the transmission behavior is already predetermined by the bus configuration. In this case, the Signal Generator does not work with a fixed cycle time, so that calling this function is not possible.Parameters
- handle: The handle of the Signal Generator.
- samplingTimeMs: The sampling time to set in milliseconds (must be > 0).
Return Values
- 0: The sampling rate was set successfully.
- !=0: The sampling rate could not be set.