NEXT
Make New Entry,
Make Followup Entry
User name Pengjia
Log entry time 23:06:08 on November 21, 2011
Entry number 359432
keyword=taskDelay problem on TS in right arm
For the scaler SIS3801 ring buffer, it will take a taskDelay(1~5) in each
cycle. Default it will delay 1/60 ~ 5/60 second. For the g2p experiment
the helicity rate is 1kHz so this delay time is too long, so I tried to
use sysClkRateSet(5000) to change this delay time. this will let
taskDelay(1) delay 1/5000 second. I tried this in injector scaler and
third arm Trigger Supervisor, both works good, but in right arm TS cpu,
some strange problem happened:
I use 1KHz T8 for trigger. While I set the system clock rate to
60(default), the event rate is normal(1kHz). But while I change the
system clock rate to 5000, the event rate will decrease to 100Hz, and
while I change the system clock rate to 300, the event rate will at about
700Hz. The sysClkRateSet() can affect the event rate. There have no error
in each cpu.
A copy of this log entry has been emailed to: camsonne@jlab.org,rom@jlab.org,vasulk@jlab.org,kalyan@jlab.org,rbziel@jlab.org,tbadman@jlab.org,melissac@jlab.org,cg2ja@jlab.org