Skip to main content
Open topic with navigation

sysGetVariableSVType

CAPL Functions » System Variables » sysGetVariableSVType

Tool Availability

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

long sysGetVariableSVType(sysvar);

Description

Gets the type of a system variable encoded as a long integer.

Parameters

  • sysvar: A value of type system variable.

Return Values

  • 0: Invalid
  • 1: Double (64 Bit)
  • 2: Integer (32 Bit)
  • 3: String
  • 4: Double Array
  • 5: Integer Array
  • 6: Integer (64 Bit)
  • 7: Data

Example

long t1, t2;
t1 = sysGetVariableSVType(lookupSysvar("mysysvar"));
t2 = sysGetVariableSVType(sysvar::mysysvar);