mostParamSetStringEnc
Valid for: CANoe DEFunction Syntax
Description
Encoding and setting of parameters of the String type (for ASCII-coded strings only) in an AMS message using the parameter name from the XML function catalog. Only ASCII-coded strings are supported. Note: The parameter description must go with the message content. The compiler is not able to validate this here. Errors only appear at runtime of the CAPL program, if applicable. This function is primarily used to access messages, whose content was previously limited explicitly, e.g. by the declaration. The message must be populated in the order of its parameters particularly for messages with StreamCases. If the parameter is not part of the message or not the expected type, an error message it output in the Write Window and the measurement stops.Parameters
- msg: Message in which the parameter value should be described.
- paramAdr: Identification of parameters (see Symbolic Identification of Parameters).
- arrayIndex: Parameter index in arrays or sequences. This declaration overwrites the indexing in the brackets of
<paramAdr>. - enconding: Specifies the target encoding. Supported target encodings:
0x00: Unicode, UTF160x01: ISO 8859/15 8 bit0x02: Unicode, UTF80x03: RDS0x04: DAB Charset 00010x05: DAB Charset 00100x06: DAB Charset 00110x07: SHIFT_JIS
- asciiStr: String that should be encoded and copied to the message.
Return Values
See error codes.Example
- -> Message parameter bytes: 00 00 61 00 62 00 63 00 00