Thread: integrator

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0

    integrator


    I want to integrate an online data. For example I get a flow meter reading and I would like to find out the total flow in an hour. can anybody help me
  2. #2
  3. Doggie
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2003
    Location
    Seattle, WA
    Posts
    751
    Rep Power
    12
    I may not be understanding your problem correctly, but here's what I think you want:

    Write a program that runs in the background that grabs the info from your online data source (the flow meter) every x number of seconds/minutes.

    Store that in a database along with a time stamp. (can be a system file)

    Your quiry checks your local database (or file) for the information to display to the screen.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0
    I will try to explain using thr following example.

    1. Speedometer of your car.- We are travelling in a car and our speed is constantely varying due to traffic conditions. But at the end of a time I would like to know the exact distance travelled. WE get this data from the speedometer directly. Such a speedometer I would like to create using a program.(VB)
  6. #4
  7. Doggie
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2003
    Location
    Seattle, WA
    Posts
    751
    Rep Power
    12
    Oh, I see.

    In that case: (using the speedometer analogy)

    Incoming data:
    (seconds/meters per second)
    0/0 (initialized)
    3/12 (3*12 = 36 meters)
    2/6 (2*6 = 12 meters)
    4/16 (4*16 = 64 meters)
    3/14 (3*14 = 42 meters)
    3/13 (3*13 = 39 meters)

    total: 193 meters in 16 seconds

IMN logo majestic logo threadwatch logo seochat tools logo