cp_pcidas64 timing error

Hello,

As far as I can tell, there's at least one off by 3 bug in cb_pcidas64.c.
(resulting in my 20khz sampling rate being 19.97khz)

At a guess, the TRIG_TIMER case needs it too, but I don't use it so I 
haven't touched it.


--- cb_pcidas64.c       1 Apr 2005 04:24:12 -0000       1.129
+++ cb_pcidas64.c       11 Jul 2005 14:48:22 -0000
_at__at_ -2366,7 +2366,7 _at__at_ static uint32_t ai_scan_counter_6xxx( co
                         / TIMER_BASE;
                 break;
         case TRIG_FOLLOW:
-               return cmd->convert_arg / TIMER_BASE;
+               return cmd->convert_arg / TIMER_BASE - 3;
                 break;
         default:
                 break;

Received on 2005-07-11Z11:14:33