8.4.Viewing Your Own Data

8.4.1.DataHub Browser

You can view all the data points currently in the DataHub using the DataHub Browser. Here's how to view the data on your system:

  1. Ensure that the DataHub is running and connected to your data sources, and that the DataHub Web Server is enabled.
  2. If your are running your web browser on the same machine as your DataHub, type localhost/datahub.asp into the Address field at the top of your browser. If you are running your web browser on a different machine from the DataHub, type the IP address or computer name of the computer running the DataHub, instead of localhost.
    The Web Data Browser page should display:
    The DataHub domains and data hierarchy are displayed in the left pane, and live updates of the point values for the selected part of the hierarchy are shown the right pane. You can modify the header for this page by editing this file: C:\Program Files\Cogent\OPC DataHub\Plugin\Webserver\html\domaintreeheader.asp.

8.4.2.DataHub Table View

You can also view all the data points in a single data domain on your system, using the DataHub Table View page, as follows:

  1. Ensure that the DataHub is running and connected to your data sources, and that the DataHub Web Server is enabled.
  2. Open a web browser on this computer or another client computer and type the following URL into the address bar:
    http://computer address/table.asp?parent=domain name[:branch][.sub-branch]
    where
    computer address

    The IP address or network name of the computer running the OPC DataHub.

    domain name

    The name of the data domain that contains the data you want to display.

    branch

    The branch (if any) containing the data you want to display.

    sub-branch

    The sub-branch (if any) containing the data you want to display.

    Sometimes the organization of the data within the OPC DataHub can be quite complex, including branches and sub-branches. This is often the case when reading data from a data source that has a multi-level data hierarchy. In these cases we reference locations within the data structure using the branch and sub-branch syntax shown above.
  3. Examples:

      If you are currently running the DataPid program, this URL: http://localhost/table.asp?parent=DataPid:PID1 will display this:

      An entry like this:

      http://192.168.5.55/table.asp?parent=Plant_1

      Would display data from the Plant_1 data domain of the DataHub.

      An entry like this:

      http://PlantServer/table.asp?parent=Section_1:Zone_1

      Would display data from the Zone_1 branch within the Section_1 data domain of the DataHub.

      An entry like this:

      http://PlantServer/table.asp?parent=Section_1:Zone_2.Temp.Setpoints

      Would display data from the Setpoints branch, three levels down the tree structure within the Section_1 data domain of the DataHub.

      For any of these entries, you can just type localhost/... if you are running the web browser on the DataHub computer, like this:

      http://localhost/table.asp?parent=Area2
  4. You can change the header image for this page by editing this file: C:\Program Files\Cogent\OPC DataHub\Plugin\Webserver\html\table.asp. The line to change is clearly marked:
    <!-- *************** Logo Image Goes Here *************** -->
    
    <img src="images/DataHubTable.gif" width="600" height="40" vspace="10" border="0" /><br />
    
    <!-- **************************************************** -->
  5. You can also add page content below the table by putting HTML code after the final </script> tag, towards the bottom of the page:
    ...
    </script>
    
    (insert extra HTML here)
    </body>
    </html>