change bscache args to new bstrd version
This commit is contained in:
@ -39,7 +39,7 @@ class AdaptiveOrbit:
|
||||
|
||||
def initBSStream(self,channels):
|
||||
print("Initializing BSstream")
|
||||
bs = BSCache(100000,100000) # 1000 second time out, capazity for 1000 second.
|
||||
bs = BSCache(100000,receive_timeout=100000) # 1000 second time out, capazity for 1000 second.
|
||||
bs.get_vars(channels)
|
||||
return bs
|
||||
|
||||
|
@ -79,7 +79,7 @@ class Dispersion:
|
||||
self.scale = scl
|
||||
# define stream
|
||||
print('Getting BSCache')
|
||||
self.bsc = BSCache(100000,10000) # 100 second timeout, size for 100 second data taken
|
||||
self.bsc = BSCache(100000, receive_timeout=10000) # 1000 second timeout, size for 100 second data taken
|
||||
self.bsc.get_vars(self.sensor) # this starts the stream into the cache
|
||||
print('Getting BSCache done')
|
||||
|
||||
|
@ -20,7 +20,7 @@ names = ['PSSS', 'PMOS Maloja', 'PMOS Furka', 'PSSS LB', 'PSSS incl gasd', 'PSSS
|
||||
|
||||
class SpectralAnalysis:
|
||||
def __init__(self):
|
||||
self.bs = BSCache(100000,10000) # 100 second timeout, size for 100 second data taken
|
||||
self.bs = BSCache(100000,receive_timeout=10000) # 100 second timeout, size for 10 second data taken
|
||||
self.bs.stop()
|
||||
self.channel = None
|
||||
self.channels = [channel_dict[x] for x in names]
|
||||
@ -64,8 +64,8 @@ class SpectralAnalysis:
|
||||
|
||||
class SpectralAnalysis2:
|
||||
def __init__(self):
|
||||
self.bs1 = BSCache(100000, 10000)
|
||||
self.bs2 = BSCache(100000, 10000)
|
||||
self.bs1 = BSCache(100000, receive_timeout=10000)
|
||||
self.bs2 = BSCache(100000, receive_timeout=10000)
|
||||
self.bs1.stop()
|
||||
self.bs2.stop()
|
||||
self.hasBStream=False
|
||||
|
@ -18,7 +18,7 @@ class XTCAVStabilizer:
|
||||
self.PVPhase = PV('SATMA02-RSYS:SET-BEAM-PHASE')
|
||||
|
||||
# the BS channels
|
||||
self.bs = BSCache(100000,10000) # 100 second timeout, size for 100 second data taken
|
||||
self.bs = BSCache(100000, receive_timeout=10000) # 100 second timeout, size for 10 second data taken
|
||||
self.channels = ['SATBD02-DBPM040:X2','SATMA02-RLLE-DSP:PHASE-VS','SATBD02-DBPM040:X2-VALID']
|
||||
self.validation = self.channels[2]
|
||||
self.bs.get_vars(self.channels) # this starts the stream into the cache
|
||||
|
@ -5,7 +5,7 @@ from bstrd import BSCache
|
||||
class SimpleCapture:
|
||||
def __init__(self):
|
||||
self.chn=None
|
||||
self.bs = BSCache(100000,100000) # 1000 second time out, capazity for 1000 second.
|
||||
self.bs = BSCache(100000, receive_timeout=100000) # 1000 second time out, capazity for 1000 second.
|
||||
self.abort=False
|
||||
|
||||
def terminate(self):
|
||||
|
Reference in New Issue
Block a user