Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP.NET C# - Heart Rate Monitor Simulator

Posted on 2009-04-05
8
1,500 Views
Last Modified: 2012-05-06
I am working on a project.  I need to develop a heart rate simulator.  It will not be getting data from a real person.  Settings in a database will determine what the heart rate values should be.  Any idea on how to do this?  I've done some searching but can not find anything that will help me simulate this.

Thx
0
Comment
Question by:CipherIS
8 Comments
 
LVL 14

Expert Comment

by:wolfman007
ID: 24075559
I think that you could use an ASP.NET Timer Control to refresh the part of the page at set intervals.

The first time the page loads you could read the data from a database and use that to set the timer rate.

Have a look at the following tutorial for information on the Timer Control.

http://www.asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx
0
 
LVL 1

Expert Comment

by:Abhishekoops
ID: 24076318
Initially develop pages for getting the data from your side for storing in the sql database which you can do it with the code snippet below:
SqlConnection con = new SqlConnection("Server=You server name or comp name;Database=Yourdatabasename;Trusted_Connectopn=True");
SqlCommand cmd = new SqlCommand("Your SQL Update statement goes here...");
con.Open();
DataSet ds = new DataSet(cmd,con);
SqlDataAdapter da = new SqlDataAdapter();
da.Fill(ds);
con.Close();
 and similarly you can interface your hardware and send the required values fetching from the database to the required port with certain bit pattern.
0
 
LVL 1

Author Comment

by:CipherIS
ID: 24077431
The issue is not getting the data.  The issue is simulating the waveform for the heart beat.
Any ideas?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Expert Comment

by:Abhishekoops
ID: 24083938
This can done by making use of the Digital to Analog converter (DAC) where certain bit pattern is accordingly converted to the equivalent analog signal which can be used to display it over the Oscilloscope.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 24084810
You will use a line chart and keep updating it at an interval.

http://www.vbchart.com/gallery/gallery.aspx?category=Line&productname=Charts
0
 
LVL 1

Author Closing Comment

by:CipherIS
ID: 31566871
Thx
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question