Page 796 - ExtendSim User Guide
P. 796

770 Data Management and Exchange
Other internal data storage and management methods
ning on different computers on the same local area network (LAN). Since mail slots involve programming, they are described in the Developer Reference.” on page 790.
Extend the variable connector at the bottom of the Write block so that the R (row) input is displayed. Then connect the output of the second Simulation Variable block to the R input.
This causes the Write block to write the data to a new row at each step.
Run the model.
The Excel worksheet should show 4 columns of data. Simulation time is the first column and the reservoir contents, rainfall amount, and stream contributions are the other three columns.
To access Excel’s formatting tools, double-click the embedded Excel object. This places Excel commands and tools within the ExtendSim application window. Use these tools and com- mands to format the object’s data, chart the data, and so forth.
How to embed an object into a dialog
Block developers can embed objects into the blocks they create. They do this by selecting the “Embedded Object” type of dialog item when creating the block. This places a rectangle in the dialog editor for embedding an ActiveX control or other kind of object. The embedded object is referenced in the block’s code via a combination of its dialog item name and container object block number, using ModL functions as described in the Developer Reference.
The Bar Chart and Gantt Chart blocks (Plotter library) are examples of Graphics Server ActiveX controls embedded in ExtendSim block dialogs. For more information on ModL pro- gramming to control embedded objects or how to use ExtendSim as an Automation Client or Server, see the Developer Reference.
The Insert Object dialog
The Insert Object dialog appears when the com- mand Edit > Insert Object is given; it is used for selecting an object for embedding. A scrollable lists displays the insertable objects that are avail- able for your machine.
If “Create New” is selected in the dialog, Extend-
Sim will create a new object of the indicated type
with no data associated with it—basically an
empty document of the specified type. Selecting
“Create from File” creates an embedded object
with the data from that file as the starting point. If
the “Display As Icon” box is checked, the new
object will only display in ExtendSim as an icon, rather than as the control’s interface.
The use of the Insert Object dialog will have different meanings depending on which Extend- Sim window is open. If a model or hierarchical worksheet window is open, issuing this com- mand will insert a Container Object on the model. If a dialog with an Embedded Object dialog item is open, it will insert the embedded object into that dialog item.
Linked lists
A linked list is an internal data structure that allows the construction and manipulation of com- plex lists of data. It can be accessed only through programming. Linked lists are queue-like structures of multiple types that maintain internal pointers between different elements. This
Insert Object dialog
How To

   794   795   796   797   798