CFEL-CMI / pymepix-viewer

A simple GUI for Timepix3cam use with the pymepix library
https://www.controlled-molecule-imaging.org/research/software
Other
5 stars 0 forks source link

Selection of IP address of the camera #20

Closed troehling closed 3 years ago

troehling commented 3 years ago

Currently there are two different IPs implemented that can be commented out or in depending on the needs. One is used for development with the spidrDummyTCP (not an actual camera). It can happen very easy that the development code with the dummy IP is commited if the lines are not adjusted before the commit.

The idea is to implement arguments that can be provided when launching the viewer that will determine which camera is used (IP and port?) This was the IP does not need to be hard coded anymore and can be swapped at runtime easily.

troehling commented 3 years ago

This is very useful for usage during development to use the spidrDummyTCP (IP: 127.0.0.1) instead of connecting a real Timepix camera.

Use the following command to connect with the dummy (dummy must be running already):

pymepixviewer --ip 127.0.0.1