Skip to main content

C2xTestJoinSignalInRange

Valid for: CANoe DE

Function Syntax

long C2xTestJoinSignalInRange (char* protocolDesignator, char* tokenDesignator, int64 minTokenValue,  int64 maxTokenValue) // form 1
long C2xTestJoinSignalInRange (char* protocolDesignator, char* tokenDesignator, int64 minTokenValue,  int64 maxTokenValue, char* stationName) // form 2

Description

Completes the current set of joined events with the transmitted event. This function does not wait.

Parameters

  • protocolDesignator: Protocol designator of the Car2x message that should be awaited.
  • tokenDesignator: Token designator of the Car2x message that should be awaited.
  • minTokenValue: Lower limit of the value.
  • maxTokenValue: Lower limit of the value.
  • stationName: Name of the sender station of the Car2x message that should be awaited.

Return Values

  • -1: General error, for example, functionality is not available.
  • >0: Number of the joined event.

Example

long index;
long packet;

// Form 1
index = C2xTestJoinSignalInRange("CAM","cam::generationDeltaTime", 20, 100);
// Form 2
C2xTestJoinSignalInRange("DENM", "denm::management::actionID::sequenceNumber", 1, 20, "Station1");
testWaitForAllJoinedEvents(1000);
// Get message of first joined event
C2xTestGetWaitForMessage(index, packet);
C2xTestJoinSignalMatch | C2xTestWaitForSignalMatch | C2xTestWaitForSignalInRange