Files
satesf/script/test/TestStream.py
gac-furka bf1060b656 Sep.2025
2025-09-04 11:21:05 +02:00

19 lines
698 B
Python

#Add device: will be visible in Device tab -> device panel is opened double clicking the device name.
#In the device panel you can plot data double-clicking each chanel.
add_device (Stream("st", cam_server.getStream("SATES30-RIXS-CAM01_proc"), SocketType.PULL), True)
st.start()
#Open the panel programatically
show_panel(st)
#Saves and displays 5 messages
bscan(st, 5)
#Saves and displays messages for 3 seconds, plotting arrays as line plots (1d)
bscan(st, -1, 3.0, line_plots=list(st.getChildren()))
#Just saves the stream, no display (Good idea if 100Hz)
bscan(st, -1, 3.0, display=False)
#Just displays the stream, no saving
bscan(st, 5, -1, save=False, line_plots=list(st.getChildren()))