Click to See Complete Forum and Search --> : Time Stamp help please!


asf14
April 4th, 2010, 10:40 AM
Hello Everyone,

I previously posted that I'm building a Dance Dance Revolution game on .NET. I'm using a custom made dance mat, a data aqusition board USB-1024LS mccdaq, and .NET. I have four arrows (right, left, up, and down) and whenever a person steps on the arrow the bit value will change from 1 V to 0 V because when pressure is placed on the mat then it gets connected to ground. I made a program to show the bit value changing

Now I would like to know if i can add a time stamp only when someone presses on an arrow. Right now I just have the current time showing in a text box but I only want the time to display when the bit value changes from 1 V to 0 V. Also I would to make a program to save all the time values and maybe display all the values on a different form once a button "QUIT" is pressed (QUIT button already exists in my code). Any help at all will be appreciated!

dglienna
April 4th, 2010, 02:13 PM
You probably want some kind of TIMELINE sequence.

You need a Start Time, and an Elapsed Time for each slice of time.

You might want to store a SEQUENCE number, and link it to a table of times

asf14
April 4th, 2010, 08:33 PM
Hey dglienna,

Thanks for the reply! Is there a special component I need to add any components other than a timer to make a time sequence?

dglienna
April 4th, 2010, 08:35 PM
There is a tool in Silverlight, and WPF, but not VS, out of the box. That doesn't stop you from creating your own table, and timer that executes them in sequence, every 200ms.