Files
saresa/script/test/TestBsreadCamera.py
gac-alvra 32138860f1
2026-01-09 15:11:08 +01:00

22 lines
588 B
Python
Executable File

import ch.psi.pshell.bs.ProviderConfig.SocketType as SocketType
CAMERA = "SARES11-XMI125-C4P1"
#CAMERA = "SARES11-SPEC125-M1"
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)
show_panel(st1)
#try:
# r=bscan (st1, records=10, timeout=10.0, domain_axis="Time", save=False, enabled_plots=[st1,])
# v= st1.getValues()
#finally:
# st1.close()