Skip to main content

C2xAssignNodeToStation

Valid for: CANoe DE

Function Syntax

long C2xAssignNodeToStation(long stationHandle, char* dbName, chat* nodeName);

Description

Assigns a database node to an ITS station.

Parameters

  • stationHandle: Handle of the station to assign the database node to.
  • dbName: Name of the database
  • nodeName: Name of the node to assign

Return Values

  • 0: Ok
  • -1: Internal error
  • 1: No station found for the parameter stationHandle
  • 2: No dbNode found to assign

Example

on key 'c'
{
    long stationHdl;

    stationHdl = C2xGetStationHandleByStationName("Car1");

    C2xAssignNodeToStation(stationHdl, "EU_ApplMsg", "Car1");
}