pro plott_bda_dp, dp_sync
;
;+
;NAME:
;	plott_bda_dp
;PURPOSE:
;	Plot a light curve of the DP_SYNC data.  Overplots
;	the limited and accumulated profiles in a different color.
;CALLING SEQUENCE:
;	plott_bda_dp, dp_sync
;INPUT:
;	dp_sync	- the dp_sync data record
;HISTORY:
;	Written Fall '91 by M.Morrison
;-
;
!p.multi = [0,1,4]
!p.charsize = 2
;
ss = where(dp_sync.acc_interval(1) ne 0)
for ichan=0,3 do begin
    dt = float(dp_sync(ss).acc_interval(1))
    utplot, dp_sync, unsign(dp_sync(ss).all_cnts(ichan,1),16)/dt, title='Channel '+strtrim(ichan+1,2), color=255
    oplot, int2secarr(dp_sync), unsign(dp_sync(ss).lim_cnts(ichan,1),16)/dt, color=200
    oplot, int2secarr(dp_sync), unsign(dp_sync(ss).acc_cnts(ichan,1),16)/dt, color=150
end
;
!p.multi = 0
end
