13.2. Getting data out of InTouch

The OPC DataHub can act as a DDE client to your InTouch application. The following describes how to access InTouch data using a DDE Advise request from the DataHub to your InTouch application.

Configuring the OPC DataHub

  1. Right click on the OPC DataHub system-tray icon and choose Properties.
  2. In the Properties window, select DDE .
  3. Make sure the Act as DDE client box is checked.
    [Important]

    For best performance, ensure that a DDE server (in this case, InTouch) is running when using the DataHub as a DDE client. A DDE client can consume substantial system resources trying to connect if a DDE server is not available.

  4. Click the Add button. This opens the DDE Item Definition window where you can add InTouch as a new DDE service.
  5. Enter the information in the DDE Item Definition window as follows:
    Connection Name

    Create a name for this link.

    Service

    VIEW

    Topic

    TAGNAME

    Item Names

    Enter the first InTouch tagname you want to read into the DataHub, and click the Add button. If you want to change the DataHub data domain into which the InTouch tagnames are read, click on the list of DDE Items and edit the Data Domain field. Continue adding names by entering them and clicking the Add button until all names have been added.

  6. Once you have defined all the tagnames you want to read from your InTouch application, click the OK button.
  7. Run your InTouch application and then view the DataHub Data Browser to see the data arrive from InTouch into the DataHub data domain you defined above.