Skip to main content
Open topic with navigation CAPL Functions » Smart Charging » SCC Modeling Libraries (Simulation Setup) » V2G Data Queries » EV Functions » SCC_GetCostData

SCC_GetCostData

Valid for: CANoe DE • CANoe4SW DE Note

Function Syntax

void SCC_GetCostData ( long i1, long i2, long i3, 
long i4, char CostKind[], dword& Amount, 
long& AmountMultiplier, long& HasMultiplier )

Description

Gets the kind, amount and multiplier (range [-3..3]) values of the Cost element with the selected indices.

Parameters

  • i1: Selected index of the target SAScheduleTuple.
  • i2: Selected index of the target SalesTariffEntry.
  • i3: Selected index of the target ConsumptionCost element.
  • i4: Selected index of the target Cost element.
  • CostKind: Queries the kind of the Cost element with the selected indices (to the given char buffer).
  • Amount: Gets the amount of the Cost element with the selected indices (via reference).
  • Multiplier: Gets the Multiplier (range [-3..3]) value of the Cost element with the selected indices (via reference).
  • HasMultiplier: Gets the HasMultiplier flag that is set to 0 to denote that the multiplier is not present (via reference).

Return Values

Example