Main Content

有关Simscape结果资源管理器

SimScape™Results Explorer是一种交互式工具,可让您导航和绘制仿真数据记录结果。

When you configure the model to log simulation data (for the whole model or just the selected blocks), you can make the Simscape Results Explorer window open automatically upon completing a simulation run by selecting theOpen viewer after simulation复选框在“配置参数”对话框中。有关此工作流程的更多信息,请参阅日志,导航和绘制仿真数据

打开SIMSCAPE结果Explorer窗口的其他方法是:

  • 使用sscexplore功能。

  • In the model window, on theSimulation选项卡,单击审查结果>结果资源管理器

  • 在模型中选择一个SIMSCAPE块,然后在SIMSCAPE块选项卡,单击审查结果>结果资源管理器

  • 右键单击一个块,从上下文菜单中选择Simscape>查看仿真数据。有关更多信息,请参阅记录和查看所选块的仿真数据

Selecting Nodes to Plot Data

当您单击Simscape Results Explorer的左窗格中的节点时,相应的曲线显示在右窗格中:

  • 单击表示一个块显示该块中所有变量的图的节点。

  • 单击表示变量的节点仅显示该变量的绘图。

  • In frequency-and-time simulation mode, clicking a node that represents a frequency variable displays the plots for this variable's instantaneous value, amplitude, offset, and phase. You can click each of the subnodes to see that data separately. For more information, see频率和时间仿真模式

  • 要选择几个用于并排图比较的变量,请按CTRL,然后单击多个节点。

Link toMATLABSession

您可以通过链接和连接窗口来控制Simscape Results Explorer窗口是否重复使用,或者在下一次仿真后打开新窗口,通过链接和连接窗口来打开新窗口。

当您首次打开Simscape Results Explorer窗口时,它链接到当前MATLAB®session. This means that when you run a new simulation, the results in the window will be overwritten. To retain the current results and open a new window after the next simulation, click theLinkedSimscape Results Explorer窗口工具栏中的按钮。按钮更改为UNNINK,这意味着现在该窗口与仿真无关。下次您重新运行仿真或使用选项查看SimScape Results Explorer中的仿真数据,然后打开新窗口,并且该窗口现在已链接到会话。

只能将一个窗口链接到会话,因此,如果您打开了多个窗口,将其中一个链接起来(通过单击其UNNINK按钮)未链接前一个。

链接到框图

SIMSCAPE结果Explorer工具提供了直接链接到框图。这些链接可让您突出显示适当的块或打开“块”对话框,以轻松从Simscape Results Explorer树中列出的变量转到初始目标在相应的块对话框中的部分。

当您在SimScape Results Explorer树中选择一个节点时节点统计panel in the bottom-left corner of the window is collapsed by default. When you expand this panel, it contains the following links:

  • 描述— If the node represents a block or subsystem, displays the block or subsystem name. If the node represents a variable, displays the descriptive variable name, which is the same name that appears in the初始目标section of the block dialog box. Clicking the link opens the dialog box for the corresponding block.

    例如,在上面的图中,选定的节点wrepresents a variable calledRotational velocity。单击描述链接打开Inertia块对话框,这是此变量的父块。在“块”对话框中,展开初始目标查看Rotational velocity多变的。

  • Source— If the node represents a variable, displays the name of the parent block for this variable. Clicking the link highlights the corresponding block in the block diagram, opening the appropriate subsystem if needed.

    在同一示例中,单击Source链接打开DC Motor subsystem and highlights the Inertia block, which is the parent block for the selected nodew

小费

如果变量或块的描述性名称太长,无法适合状态面板,则用省略号将其截断()。如果悬停在截短的名称上,则状态面板的工具提示显示整个描述性名称。

组件阵列的数据记录

如果你有潜在arra模型包含块ys of components, the Simscape Results Explorer includes logged simulation data for the array members.

For example, in this model, the电阻阵列block contains an underlying array of resistors.

When you simulate this model, the Simscape Results Explorer tree includes nodes for the numbered array members, such as电阻(1),,,,电阻(2), 等等。如果组件数组大小为1xn,成员编号comp(1),…,,comp(n)。如果阵列大小为NxM,成员编号comp(1,1),,,,comp(1,2),…,,comp(NxM)

Unlike regular blocks, clicking a node that represents a block with an underlying array of components does not display any plots. Click a node that represents an individual array member to see plots of all of its variables.

也可以看看

Related Topics