Hi,
I see that a few people have looked at this question so I thought I should post the VI that I wrote. Maybe it will help somebody else...
The Pasco Set Res 360.vi pulses the counter outputs so that the Pasco rotary encoder is in the 360 pulses per revolution mode. When powered up this encoder is in 1440 pulses per rev mode and it doesn't take much linear velocity to over speed it and make it lose count. So the first thing the students do is run this vi.
The MECH4600_Velocity.vi does the data acquisition from the accelerometer on an AI channel and counts pulses on one of the counter channels, it then writes the data to a file. Basically the student starts the vi and releases the cart and it rolls down the track until it hits the bumper. They can then calculate cart velocity by integrating the acceleration signal and differentiating the position count.
Cheers!