Skip to main content

Simple viewer for cameras, used at PETRA III source

Project description

General info:

This utility allows displaying images from 2d Tango detectors and to do simple analysis.

Right now TangoTine (LM screens) and Vimba cameras are supported.

Full instruction can be found here: https://confluence.desy.de/display/FSP23/Camera+viewer

Installation:

To install run setup.sh

The utility is written in Python3+PyQt5 and utilize scipy and numpy packdges.

Configuration @P23

The utility is installed @hasep23web and @hasep23sdd. You can start it by executing "camera" in the terminal.

Add new camera:

The camera configuration is stored in the config.xml

This is example of minimum entry to add camera:

<camera name="LM05"
        proxy="TangoTineProxy"
        tango_server="hasep23oh:10000/hasylab/p23_lm5/output"
/>

<camera name="Microscope"
        proxy="VimbaProxy"
        tango_server="hasep23oh:10000/p23/tangovimba/micro"
/>
  • proxy can be 'VimbaProxy" or "TangoTineProxy", "LambdaProxy" or "DummyProxy"

  • tango_server is the image source server

  • If you want a 12 bit mode of Vimba camera: high_depth= 'True'

  • If you want a RGB mode of Vimba camera: color= 'True'

  • In case you have an associated LMAnalysis server you can add it by:

roi_server = "hasep23oh:10000/p23/lmanalysis/lm5"
  • In case there is an motor to insert/remove screen it can be specified by:
  1. For FSBT motor (you need to have FSBT valve control server running):
motor_type = 'FSBT'
motor_host = 'hasep23swt01'
motor_port = '12658'
motor_name = 'LM5'
  1. For Acromag:
motor_type = 'Acromag' 
valve_tango_server = "p22/acromagxt1121/ch1.02" 
valve_channel="2"
  • In case of you need to flip/rotate image (in 90 deg terms):
flip_vertical="True"
flip_horizontal="True"
rotate = '2'

Here is an example of TTGW camera, with associated settings, lmanalysis server, driven by FSBT motor which picture need to be vertically flipped:

    <camera name="LM05"
            proxy="TangoTineProxy"
            tango_server="hasep23oh:10000/p23/tinecamera/lm5"
            roi_server = "hasep23oh:10000/p23/lmanalysis/lm5"
            widget="CameraSettingsWidget"
            motor_type = 'FSBT'
            motor_host = 'hasep23web'
            motor_port = '12658'
            motor_name = 'LM5'
    />

Here is an example of TangoVimba camera, running at 12 bit bw mode, with associated Acromag motor, which picture need to be 90 deg rotated:

<camera name="Microscope"
        proxy="VimbaProxy"
        tango_server="hasep23oh:10000/p23/tangovimba/micro"
        high_depth="True"
        motor_type = 'Acromag' 
        valve_tango_server = "p23/acromagxt1121/ch1.01" 
        valve_channel="2"
        motor_host = 'hasep23dev'
        rotate = '1'
/>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

petra_camera-0.0.1.tar.gz (74.5 kB view details)

Uploaded Source

File details

Details for the file petra_camera-0.0.1.tar.gz.

File metadata

  • Download URL: petra_camera-0.0.1.tar.gz
  • Upload date:
  • Size: 74.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for petra_camera-0.0.1.tar.gz
Algorithm Hash digest
SHA256 55ddef8be200b746bb44ca7b58fb6b29230ef4f1d98383fec0114a6118731c2c
MD5 ef496d6c91a3f5d22250cf051df6a327
BLAKE2b-256 5d3199ae287efd1b464e196385ac50a16f09952779e130444617b742dc5fa1a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page