Files
saresc/script/test/test_bsread_camera.py
2026-01-09 16:22:50 +01:00

20 lines
505 B
Python
Executable File

#CAMERA = "SAROP31-PPRM113"
#CAMERA = "SAROP31-PPRM150"
CAMERA = "SARES30-CAMS156-XE"
CAMERA_URL = caget(CAMERA + ":BSREADCONFIG").replace("tcp://daq", "tcp://")
#CAMERA_URL= "tcp://sf-sioc-cs-83:9020"
#CAMERA_URL= "tcp://sf-sioc-cs-64:9000"
print CAMERA_URL
st1 = Stream("st1", CAMERA_URL, SocketType.PULL)
st1.initialize()
st1.start()
st1.waitCacheChange(3000)
try:
r=bscan (st1, records=5, timeout=10.0, save=False, enabled_plots=[st1,])
v= st1.getValues()
finally:
st1.close()