getSignals

signal[] TPT.getSignals(int? role)

delivers all signals that are currently declared in the global namespace. Signals are all input/output/local channels as well as parameters (declared in the declaration editor) and all manually created signals (using functions such as TPT.Double() etc.).

Parameters:

role optional role parameter that can be used to filter only those signals with the specified role. Possible values are TPT.INPUT, TPT.OUTPUT,TPT.LOCAL,TPT.PARAMETER, TPT.FUNCTION_IN, TPT.FUNCTION_OUT, TPT.VM_INTERNAL_CHANNEL,TPT.ASSESS_VARIABLE, TPT.MEASUREMENT_VARIABLE.

Returns:

list of all declared signals (inputs, outputs, assessment variables, measurements, etc.)

Examples:

   for v in TPT.getSignals(TPT.LOCAL):
     print v.getName() + " is a local channel defined in " + v.toTimeRangeString()
  

See Also:

signal