09-14-2006 12:18 PM
09-15-2006 11:00 AM
09-18-2006 06:52 AM
1 . . . 0<=T<=T1 V = Amax*T
2 . . . T1<=T<=T2 V = Vmax
3 . . . T2<=T<=Tf V = Vmax - (Amax*T)
for generate trajectory , my trajectory has 3 section. When I wirte VI program , some position the program not follow to equation
my simply equation is V = S / T , V = U + AT , S = UT + 0.5AT^2 . I use 3 equation to generate trajectory , I fix Accerelation I vary Time and velocity to calculate position ( V = S / T ) , the position not equa S = VT because my trajectory has Accerelation , my problem
is when I use Time = 1000 ms and V = 100 mm/s the position must near 10 cm but the position move to 12 cm and when I set Time = 1000 ms
velocity = 50 mm/s the position must near 5 cm but it move to 12 cm , I dont know why the position not follow to equation.
I apply program < Update Dig Pulse.vi > to generate pulse , Please help me again.
Thanks
CONTROLLER
09-19-2006 02:34 PM
10-23-2006 10:59 AM
Hi Otis!
This is exactly what I am looking for. There is just one problem. The sample is built in LW8.2 and can not be opened in LW8. Is there any posibility that you can provide it in LW8 format?
Thom Leiding
Dept of Biochemistry
Lund University
10-24-2006 12:10 PM
10-24-2006 01:13 PM
10-26-2006 03:33 AM
10-27-2006 09:11 AM
10-27-2006 10:37 AM
Jeff!
Thank you for your answer. I figured it out myself and did just what you suggested. It works just fine. The small delay in the counter causes a very small error for me as the frequency in the end of the trajectory is quite low (and allways the same). The error is within two pulses and if I compensate by stopping att "wanted pulses" minus one the result is good enough for me. Besides, I can read the exact nr of pulses from the counter after its stopped and compensate for it in the next run and thereby avoid accumulating errors. Very nice.
By the way the board I use isa a NI PCI-6221 with a SCB-68 connector block.
Thank you very much for your help
Thom