AREthSetValuePhys
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
This function can be used to set a physical value in 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 specified in the FIBEX database or the conversion formula of type identical (Factor 1, no Offset) is specified, the function returns an error code. In this case, the value must be specified in raw format (see AREthSetValueDWord, for example).
- For large numerical values, conversion from real numbers to integers can result in deviations.
Parameters
-
objectHandle: Handle to a AUTOSAR Eth IL object, which must be completely described in the AUTOSAR database. The following objects are supported:
- Messages
- Fields
- Method calls: Handle to a method call that was created with AREthCreateMethodCall.
- valuePath: Path of the value to be set. For specification of complex paths, a corresponding syntax must be adhered to (see also Syntax for Database-based Access Paths).
- value: New physical value
Return Values
- 0: The function was successfully executed
- >0: Error code
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 return parameter Result a factor and offset is set in the database.- AREthFillValues
- AREthGetDestinationAddress
- AREthGetDestinationPort
- AREthGetInterfaceVersion
- AREthGetLength
- AREthGetMessageId
- AREthGetMessageType
- AREthGetProtocol
- AREthGetProtocolVersion
- AREthGetRequestId
- AREthGetReturnCode
- AREthGetSourceAddress
- AREthGetSourcePort
- AREthGetValue
- AREthGetValueDWord
- AREthGetValueFloat
- AREthGetValueInt64
- AREthGetValueLong
- AREthGetValuePhys
- AREthGetValueQWord
- AREthGetValueString
- AREthSetRequestId
- AREthSetReturnCode
- AREthSetValue
- AREthSetValueDWord
- AREthSetValueFloat
- AREthSetValueInt64
- AREthSetValueLong
- AREthSetValuePhys
- AREthSetValueQWord
- AREthSetValueString
- Syntax for Database-based Access Paths
- Syntax for Predefined Service Discovery (SD) Access Paths