Creating an Embed-to-app link with DDEsend

Follow this procedure when the source information for the link is contained in a diagram.

To create a DDE link from an Embed block to another application:

1.    In Embed, wire a DDEsend block to the output of the block that contains the information you want linked to another application.

2.    Right-click the DDEsend block or choose Edit > Block Properties and click it.

3.    In the DDE Send Link Configure dialog box, uner Send Item, enter a name. The default name is simDataIn.

Note: When the diagram contains multiple links to other applications (that is, the diagram contains more than one DDEsend block), the name you enter in the Send Item box must be unique to that diagram. If it’s not unique, Embed will not pass the correct information to the application.

4.    Choose the options you want.

5.    Click Copy Link.

6.    Click OK, or press ENTER.

7.    Switch to the destination application and open the file in which you want to create a link.

8.    Point to where you want to insert the information and click.

9.    Choose Edit > Paste Link.

Note: Some applications have a Paste Special command instead of a Paste Link command. Refer to the application's documentation for information on linking.

10.  Switch back to the diagram and choose System > Go to update the link.

Bitmap: Applies a bitmap image to the DDEsend block. If you do not know the name, click Image to select one.  

Custom Update Interval: Overrides the time step interval for sending data to the destination application. If you enter 1, DDEsend sends data once per sec; if you enter 10, DDEsend sends data once every 10 sec; and so on. If you do not enter a value, DDEsend sends data at each time step of the simulation. You can use Custom Update Interval only when Poke Data is activated.

Data Timeout: This option does not apply to the DDEsend block.

Output Dimensions: Controls the dimensionality of the data entering the DDEsend block. The choices are scalar, vector (n x m), or matrix (m x n).

Poke Data: Sends data to the destination application at every time step, regardless of whether it is ready to receive the data. When Poke Data is not activated, data is sent only when the destination application requests it. You can override the time step interval for sending data with the Custom Update Interval.

Receive Item: This option does not apply to the DDEsend block.

Send Item: Indicates a name for the source information. The destination file uses this name in its item field. To maintain multiple DDE links from a single block diagram, the name you enter must be unique. The information in this box defaults to simDataIn.

Server|Topic: Indicates the name of the source application (server) and the type of source information (topic). This parameter defaults to Embed|name-of-block-diagram. The server name must always be Embed.