StmControl_Start, StmControl_Stop, StmControl_Reset, StmControl_Destroy
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
long StmControl_Start(Stimulus::TstimulusId); // form 1long StmControl_Stop(Stimulus::TstimulusId); // form 2long StmControl_Reset(Stimulus::TstimulusId); // form 3long StmControl_Destroy(Stimulus::TstimulusId); // form 4long StmControl_Start(Stimulus::TstimulusId, dword duration); // form 5
Destructor
stimulus.Destroy()
Method Syntax
stimulus.Start(); // form 1stimulus.Stop(); // form 2stimulus.Reset(); // form 3stimulus.Start(dword duration); // form 4
Description
The four control functions have the same Parameter. They only need an ID that refers to the specific stimulus.Parameters
- Stimulus::TStimulusId: The ID that is returned when a stimulus is created.
- duration: Runtime of stimulus
Return Values
- 0: Successful
- -1: Stimulus for given ID does not exist
- -2: Node layer module is deactivated and cannot process the request