diagGetComplexRespParameter
Valid for: CANoe DE The behavior of this CAPL function depends on the used parameters. Possible scenarios:Retrieve the value of a numeric complex parameter
Function Syntax
Method Syntax
Description
Returns the value of a numeric complex parameter. This function offers access to parameters contained in a received response object, whereby the function is addressed directly by the request. This eliminates the need to generate a separate response object. If no response is available yet for the request, an error is reported.Parameters
- req: Request
- parameterName: Parameter qualifier
- iteration: Iteration (beginning with 0)
- subParameter: Sub parameter qualifier
- output: Output field. If given,
outputcontains the value of the parameter after return of this method. - mode: Switch the representation of the transmitted value according to the given mode.
Return Values
- Error code,
- or value of the parameter or 0.0 if this could not be acquired.
Example
Using Diagnostics Functions in Test CasesRetrieve the symbolic value of a complex parameter
Function Syntax
Method Syntax
Description
Returns the symbolic value of a complex parameter. This is possible for all parameters. This function offers access to parameters contained in a received response object, whereby the function is addressed directly by the request. This eliminates the need to generate a separate response object. If no response is available yet for the request, an error is reported.Parameters
- req: Request
- parameterName: Parameter qualifier
- iteration: Iteration (beginning with 0)
- subParameter: Sub parameter qualifier
- buffer: Output buffer
- bufferLen: Buffer size
Return Values
Example
Using Diagnostics Functions in Test CasesRetrieve the numeric sub-parameter from a parameter iteration directly
Function Syntax
Method Syntax
Description
Retrieve numeric sub-parameter from a parameter iteration directly. This function offers access to parameters contained in a received response object, whereby the function is addressed directly by the request. This eliminates the need to generate a separate response object. If no response is available yet for the request, an error is reported.Parameters
- req: Request
- parameterName: Parameter qualifier
- iteration: Iteration (beginning with 0)
- subParameter: Sub parameter qualifier
- mode: Switch the representation of the transmitted value according to the given mode.
Return Values
- Parameter value.