I assume as you are looking at digital inputs that we are talking about some form of encoder.
If we are then, I suggest a counter rather than a digital input. Check out the Counter/Timer forum if you get into trouble but the examples are pretty cool so they should get you going.
Counter/Timer forum
http://forums.ni.com/ni/board?board.id=40