473,623 Members | 2,433 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Real time

Hi all,

I'm trying to display a real-time data in one form or another (i.e.
animation/graphic file, or just a text) in asp.net.
The data for the images/text is retrieved from a SQL Server database.

I have a few plans in mind:
- I could have an aspx page that would use GDI+ classes to generate the
graphics and let the page refreshes the images at a regular interval. The
drawback is though, there may be a dozen of images in a single page, which
means that there would be a dozen or so postbacks at every iteration, hence,
demanding a lot of CPU time at the server as well as the client machine.
- I could have a single aspx page that would refresh at a regular interval.
Obviously I will have to have a pre-made images for each possible states.
- Another alternative is to use Flash as it could talk to SQL Server
directly using the Xml objects. Setting up flash movies in an aspx page is
quite tedious job though. While browsing through the net I found several
libaries that could actually let me generate SWF file in .NET, but most of
them are still in Alpha stages, so I'm not very comfortable of using them.

Can anyone please give me a suggestion on what the most efficient way of
doing this is? Maybe somebody has even done this before.

Many thanks
Ted
Nov 18 '05 #1
3 1755
Hi

Maybe I don't understand you but for images its not complex
getting only the image not the whole page....

function doIt(newSrc){
var img = new Image();
img.src = newSrc;
img.onload = doDisplay;
img.onerror = errHandler;
}

function doDisplay(){
document.images["imgName"].src = this.src; // imgName is the target img
}

function errHandler(){
// Handle error
}

Obliviously a very basic example...

Preloading images...
function preLoad(){
var a = new Array();
for( i = 0; i < preload.argumen ts.length; i++ )
{
a[ i ] = new Image();
a[ i ].src = "PATH/" + iPreload.argume nts[i];
}
}

preLoad("img1.g if","img2.gif", "img3.jpg") ;
For text you could use webservices or a hidden iframe to load the data
http://msdn.microsoft.com/downloads/...ce/default.asp
DHTML sdk
http://msdn.microsoft.com/library/de...ence_entry.asp

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
=============== ===============
"Ted Burhan" <tb*****@nospam .com.au> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
Hi all,

I'm trying to display a real-time data in one form or another (i.e.
animation/graphic file, or just a text) in asp.net.
The data for the images/text is retrieved from a SQL Server database.

I have a few plans in mind:
- I could have an aspx page that would use GDI+ classes to generate the
graphics and let the page refreshes the images at a regular interval. The
drawback is though, there may be a dozen of images in a single page, which
means that there would be a dozen or so postbacks at every iteration,
hence,
demanding a lot of CPU time at the server as well as the client machine.
- I could have a single aspx page that would refresh at a regular
interval.
Obviously I will have to have a pre-made images for each possible states.
- Another alternative is to use Flash as it could talk to SQL Server
directly using the Xml objects. Setting up flash movies in an aspx page is
quite tedious job though. While browsing through the net I found several
libaries that could actually let me generate SWF file in .NET, but most of
them are still in Alpha stages, so I'm not very comfortable of using them.

Can anyone please give me a suggestion on what the most efficient way of
doing this is? Maybe somebody has even done this before.

Many thanks
Ted

Nov 18 '05 #2
Hi Vidar,

Thank you for replying.
It might help if I explain briefly what I'm trying to achieve.
I have a Windows 2000 server connected to a mining device via some sort of
serial port communication.
The server listens to the port and decypher the incoming data stream from
that serial port and store them in
the appropriate places in the Database (SQL Server 2000). Data frame
generally comes in at around 100ms intervals.
One of the tables in the database is used to represent the current values of
the device attributes
I.e.
tblTagValues
==========
TagID int
Value real

The asp.net application is responsible for reading those "current" tag
values and display them in one form or another
(semaphores/flags, gauges, etc..). I understand that because of the nature
of web brower and internet latency, I may
not be able to achieve real-time presentation of the data, but we can
accomodate sub 5 seconds delay (near real time).
Can you suggest what the best method to achieve this is?

Ted
"Vidar Petursson" <th************ **************@ icysoft.com> wrote in
message news:ed******** *****@tk2msftng p13.phx.gbl...
Hi

Maybe I don't understand you but for images its not complex
getting only the image not the whole page....

function doIt(newSrc){
var img = new Image();
img.src = newSrc;
img.onload = doDisplay;
img.onerror = errHandler;
}

function doDisplay(){
document.images["imgName"].src = this.src; // imgName is the target img
}

function errHandler(){
// Handle error
}

Obliviously a very basic example...

Preloading images...
function preLoad(){
var a = new Array();
for( i = 0; i < preload.argumen ts.length; i++ )
{
a[ i ] = new Image();
a[ i ].src = "PATH/" + iPreload.argume nts[i];
}
}

preLoad("img1.g if","img2.gif", "img3.jpg") ;
For text you could use webservices or a hidden iframe to load the data
http://msdn.microsoft.com/downloads/...ce/default.asp DHTML sdk
http://msdn.microsoft.com/library/de...ence_entry.asp
--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
=============== ===============
"Ted Burhan" <tb*****@nospam .com.au> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
Hi all,

I'm trying to display a real-time data in one form or another (i.e.
animation/graphic file, or just a text) in asp.net.
The data for the images/text is retrieved from a SQL Server database.

I have a few plans in mind:
- I could have an aspx page that would use GDI+ classes to generate the
graphics and let the page refreshes the images at a regular interval. The drawback is though, there may be a dozen of images in a single page, which means that there would be a dozen or so postbacks at every iteration,
hence,
demanding a lot of CPU time at the server as well as the client machine.
- I could have a single aspx page that would refresh at a regular
interval.
Obviously I will have to have a pre-made images for each possible states. - Another alternative is to use Flash as it could talk to SQL Server
directly using the Xml objects. Setting up flash movies in an aspx page is quite tedious job though. While browsing through the net I found several
libaries that could actually let me generate SWF file in .NET, but most of them are still in Alpha stages, so I'm not very comfortable of using them.
Can anyone please give me a suggestion on what the most efficient way of
doing this is? Maybe somebody has even done this before.

Many thanks
Ted


Nov 18 '05 #3
Last year we went with the SWF solution. The SWF posted an HTTP Request to
an ASPX page on the server which generated an image, based upon the
parameters sent by the SWF, stored it in a temp folder, and returned the URL
of the image file to the SWF, which then requested the image file. It was
not necessary to dynamically-create the SWF. We simply built a SWF that
behaved as I've described. The only thing dynamically-generated was the
image file.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ted Burhan" <tb*****@nospam .com.au> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
Hi all,

I'm trying to display a real-time data in one form or another (i.e.
animation/graphic file, or just a text) in asp.net.
The data for the images/text is retrieved from a SQL Server database.

I have a few plans in mind:
- I could have an aspx page that would use GDI+ classes to generate the
graphics and let the page refreshes the images at a regular interval. The
drawback is though, there may be a dozen of images in a single page, which
means that there would be a dozen or so postbacks at every iteration, hence, demanding a lot of CPU time at the server as well as the client machine.
- I could have a single aspx page that would refresh at a regular interval. Obviously I will have to have a pre-made images for each possible states.
- Another alternative is to use Flash as it could talk to SQL Server
directly using the Xml objects. Setting up flash movies in an aspx page is
quite tedious job though. While browsing through the net I found several
libaries that could actually let me generate SWF file in .NET, but most of
them are still in Alpha stages, so I'm not very comfortable of using them.

Can anyone please give me a suggestion on what the most efficient way of
doing this is? Maybe somebody has even done this before.

Many thanks
Ted

Nov 18 '05 #4

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

Similar topics

18
12575
by: Ken | last post by:
Hi. Can anyone refer me to any articles about the compatibility between c++ polymorphism and real-time programming? I'm currently on a real-time c++ project, and we're having a discussion about whether we should allow polymorphism. Our system is not embedded and does not need to be as real-time as, say, a pacemaker. But it does involve updating displays based on radar input. So a need for something close to real-time is desired...
0
2296
by: Aashish | last post by:
Hi, I am currently working on building a real-time data mart. Am using DTS as the ETL tool and MS SQL 2000 as the database. The current infrastructure includes 2 4 Proc (1GHz) Xeon based servers, with 4 GB of RAM. One server is used for ETL while the other is used as the primary database. Currently we are looking forward to a SAN implementation to improve the speed of the database. The current size of the database is 80 GBs, we are...
1
2766
by: catherene | last post by:
hai, in IEEE software jan/feb 2003 an article was published regarding suitability of C# and .NET in real-time systems. can anybody is doing research on its analysis of schedulability. kindly reply me. with regards,
175
8768
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be changed". This is very much against my instincts. Can anyone offer some solid design guidelines for me? Thanks in advance....
10
3069
by: Martin Hughes | last post by:
Hi guys, I was wondering if anyone could give me some advice. I am looking to develop an ASP.NET application that will enable several workstations to access real time telemetry data received from a vehicle on a track. The data flow would be as follows: |-- Workstation 1
0
1603
by: Johannes Nix | last post by:
Hi, this might be of interest for people who are look for practical information on doing real-time signal processing, possibly using multiple CPUs, and wonder whether it's possible to use Python for audio-type worst case latencies (around 25 ms). I've done that in my PhD work, both with real-time requirements on dual-CPU
2
1737
by: Blubaugh, David A. | last post by:
To All, I have done some additional research into the possibility of utilizing Python for hard real time development. I have seen on various websites where this has been discussed before on the internet. However, I was wondering as to how successful anyone has truly been in developing a program project either in windows or in Linux that was or extremely close to real time constraints? For example is it possible to develop a python...
3
3656
by: Kurt Mueller | last post by:
David, Am 07.10.2008 um 01:25 schrieb Blubaugh, David A.: As others mentioned before, python is not the right tool for "HARD REAL TIME". But: Maybe you can isolate the part of your application that needs
4
5494
by: The Doctor | last post by:
Hey people, I have two applications: the server, which creates a server socket, waits for a real-time signal, and if it receives one, it creates a client socket. The client, which will connect to the server. This will generate a real- time signal at the server, who will create a client socket for this client.
0
8227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8670
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8613
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8469
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7150
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2602
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 we have to send another system
1
1778
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1473
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.