TCIL_ConnectSysVarWithDataEntity
CAPL Functions » ISO11783 » Task Controller Interaction Layer (TC IL) » TCIL_ConnectSysVarWithDataEntityTool Availability
Valid for: CANoe DE • CANoe4SW DENote
If parameter address is used the function succeeds only if the client has claimed an address.Function Syntax
Description
This function connects a data entity specified by the data dictionary identifier to a system variable. If the value of the data entity is changed, the new value is put into the system variable. To release connection between the system variable and data entity, just call the same method again, but with the empty string instead of the name of system variable.Parameters
- ddi: Data dictionary identifier of the data entity, 0x0000..0xFFFF.
- elementNumber: Element number of the data entity, 0x000..0xFFF.
- sysVarNameWithPath: Name of the system variable, all namespaces inclusive.
- useRawValue:
- 1: The connected system variable represents the raw value of data entity. This variant can be used even if the corresponding device descriptor object pool is not uploaded to the Task Controller simulated by TC IL.
- 0: The connected system variable represents the physical value of data entry. Precondition: The corresponding device descriptor object pool has to be uploaded to Task Controller simulated by TC IL and the data entry belongs to the device descriptor object pool.
- client: Task Controller client which provides the device descriptor object pool with corresponding data entity.
- addressClient: Address of the Task Controller client which provides the device descriptor object pool with corresponding data entity.
- tc: Task Controller simulation node to apply the function.
Return Values
- 0: Function has been executed successfully
- < 0: An error has occurred, see IL Error Code