handled the labview bug (error 1047) by doing null operations of adding 0 prior to sending variables to matlab script.
also made mods to flush the motion analysis queue when motion analysis is restarted in the RunDuringExperiment vi.
also upon restarting RunDuringExperiment, the reference is recalculated.