Int8X

signal TPT.Int8X([string name])

Declares a new assessment variable of type int8 (-128 .. 127) and exports the variable to the export record for signal viewer.

Parameters:

[name] (optional) logical name of the new assessment variable. This parameter is optional. If specified, this name is used for the signal viewer and report. If not specified, the name will be automatically derived from the variable name it is assigned to. Example foo = TPT.Int8X() leads to a new assessment variable with logical name foo

Returns:

new assessment variable

Examples:

   # create an int8 assessment variable with name "dv" and set the value to constantly 2
   dv = TPT.Int8X();
   dv := 2;
   
   # create an int8 assessment variable with name "dc" but shown as "visible dv"
   #  in report and signal viewer
   dc = TPT.Int8X("visible dv");
   dc(t) := (t < 1sec) ? 13 : 17; # value changes from 13 to 17 after 1sec