Skip to main content
Open topic with navigation

OnStationAttributeTrigger

CAPL Functions » ADAS » OnStationAttributeTrigger Valid for: CANoe DE Note: This CAPL function is also available in C#.

Function Syntax

C#
void OnStationAttributeTrigger(_ADAS.DataModel.IScenarioManager_Types.OnStationAttributeTrigger.TransientCallContext cct)
CAPL
void OnStationAttributeTrigger ()

Description

This callback is called when the value of an attribute of a station has changed.

Parameters

C#
  • tcc: Call Context of the Callback. Contains the station name (cct.stationName) and the attribute name (cct.attributeName).
CAPL

Return Values

Example

In the examples it is assumed in each case that a DO object of the type IScenarioManager was created.

CAPL

on fct_called ADAS::ScenarioManager.OnStationAttributeTrigger
{
  write("Attribute trigger: %s, %s", this.stationName, this.attributeName);
}

C#

[OnCalled(ScenarioManager.MemberIDs.OnStationAttributeTrigger)]
public void OnStationAttributeTrigger(_ADAS.DataModel.IScenarioManager_Types.OnStationAttributeTrigger.TransientCallContext cct)
{
  Output.WriteLine(String.Format("Attribute trigger: {0}, {1}", cct.stationName, cct.attributeName));
}