Skip to main content

TestDisableUpdateBit

Valid for: CANoe DE • CANoe4SW DE Note
This function is not available for all OEM add-ons - depends on the CANoeIL.

Function Syntax

long TestDisableUpdateBit (dbSignal aSignal, double aValue);

Description

Disables the standard behavior of the update bit and sets the value of the update bit to a constant value. This function influences a simulation node with an assigned CANoe Interaction Layer. 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

  • aSignal: Signal that should be manipulated.
  • aValue: Constant value to which the update bit is set.

Return Values

  • 0: No error.
  • -1: General error.

Example

// disables the update bit of signal ‘DoorStatus_UB’ for 1000 ms
TestDisableUpdateBit(DoorStatus_UB, 0);
TestWaitForTimeout(1000);
TestEnableUpdateBit(DoorStatus_UB);
TestEnableUpdateBit