保存仿真
每個仿真可以用包含數據的文本文件(.txt)格式或表格圖像形式保存在工作區目錄中。
若要保存仿真數據:
1.在繪圖中,從Simulation(仿真)菜單中選中Store Simulation(存儲仿真)項;
2.出現File(文件)窗口后,為仿真文件(.CSV文件)輸入或選擇文件名;
3.在文件窗口上單擊OK。
若要將圖形保存為圖像(.sps)文件:
1.在繪圖中,從Simulation(仿真)菜單中選中Save Graph Image (保存表格圖像);
2.出現File(文件)窗口后,為圖形文件(.sps文件)輸入或選擇文件名;
3.在文件窗口上單擊OK。
打開保存的圖表
若要打開保存的圖表:
1.在繪圖中,從Simulation(仿真)菜單中選中Show Graph Image(顯示表格圖像);
2.出現File(文件)窗口后,選中圖形文件(.sps文件)。
圖形將在繪圖窗口中的另一個窗格中打開(上圖示例中的頂部)。
查看活動的變量
如仿真圖頂部所示,將提供當前步驟和穩定狀態下關于MV和CV的活動信息。事實上,三個標簽頁屏幕(顯示與在線HMI類似的電子表格)專用于顯示該特定信息。
例如,Control Overview(控制概述)顯示如下:
Reachable列顯示了變量的靜態值。Status列則給出了控制器考慮變量的信息,即BAD(不使用變量),INACTIVE(未使用)和ACTIVE(使用)。
后兩個選項卡界面顯示了以下內容:
? Subcontrol Overview (子控制概述) – 其顯示信息與控制概述相同,但按照子控制器進行排序。同時還顯示了子控制器的實際或請求狀態。
? Priority Sorting(優先級排序) - 根據已激活的優先級/經濟(優化)級別順序顯示操作和被控變量(MV/CVs)信息。
注意:(優先級排序)所有優先級中出現的黃色被控變量約束都對應于它們自己的優先級值。此外,所有出現的綠色變量約束顯示其優先級低于自己的優先級值。
注意:(計算結果)計算結果不顯示在圖中或任何表中。你需要打開內核調試功能并在計算日志文件中查看結果。
仿真報告
樹狀結構上的仿真報告模塊使用宏命令來生成HTML文檔。文檔包含了仿真場景中指定的所有起始條件和事件。
原文:
Saving a Simulation
Each simulation can be saved in the workspace directory as a text (.txt) file containing the data or as a graphic image.
To save the simulation data:
1.When in the plot, select Store Simulation from the Simulation menu.
2.When the** File** window appears, enter or select the file name for the simulation file (.CSV file).
3.Click OK on the File window.
To save the graph as an image (.sps) file:
1.When in the plot, select Save Graph Image from the** Simulation** menu.
2.When the** File** window appears, enter or select the file name for the graph file (.sps file).
3.Click** OK** on the File window.
Opening a Saved Graph
To open a saved graph:
1.When in the plot, select **Show Graph Image from the Simulation **menu.
2.When the File window appears, select the graph file (.sps file).
The graph opens in an additional pane in the plot window (top one in the above example).
Viewing Variable Activities
As seen in the top part of the simulation plot, information is provided about the activity of the MVs and CVs at the present step and at steady state. In fact, three tab screens (showing spreadsheets similar to the online HMI) are devoted to that specific information.
For instance, the Control Overview appears as follows
The Reachable column displays the static values of the variables. The Status column gives information on how the controller considered the variables, i.e. BAD (the variable is not used), INACTIVE (not used) and ACTIVE (used).
The last two tab screens display:
? Subcontrol Overview – The same information as the Control overview but sorted by sub-controller. Also displays the actual or requested status of the sub-controller.
? Priority Sorting – Displays only the information about the manipulated and controlled variables (MV/CVs) sorted according to the priority/economic (optimization) level at which they have been activated.
NOTE: (Priority Sorting) All the yellow constrained controlled variables appear in the priority levels corresponding to their own priority values. Also, all the green constrained variables appear in priority level lower than their own priority values.
Simulation Report
The Simulation Report module on the tree structure uses a macro command to generate an HTML document. The document contains all the starting conditions and events specified in the scenario for the simulation.
2016.10.30