> The application was for controlling a robotic arm... I believe the
> application used to count pulses (from something) as the arm moved but
> this was proving unreliable as a pulse or two was getting missed.
>
> The application would need to time the movement of the arm... I think
> they where also looking at a PLC to do the counting and return the counts
> to the PC, that was another option.

for doing high resolution timings (at higher priority than WM_TIMER)
there are two things you may want to look at:

1 The "multimedia" timer functions in WINMM.DLL

these are accurate down to around 1ms and are part of the standard
multimedia extensions to windows

2 The countdown timer functions in KERNEL32.DLL

these let you read the 1.19Mhz timer on intel boxes directly as a
16bit value - the lower order digits of a 64-bit time value.
(The high order part is the usual PC tick counter).  1.19Mhz/65k
is 18.2Hz which is where that tick counter update frequency
comes from.)


-ns




---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to