SetStationAttributeDouble
CAPL Functions » ADAS » SetStationAttributeDouble Valid for: CANoe DE NoteThis CAPL function is also available in C#.
Function Syntax
C#bool SetStationAttributeDouble.Call(string stationName, string attribute, int32 keypointIndex, double value);
CAPLint SetStationAttributeDouble.Call(char[] stationName, char[] attribute, int keypointIndex, double value);
Description
Sets values for attributes based on the attribute name and keypoint (index) in the Scenario Editor timeline.Parameters
- stationName: The name of the station for which the attribute shall be set.
-
attribute: The name of the attribute which shall be set. Available default (double) attributes:
- Latitude
- Longitude
- Heading
- Elevation
- Acceleration
- keypointIndex: An attribute may have several keypoints in the Scenario Editor timeline. This parameter allows to set different values for each keypoint. Starts with 0 (First keypoint has index 0, second keypoint has index 1, … )
- value: The value to be set.
Return Values
C#- true: Set was successful
- false: Set failed. Check for incorrect attribute name.
- 1: Set was successful
- 0: Set failed. Check for incorrect attribute name.