Integrate libraries into simulation model |
|
<< Click to show table of contents >> Navigation: Connection to 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:
•SimUIToolbox library
•SimJSON library
•Plant2Controller library
•SimUIObjects_Public with subclasses for:
oToolboxDef
oToolboxCtrl
oSimJSONCtrl
oPlant2Controller
oModelstartCtrl
oAutoexec (optional if another autoexec is used)
2. Import statistics gathering frame
3. Insert subclasses into model frame (check naming each)
•Plant2Controller
•ErrorCtrl
•SimJSONCtrl
4. Insert result collection network into model frame
5. Insert endsim-method: from template in Plant2Controller library into model frame, rename to "endsim" (or integrate into existing endsim-method)
6. Adjust ModelStartCtrl subclass
•Check Parameter v_sDestinationNetworkMode= "UpdateNetwork"
•Set Variable v_oRootModelNetworkDef (:object) to the root frame
7. Check SimJSONCtrl
•v_oToolboxDefinition: path to toolbox definition subclass
•v_oToolboxCtrl: path to toolboxCtrl subclass (class in library cannot be used)
•v_DestinationNetworkMode="UpdateNetwork"
•v_oExtMethod_ResultStatDefAndCollection: path to general method within frame which collects and registers the simulation results
With these steps the model is prepared to be used in the general work flow for SimUI.
© SimPlan AG - Hanau District Court, Commercial Register (Part B) 6845 - info@simplan.de - www.simplan.de