An important feature of WorkBench PC for Windows is its support of Dynamic Data Exchange (DDE). Utilizing the DDE Output and DDE Input modules, users have the ability to send and receive data between WorkBench and other Windows applications. These modules can then be connected to other modules to incorporate the data into the worksheet.
AN EXCEL EXAMPLE One of the most common uses of DDE in WorkBench is to send collected data to a spreadsheet for further analysis. As a simple example, suppose you want to output the data from a Generator module into a Microsoft Excel worksheet. The following steps show how to do this:
NOTE: For a better display of this real-time data, use cells A1 through A8 as the data series for a chart in Excel. In this way, a graph of a moving sine wave will be displayed. For better resolution of this sine wave, increase the Block Size and Sample Rate in WorkBench and make the associated changes in Excel.
TROUBLESHOOTING If the Application or Topic is incorrectly entered in WorkBench, then a "Cannot Create DDE-Link" will be displayed. It is important to make sure that the ".xls" ending is present in Topic or this same error message will result. An incorrect Item will not cause an error message but will result in no information being transferred to Excel.
MULTIPLE CHANNEL DDE To transfer multiple columns of data to Excel, use one DDE Output module with multiple channels. For example, if two columns of data are needed in Excel, then the DDE module would have two channels selected. The Application, Topic, and Item settings are the same for all channels. All that needs to be changed is the block selection in Excel - select two columns of 8 rows and define the name as DDECELL. When WorkBench is started each channel on the DDE output icon will pass data to one column in Excel.
A NOTE ON DDE DDE transfer of data allows data to be passed from one application to another in the Windows environment. Typically, any new data passed to the receiving application will write over any preceding data, rather than append it. In this way, data sent to Excel will overwrite the previous "blcok" of data to have been sent from WorkBench. If it is required for all data to be present in Excel at the end of an experiment, it is necessary to log data to disk using the Write module in WorkBench, and then to open that file into Excel. This is a limitation with DDE, not WorkBench PC for Windows.