6.1. Getting Data into Word
Before starting, to
see any results you will have to ensure that you have some kind
of data feed into the Cascade DataHub. If your system isn't set up for
this yet, you can create a local data feed by following the steps
outlined in Section 1.2, “Test with simulated data”.
- Right click on the Cascade DataHub system-tray icon and choose
.
In the Properties window,
select
DDE 
.
- Ensure that the box Act as a DDE
server is checked, and that the name
datahub appears in the DDE
Service Name area. If not, click the
Add... button and add the name
datahub.
- Click OK to close the
Properties window.
Right click on the Cascade DataHub system-tray icon and choose
from the pop-up
menu to open the Data Browser.
- Select the DataSim domain in
the left-hand pane of the window.
- Open an MS Word document
In the Data Browser, find the data point
DataSim.Sine, click on the name, and drag
the point into the Word document.
You should see the data updating live in the document.
If you want the data to be updated manually instead of
automatically, you can follow this procedure:
- Click anywhere in the updating number. The
background around the number will turn gray.
Press Shift-F9.
A formula should appear, surrounded by brackets.
The word DDEAUTO in the formula causes
it to be updated automatically.
- To get manually controlled updates, change
DDEAUTO to
DDE.
- Press F9 and the
formula will revert back to a number.
Any time you want to update the data, you can click in
the number and press F9. If you want to go
back to automatic updates, repeat the above procedure,
replacing DDE with
DDEAUTO.