Table of Contents
The OPC DataHub has a built-in web server that lets you display live data in a web page in several different ways, depending on your needs. The data can come from any data source that is connected to the DataHub. A two-way data flow allows the user to view data and also write data back to the DataHub.

There are several different display technologies available:
Here is a comparison chart for these technologies:
| ASP | Polling AJAX | Streaming AJAX | Java applets | |
|---|---|---|---|---|
| Web browser support | Desktop and mobile | Desktop and mobile | Desktop and mobile | Desktop only |
| Plug-in/Active X required | No | No | No | Yes, Java plug-in |
| Update speeds | No updates - Manual refresh required | Fast updates | Very fast updates | Very fast updates |
| System requirements (CPU and memory) | Very low | High compared to Streaming AJAX and Java | Low compared to Polling AJAX, similar to Java. | Low compared to Polling AJAX, similar to Streaming AJAX. |
| Bandwidth requirements (Will depend on point count and update rate) | Very low | Relatively high | Moderate to low | Moderate to low |
| Security (Password / SSL protection) | Yes | Yes | Yes | Yes |
| Firewall friendly | Yes | Yes | Yes | No, requires firewall configuration |
| Licensing (Licenses required in addition to the standard DataHub Node license) | DataHub Web Server license | DataHub Web Server license | DataHub Web Server license, + TCP Link license for each connection | DataHub Web Server license, + TCP Link license for each connection |
| Programming Requirements | Uses DataHub scripting language | Uses JavaScript | Uses JavaScript | Uses HTML. Requires knowledge of Java to build custom applets. |
| Types of Application Common uses | Good for displaying static or slow moving data. Used for shift reports and statistics. | Good for displaying fast moving data and alarm conditions. Used in web monitoring and trouble shooting applications. | Excellent for displaying fast moving data. Used in remote monitoring and diagnostics systems. | Best choice for very high speed and large number of users. Used in stock trading and process control systems for monitoring and HMI displays. |
These different display technologies can be used together in the same page. For example, we often use ASP code to dynamically create AJAX tables that display live data in a web browser. The ASP code does the repetitive task of writing table entries for each point in a specific data domain and the web browser interprets the resulting JavaScript and builds the AJAX display accordingly. You can also use ASP to access data from an ODBC database and display it as part of the web page, along with the live data from the DataHub.
Copyright © 1995-2008 by Cogent Real-Time Systems, Inc. All rights reserved.