This commit is contained in:
15
script/Tools/TestBsCamera.py
Normal file
15
script/Tools/TestBsCamera.py
Normal file
@@ -0,0 +1,15 @@
|
||||
print "Connecting to camera: " + str(CAMERA)
|
||||
|
||||
CAMERA_URL = caget(CAMERA + ":BSREADCONFIG").replace("tcp://daq", "tcp://")
|
||||
print "Url: " + str(CAMERA_URL)
|
||||
|
||||
st1 = Stream("st1", CAMERA_URL, SocketType.PULL)
|
||||
st1.initialize()
|
||||
st1.start()
|
||||
st1.waitCacheChange(3000)
|
||||
|
||||
try:
|
||||
r=bscan (st1, records=10, timeout =10.0, save=False, enabled_plots=[st1,])
|
||||
v= st1.getValues()
|
||||
finally:
|
||||
st1.close()
|
||||
Reference in New Issue
Block a user