Skip to main content

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

Logs are stored in the ~/.petra_camera folder

If you wnat logs to be printed in terminal windows add --log option

Add new camera:

The camera configuration is stored in the ~/.petra_camera folder

By default the default.xml is loading

If you want to force another config add -p or --profile option with file name

This is example of minimum entry to add camera:

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

<camera name="Microscope"
        proxy="TangoVimba"
        tango_server="hasep23oh:10000/p23/tangovimba/micro"
/>
  • proxy can be 'VimbaProxy" or "LMScreen", "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="LMScreen"
            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'
/>

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-1.1.0.tar.gz (99.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: petra_camera-1.1.0.tar.gz
  • Upload date:
  • Size: 99.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.21.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/17.1.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.3

File hashes

Hashes for petra_camera-1.1.0.tar.gz
Algorithm Hash digest
SHA256 63a26a3c2959c5919fbf32311214d8b591b7df3beee47a5136807041ff461f2b
MD5 95daf75c30411a1bdeb7abd6e93b08f9
BLAKE2b-256 98a7e576fb2ab4af4b5e2948cd63fbe6c02e94f9d345ef51385f70ab21849283

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

1.0.0

1 file

0.9.9

1 file

0.9.6

1 file

0.9.5

1 file

0.9.2

1 file

0.8.6

1 file

0.8.5

1 file

0.8.4

1 file

0.8.3

1 file

0.8.2

1 file

0.8.1

1 file

0.8.0

1 file

0.7.1

1 file

0.7.0

1 file

0.6.2

1 file

0.6.1

1 file

0.6.0

1 file

0.5.0

1 file

0.4.0

1 file

0.3.0

1 file

0.2.0

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page