473,503 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best way to get real-time data via web form

I want to develop a web application that displays real-
time data. I'm thinking that a typical web form would
have between 25 to 75 values that needed to be updated
every second or so. The original data source would be an
OPC (i.e., OLE for Process Control) server (preferred) or
a database (e.g., SQL Server).

I've surfed all over the web trying to figure out 1) can
this be done, 2) should it be done, and 3) what's the
best way to do it. Some of the options I've found are...

1. Client side scripts calling web service on a periodic
basis
2. Implement an active channel
3. Custom control that links directly to server or
database

If anyone can offer some direction or suggestions on the
best way to proceed, please let me know.

Thanks
Jul 21 '05 #1
1 1344
MickeyBob wrote:
I want to develop a web application that displays real-
time data. I'm thinking that a typical web form would
have between 25 to 75 values that needed to be updated
every second or so. The original data source would be an
OPC (i.e., OLE for Process Control) server (preferred) or
a database (e.g., SQL Server).

I've surfed all over the web trying to figure out 1) can
this be done, 2) should it be done, and 3) what's the
best way to do it. Some of the options I've found are...
1. Client side scripts calling web service on a periodic

basis
2. Implement an active channel
3. Custom control that links directly to server or
database

We successfully implemented live OPC data in a Web page using an OPC
Client ActiveX control, and the results are impressive (0.1 second
updates for groups counting over a 100 incrementing items). The
bottleneck is not the OPC DCOM link, not our ActiveX, but the HTML
document object that needs to be continuously updated. So a bit of
consideration in designing the web form, and performance measurement to
vaildate each design choice is the key to success. Things aren't too
well documented in this respect, so expect some amount of frustration there.

For instance we had to revert to a mix of VBScript and Javascript to
support all the goodies we wanted (events, reading and writing of OPC
array items, ... )

We chose this approach for
(1) its performance (you can't rival this with web services),
(2) the feasibility to do all this on both Windows CE and NT (the Web
pages are displayed both locally on the WinCE automation device, as
remotely on regular Windows 2000/XP clients)
(3) its support for remote control without development overhead,
(4) the match with the developers available for this project,
and (5) its maintainability (OPC server, Web pages and ActiveX control
are all on the OPC device, so you only need to upgrade files there).

My input.
If you need more information, please let me know,

Koen.

--
Notice: Remove all packaging [from e-mail address] before use.
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

136
9201
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
12
2884
by: neodem | last post by:
PHP, and to a lesser degree JSF has become very popular ways to build web applications. What I don't understand, and what I would like you all to comment on, is how these methods are the best way...
12
1846
by: Jay | last post by:
Let's say, for instance, that one was programming a spell checker or some other function where the contents of a string from a text-editor's text box needed to be split so that the resulting array...
12
3124
by: Nettan | last post by:
Hi What is the best way to write to a textfile, is it with FileSystemObject or with StreamWriter? Thanks /Nettan
14
2780
by: =?Utf-8?B?U2FtdWVs?= | last post by:
Hi, I have a web app that allows others to upload files, and the problem is that if I allow users to upload image files, fake image can be uploaded and cause XSS issues. In the app, I do...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.