I'm trying to determine the latency numbers for my machine.. I ran 'latency-test' with an older Althon XP 1.350Ghz w/256MB Mem....and got the following from the window that popped up:
Servo Thread: 48686
Base Thread: 61464
How do I apply these numbers to the StepTimingCalculator spreadsheet:
From the G320 specs:
Step Pulse Frequency 0 to 250 kHz
Step Pulse “0” Time 0.5 Microseconds Min.
Step Pulse “1” Time 3.5 Microseconds Min.
I can then fill in Required Step Length and Required Step Space... not sure what to put for 'Required Direction Setup', 'Required Direction Hold'. I guess 'Worst Case Latency' is derived from the output of 'latency-test'???
Have you read this?
Worst case Latency comes from the latency test.
'Required Direction Setup', and 'Required Direction Hold' are special setting for drives that need extra time to for those comands.
Interesting that the G320 manual does not mention the direction setup and hold times. You might do a search in the Gecko forum to see what you find or ask directly in the Gecko forum. When you find out I'll update the wiki site step direction page:
It is much less painful to get a step direction config going if you just use the Stepconf Wizard do generate your config files. Then you can add to or modify the custom files as needed.
Take a look at this short getting started guide.
A SWAG on your direction setup 1000us and 20000us for direction hold.
sudo mkdir /dev/rtf; sudo mknod /dev/rtf/3 c 150 3;
sudo mknod /dev/rtf3 c 150 3;
cd /usr/realtime*/testsuite/kern/latency; ./run
in any case the 'lat max' is hovering around 11000ns, with and average of 470ns or so. ovl max is 12000ns.
According to the wiki, an ovl max less than 15000-20000 ns should yield nice results