Skip to content

Commit

Permalink
DEV: fix a bug in bpm_stability
Browse files Browse the repository at this point in the history
  • Loading branch information
dchabot committed Feb 19, 2016
1 parent 5be2962 commit edbc026
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chxtools/bpm_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import matplotlib.pyplot as plt
from matplotlib.colors import LogNorm
from datetime import datetime

import time as ti

pv_ca = 'XF:11IDB-BI{XBPM:02}FA-A'
pv_cb = 'XF:11IDB-BI{XBPM:02}FA-B'
Expand Down Expand Up @@ -184,6 +184,8 @@ def bpm_read( num_sample, filename=None,rate=10 ):
caput( pv_num_sam, num_sample)
caput( pv_trig, 0 )
caput( pv_trig, 1)
ti.sleep(num_sample/rate+3)
# need to wait for the acquisition to finish before pulling data from buffer!
for n, pv in enumerate([pv_ca, pv_cb, pv_cc, pv_cd, pv_px, pv_py, pv_sumi]):
d = caget(pv)
if n==0:
Expand Down Expand Up @@ -224,4 +226,4 @@ def bpm_read( num_sample, filename=None,rate=10 ):





0 comments on commit edbc026

Please sign in to comment.