CameraViewerStretch

../../../_images/camera_viewer_stretch.png

CameraViewerStretch is useful for building a camera-specific control panel where the main preview remains visible while auxiliary controls stay grouped in a hidable side panel.

Important macros and properties

cam_prefix

The base prefix for the camera PVs, such as LAS:CAM:. This is the main camera identifier used by the image view and is propagated to adopted child widgets so they point at the same detector.

nickname

The text displayed at the top of the widget. This is the visible name shown in the title/header area of the viewer.

stream_plugin

The AreaDetector stream plugin being displayed. The default is :IMAGE1: and it includes the conventional leading and trailing colons so the full stream PV can be changed cleanly while keeping the plugin name structure intact.

img_protocol

The protocol used for the stream PV, typically ca:// by default. This is appended in front of the image PV address and is useful when switching to pva:// for a PVA-based stream.

suffix_waveform_channel

The waveform field suffix used by the image source. The default is ArrayData for the standard CA-based workflow.

suffix_width_channel

The width field suffix used by the image source. The default is ArraySize0_RBV for CA-based streams. This is mainly relevant for the width source when the image plugin is not using the standard CA naming convention; for PVA the width does not need to be matched the same way.