Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

high speed capture a vector space and stamp each element w absolute reference (timestamp?)

I have a program that will HSC an axis based off an RTSI pulse from the DAQ scan clock. The code is working well but I want to include the following:
a) capture a vector (axis 1 and 2) from each pulse
b) include some absolute reference with each capture so I can easily append my DAQ array and position array and check for syncronization problems. (Note this reference must be accesible as a stamp for each DAQ as well.)
Any suggestions?? Matt
0 Kudos
Message 1 of 3
(3,111 Views)
The best solution to thsi problem that I can think of would be to configure the RTSI line you use as trigger, to be the source for both high speed capture lines in the vector space using the Select Signal function or by using the synchronization panel in MAX. For example, you could use RTSI 0 as the source and High Speed Capture 1 as the destination in one call of select signal and RTSI 0 as the source and High speed capture 2 as the destination for the second call. You would then need to make two calls to read captured position, one for each axis in the vector space. As for an absolute timestamp, the motion controller does not yet have this functionality. I am curious as to whay you would need this since most motion applications do not require such a thing. Can you expl
ain what you application does in a little more detail?
0 Kudos
Message 2 of 3
(3,111 Views)
My application will control an ellipsometer using the nulling technique. So each encoder represents the angle of a polarizer and my DAQ will be a voltage across a photoresistor. Code returns two angles at the 'zero' voltage point. I want time stamps so that I can complare all elements and see if I have been losing pulses, since syncronization of angles and light intensity is of the essence. I have looked into this more and will go for shorter run times and/or slower motion near the null, as well as global variables to stamp specific points across each HSC 1, 2 and DAQ arrays. Thanks, your method makes sense. MP
0 Kudos
Message 3 of 3
(3,111 Views)