hfettig Posted December 1, 2010 Report Share Posted December 1, 2010 I have an application that requires me to record mouse events (xy location vs time) and synchronize that with DAQ data that is acquired in parallel. I get the mouse events with the system tick counter as a time base and the DAQ data with the system timestamp as a time base. To synchronize the two I am calling the GetTickCount and the GetDateTime functions in a sequence frame and use those values as the reference points for my relative time base. Does that make sense? Is there an easier way? We are seeing a 500ms delay between DAQ and mouse data and have no idea where it comes from. Quote Link to comment
Yair Posted December 1, 2010 Report Share Posted December 1, 2010 Can you upload the code? One point is that on XP the resolution of the timestamp is ~16 ms, but that should not account for the 500 ms difference you see. Quote Link to comment
COsiecki Posted December 1, 2010 Report Share Posted December 1, 2010 I don't know how your program is set up, but I would use a DAQ event for timing and then read the mouse position when the event fires. See my attached VI. I have an application that requires me to record mouse events (xy location vs time) and synchronize that with DAQ data that is acquired in parallel. I get the mouse events with the system tick counter as a time base and the DAQ data with the system timestamp as a time base. To synchronize the two I am calling the GetTickCount and the GetDateTime functions in a sequence frame and use those values as the reference points for my relative time base. Does that make sense? Is there an easier way? We are seeing a 500ms delay between DAQ and mouse data and have no idea where it comes from. Read Mouse.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.