Skip to main content

TestResetNodeSignalValues

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long TestResetNodeSignalValues (dbNode aNode);

Description

Resets all tx-signals of the given node to their initial value. The sending of the messages depends on the messages send type. The reset-function does not contain a waiting time which guarantees that all signals are sent out on the bus. If a waiting time is desired, the TestWaitForTimeout function has additionally been executed. Note: Dependent on the used parameter type, the appropriate bus context in a multibus environment has only to be set before the function is called if the corresponding database object will be ambiguous. Further information on site MultiBus Environment.

Parameters

  • aNode: Node which tx-signals should be reset.

Return Values

  • 0: No error
  • -1: General error

Example

// check reaction of signal "LockState" after crash
$CrashDetected = 1;
TestWaitForTimeout(100);
if ($LockState !=  Unlocked)
    TestStepFail("Doors are locked after crash is detected!");

// reset test signals of node "SUT"
TestResetNodeSignalValues(SUT);
TestWaitForTimeout(200);
TestResetEnvVarValueTestResetNamespaceSysVarValuesTestResetSignalValueTestResetSysVarValue