Page 794 - ExtendSim User Guide
P. 794

Data Management and Exchange
Other internal data storage and management methods
2) Withdataaccessblocks,suchastheReadandWriteblocks(Valuelibrary),toexchange data between a model and a global array. Data access blocks are discussed on page 772.
3) Usingglobalarrayfunctionsinanequation-basedblockfromtheValueorItemlibraryto manage data. These blocks are discussed in “Equation-based blocks” on page 695.
4) ProgrammingusingModLcode.SeetheDeveloperReferenceformoreinformation.
Dynamic arrays
A dynamic array is multi-dimensional internal data structure that is only accessible through programming. A model user can resize a data table that is linked to a dynamic array and can link the data in the table to an ExtendSim database or global array. However, the dynamic array itself cannot be accessed outside of ModL code.
A data table linked to an internal data source will have its upper left corner in light blue rather than the grey of the table header. If the source is a database (DB) or global array (GA), those initials will be displayed in the corner. If the source is a dynamic array, the upper left corner will not have any initials.
Since dynamic arrays are created and managed through ModL code, see the Developer Refer- ence for more information.
Embedding an object (Windows only)
Embedded objects allow applications to have new behaviors and functionality without needing to custom program the behavior. An embedded object is an external software component cre- ated with one application and embedded into a document created by another application. The component could be an embeddable part of an existing application (such as a Worksheet object from Excel), or a component specifically created for embedding (such as a Graphics Server ActiveX control). Embedding the object ensures that the object retains its original format and that it can be modified with the original program. The underlying technology for embedded objects is OLE (see “ActiveX/COM/OLE (Windows only)” on page 786.
ExtendSim’s support of this functionality allows model authors and block developers to incor- porate objects and ActiveX controls that can do things that might otherwise be difficult or impossible in ExtendSim.
☞ For purposes of this manual, the word “objects” will mean both “component objects” and “ActiveX controls”.
As illustrated below, an object can be embedded into:
• Amodelworksheet
• Ablock’sdialog(ifyouprogramtheblockinModL)
When an object is embedded into a model worksheet, ExtendSim creates a container object, a worksheet object similar to a block or a hierarchical block. Each container object has a block number so that ExtendSim functions can reference it. A container object can be selected, moved around the screen, and deleted in the same manner as a block.
☞ If clicking a container object causes any response other than selection, you need to select the command Edit > Design Mode to move it, as discussed on page 813.
How To

   792   793   794   795   796