Skip to main content
Open topic with navigation CAPL Functions » XCP » xcpGetPollingCycle

xcpGetPollingCycle

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long xcpGetPollingCycle(char namespace[], char variable[]); // form 1
  • long xcpGetPollingCycle(sysvar sysvar); // form 2

Description

Returns the cycle time of a parameter, if the read mode of the parameter is set to polling.

Parameters

  • namespace: Namespace of the corresponding system variable.
  • variable: Name of the corresponding system variable.
  • sysvar: Name of the fully qualified name of the system variable, including all namespaces, separated by ”::”. The name must be preceded by “sysvar::”.

Return Values

  • > 0: Cycle time
  • -1: System variable of the parameter was not found
  • -2: Operation not allowed

Example