poITracingCtrl GetSimStepList

Gets the list of simulation traced steps.

Syntax

poITracingCtrl_handle GetSimStepList

Application

HyperView Tcl Query

Description

When the tracing mode is LIST, this command returns the simulation step indices that are traced.

Examples

To set and return the list of simulation steps to trace:
hwi OpenStack
if {[catch {
    hwi GetSessionHandle session_handle
    hwi GetActiveClientHandle client_handle
    client_handle GetModelHandle model_handle [client_handle GetActiveModel]
    model_handle GetTracingCtrlHandle tc_handle
    tc_handle AddEntity node "Node 251"
    tc_handle AddEntity node "Node 197"
    tc_handle SetEntityColor node "Node 197" "255 0 0";
    tc_handle SetMode list;
    tc_handle SetSimSteps "0 1 2 3 4 5";
    set mode [tc_handle GetMode];
    set sList [tc_handle GetSimStepList];
    set traceColor [tc_handle GetEntityColor node "Node 251"];
    set traceColor2 [tc_handle GetEntityColor node "Node 197"];
} result]} {
    global errorInfo;
    puts stderr $result;
    puts "[session_handle GetError]";
    puts stderr "*** Tcl TRACE ***";
    puts stderr $errorInfo;
} else {
    puts "********";
    puts "Mode = $mode";
    puts "Steps = $sList";
    puts "********";
    puts "No errors.";
    puts "Warnings: ";
    puts "    [session_handle GetError]";
}   
hwi CloseStack

Console Output:

********
Mode = list
Steps = 0 1 2 3 4 5
********
No errors.
Warnings: 

Errors

Returns HW_InvalidHandle if the tracing control handle is invalid.