Integration von Bibliotheken in das Simulationsmodell |
|
<< Klicken um Inhaltsverzeichnis anzuzeigen >> Navigation: Verbindung zu Plant Simulation >
|
In case predefined libraries (especially for toolbox and simulation results) are available, the following steps are necessary to integrate the model into the SimUI work flow:
1. Import SimUIObjects folder with:
•SimJSON library
•Plant2Controller library
•SimUIObjects_Public with customer subclasses for:
oToolboxDef
oSimJSONCtrl
oPlant2Controller
oModelstartCtrl
oAutoexec (optional if another autoexec is used)
2. Import statistics gathering frame
•e.g. folder SimUI_Stat_Gathering_Example
3. Insert subclasses into Plant Simulation model frame (check naming each, no +1 or similar in naming)
•Plant2Controller
•ErrorCtrl
•SimJSONCtrl
4. Insert result collection network into model frame
•e.g. SimUI_Stat_Gathering_Example
5. Insert endsim-method: from template in Plant2Controller library into model frame, rename to "endsim" (or integrate into existing endsim-method)
6. Adjust ModelStartCtrl class library subclass
•Check Parameter v_sDestinationNetworkMode= “UpdateNetwork”
•Set Variable v_oRootModelNetworkDef (:object) to the root frame
•(create from template would be different mode, where the whole structure is created and duplicated)
•Note: IgnoreSimTalk-Parameters could be used for debugging, If Plant Simulation is visible on the host where the SimController is running; this could be prohibited by Plant Simulation license which e.g. directly limits the visibility of Plant Simulation
7. Check SimJSONCtrl
•v_oToolboxDefinition: path to toolbox definition subclass network
•v_DestinationNetworkMode=”UpdateNetwork”
oLegacy Variable
•v_oExtMethod_ResultStatDefAndCollection: path to general method within root frame of Plant Simulation model network which collects and registers the simulation results to and for SimJSONResults.
e.g. the Method m_GatherSimUIStatistics in SimUI_Stat_Example in root folder of Plant Simulation Model Network
With these steps the model is prepared to be used in the general work flow for SimUI.
© SimPlan AG - AG Hanau HRB 6845 - info@simplan.de - www.simplan.de