TCIL_MeasurementCommandRaw, TCIL_MeasurementCommandPhysical
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long TCIL_MeasurementCommandRaw(dbNode client, dword ddi, dword elementNumber, char[] logTriggerType, long triggerValue); // form 1long TCIL_MeasurementCommandRaw(dword addressClient, dword ddi, dword elementNumber, char[] logTriggerType, long triggerValue); // form 2long TCIL_MeasurementCommandRaw(dbNode tc, dbNode client, dword ddi, dword elementNumber, char[] logTriggerType, long triggerValue); // form 3long TCIL_MeasurementCommandRaw(dbNode tc, dword addressClient, dword ddi, dword elementNumber, char[] logTriggerType, long triggerValue); // form 4long TCIL_MeasurementCommandPhysical(dbNode client, dword ddi, dword elementNumber, char[] logTriggerType, double triggerValue); // form 5long TCIL_MeasurementCommandPhysical(dword addressClient, dword ddi, dword elementNumber, char[] logTriggerType, double triggerValue); // form 6long TCIL_MeasurementCommandPhysical(dbNode tc, dbNode client, dword ddi, dword elementNumber, char[] logTriggerType, double triggerValue); // form 7long TCIL_MeasurementCommandPhysical(dbNode tc, dword addressClient, dword ddi, dword elementNumber, char[] logTriggerType, double triggerValue); // form 8
Description
These functions send a trigger definition to the client.Parameters
- tc: Task Controller simulation node to apply the function.
- client: Task Controller client node the TC sends the Measurement command to.
- addressClient: Address of the Task Controller client node the TC sends the Measurement command to.
- elementNumber: Element number, 0x000..0xFFF.
- ddi: Data dictionary identifier, 0x0000..0xFFFF.
- logTriggerType:
- time_interval: The client sends the value cyclically with this time interval = triggerValue. 0 stops measurement, 100 ms is the minimum. Unit: milliseconds.
- distance_interval: The client sends the value cyclically with this distance interval = triggerValue. 0 stops measurement. Unit: millimeters.
- min_within_threshold: The client sends the value when it is higher than the triggerValue. Unit: as specified by the DDI definition.
- max_within_threshold: The client sends the value when it is lower than the triggerValue. Unit: as specified by the DDI definition.
- change_threshold: The client sends the value when the change is higher than or equal to the triggerValue since last transmission. 0 stops measurement, 1 logs each change. Unit: as specified by the DDI definition.
- triggerValue: Raw or physical logging trigger value.
Return Values
- 0: Property has been set successfully
- < 0: An error has occurred: IL Error Code