Int32X

signal TPT.Int32X([string name])

Declares a new assessment variable of type int32 (-2^31 .. 2^31-1) 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.Int32X() leads to a new assessment variable with logical name foo

Returns:

new assessment variable

Examples:

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

See Also:

TPT.Int32()