Page 797 - ExtendSim User Guide
P. 797

Data Management and Exchange 771
Exchanging data with external applications
enhances the sorting for complex structures by speeding the movement of the elements within the list.
ExtendSim implements linked lists: • In the queue blocks (Item library)
• Extensively in the Rate library
• With the Linked List functions described in the Developer Reference.
Since this involves programming, linked lists are described in the Developer Reference.
Exchanging data with external applications
The means by which two or more applications communicate with each other and share data are collectively known as interprocess communications (IPC). Some communication methods have previously been discussed in this chapter. For example, the Clipboard provides conve- nient data sharing between applications running on the same operating system. The following section focuses on more extensive communication methods which allow ExtendSim to directly communicate with other applications and with ExtendSim models running on other computers, while the simulation is running. This allows ExtendSim to work on a wide variety of tasks jointly with external applications such as:
• Spreadsheets
• External databases
• Other applications, such as word processors and statistics packages
There are several ways you can incorporate IPC into models, including:
• With ExtendSim blocks, as discussed starting on page 772.
• Using the DDE Link feature (Windows only) described on page 744.
• Embedding objects (Windows only) as seen on page 768.
• If you program, using the OLE and IPC functions discussed in the Developer Reference.
An application that communicates with another application can be categorized as either client or a server. A client application requests a service from some other application and a server application responds to the client’s request. Many applications, such as ExtendSim, can act as either a client or a server depending on the circumstances.
Spreadsheets
You may want to use spreadsheet data as the input for an ExtendSim model. Likewise, you may want to send output data to a spreadsheet for further analysis or presentation. For instance, if you have a spreadsheet that performs calculations on large amounts of data, you may want that spreadsheet to respond dynamically as you model real world conditions in ExtendSim.
ExtendSim facilitates communication with spreadsheets by:
• TheCommand,DataImportExport,Read,andWriteblocks(Valuelibrary).Theseblocks can send data to and from spreadsheet applications, send one value to a specified cell in a spreadsheet and request the recalculated value from another cell, or send commands or a macro to a spreadsheet. See “Blocks for data management and exchange” on page 772.
• DDE Link commands in the Edit menu. For more information, see “DDE links (Windows only)” on page 744.
How To


































































































   795   796   797   798   799