Fixed problems with motion detection. Added a VI which extracts motion information from files and feeds it to the motion detection code. The motion detected by the LV code here matches that detected by matlab code.