Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine start time of capture process with flex_acquire_trajectory_data()?

I am using FlexMotion 5.11 on a NI 7344 board to control our positioning system (2 steppers, 2 servos). One purpose of our system is to determine the time lag between a motion that occurrs on the positioning system and the time our own sensor notices it.

For this I wrote a program which acquires the trajectory of the positioning system using the flex_acquire_trajectory_data() function with an interval between samples of 3 ms.
Parallel to this, I acquire measurements on our sensor at a similiar time resolution. Now I want to find out when the first sample of the position system state was actually aquired. Unfortunately neither aquire_trajectory_data() nor the corresponding <
I>read_trajectory_data() give me a proper time stamp (with sub ms precision).
Is there a way (or a workaround) to determine the beginning of the capture process?

Thanks for your help!
0 Kudos
Message 1 of 2
(3,468 Views)
Edgar,
To get the time lag between motion start and you sensor feedback at a high resolution, you will want to consider using an additional Data Acquistion devices such as one of our DAQ Counter boards, or a scope. You can drive one of the digital lines high at the beginning of motion and compare this to the time when you get feedback from your sensor on the same measurement device.

Chris
0 Kudos
Message 2 of 2
(3,468 Views)