Thanks Andrew,
However, yesterday I figured out that TTL signal generating was not supported on my
motor controller from Newport.com: ESP -300 and it was supported
on ESP -6000. It was only mentioned at the end of Newport's manual n so, I missed it first time. Now,
I have to adopt to slow data acquisition and I have to do it
using software and of course, there may be some latency in program
execution; but, I want to minimize that. i.e. I want to avoid using for
loop or while loop.
I am using DAQ card PCI-MIO-16E-4.
The main code is "Fly_scan_St_Line_different_version.vi" and the other important subcode is "Motion_Update_Final"
The main code seems working almost fine. I am including all the subvis
and I want someone to help me on the frame no 1 (of 0,1,2) of stacked
sequence.
The subvi "motion and update.vi" asks my stepper motor to move and
keeps updating position. Since I want my main code to start taking
reading exactly when the motor is at "Intial Pos(micron)" and I am
asking each millisecond whether it has reached at "Intial Pos(micron)".
If it has then, I ask my "DAQ Assistant" to return me N-data paoint at
regular interval of delta t time. I tried using "N-samples" and
sepcifying the sample rate in "DAQ Assistant". But, it was not
effective. The photo-diode reading was getting completed much before it
should be. I also tried time loop, but again photo-diode was finsihing
up early.
So, Questions:
(i) can I avoid using for or while loop with something more efficient that decreases chance of latency during my code execution?
(ii) Pos_Step (micron)/velocity (mm/sec) = (delta t ) directly gives me
the time to wait between successive photo-diode reading. The
velocity can be anything between 0 to 2 mm/sec. How small can we make
delta t ?
Regards,
DK
Message Edited by Dushyant on 08-10-2007 01:57 PM
Message Edited by Dushyant on 08-10-2007 01:59 PM
Message Edited by Dushyant on 08-10-2007 04:23 PM