Skip to main content

SomeIpGetValuePhys

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

This function can be used to read out a physical value from the object specified in the objectHandle parameter. All necessary information such as data type and conversion formula must be stored in the FIBEX database. Note:
  • If no conversion formula is stored in the database, identical (Factor 1, no Offset) is applied implicitly.
  • For large numerical values, conversion from real numbers to integers can result in deviations.

Parameters

  • objectHandle: Handle to a SOME/IP IL Object. The following objects are supported:
  • valuePath: Path of the value to be read out. For specification of complex paths, a corresponding syntax must be adhered to (see also Syntax for Database-based Access Paths).

Return Values

  • Physical value: In the Event of an error, the function returns the value 0. The SomeIpGetLastError function can then be used to check whether the value is valid or an error has occurred.

Example

In this example, it is assumed that the created method is contained in the FIBEX database that is assigned to the CANoe configuration. The method has the Method ID 31, two input parameters Member_value1 and Member_value2, and a return parameter Result. For the variables Member_value1 and Member_value2 a factor and offset is set in the database.
See Also