## Detector software restart

During normal operation two Servers are needed to operate the Pilatus detector - Pilatus Server and Camserver - which run in two separate xterm session, as in figure. Both applications must be running to collect data. Camserver is the Dectris server the control the detector; Pilatus server is the bliss server that interface spec and mxCuBE with the Camserver. In case you are experience problem with the Pilatus, such as fuzzy images, data collection doesn't start, data collection failing you can stop the Pilatus software by clicking on the icon "Stop Pilatus"

To restart the Pilatus software you need to start the new version of Camserver. To do this, click on the Icon "Start camserver". The terminal below will open

In this terminal type ./start.sh

and press enter

Now you can click on the icon "Start Pilatus" on the right screen (id29control:1) or by typing start_pilatus.sh in a terminal on id29control during a remote access. You will have three windows, "Pilatus - do not close", "camserver" and "Pilatus server" as below

Update: Since the installation of new Pilatus3 6M you have two windows: det@pilatus29, Pilatus server and restart of MXCuBE2 after the Pilatus software is running

After Start Pilatus, if Camserver restarted correctly you will get something as follow in the camserver terminal

* THread
Channel 0: Temperature = 29.8C, Rel. Humidity = 14.5%
Channel 1: Temperature = 25.5C, Rel. Humidity = 20.7%
Channel 2: Temperature = 28.7C, Rel. Humidity = 0.0%
* imgmode p
* fillpix 0x9d367
* imgonly /home/det/p2_det/images/image_00429.tif
* imgmode p
* calibrate
* imgonly /home/det/p2_det/images/image_00430.tif
* imgmode x
*
Closing the socket & exiting child process
*
Connection request from 127.0.0.1
Connection has full control; pid = 14255
* Threshold has not been set
Exposure time set to: 1.000000 sec.
Exposure period set to: 1.005000 sec
Image path:
/lima_data/
Delay time set to: 0.000000 sec.
Exposures per frame set to: 1
*

Note that the temperature on Channel 1 must be around 25C and the Humidity on the Channel 2 is 0% (must be lower than 25%) to be able to operate the detector.

In the Pilatus server

terminal you get

This is your .profile_private talking. Put your changes in here and keep

Failed to import EventChannelFactory notifd/factory/pilatus29 from the Tango database

you can now start to collect data.

## Detector software restart - Remote Access

When logged in id29control type

- stop_pilatus.sh to stop all servers

- start_camserver.sh to start camserver and tvx

- start_pilatus.sh to start pilatus server

## Detector temperature and Humidity

The Pilatus 6M operates between 15C and 35C. The operation temperature is set at 23 C. If the temperature is too high, or too low a warning will appear in the camserver application preventing the detector from being used.

Check if the chiller (placed between Experimental and Optic Hutch) is on and if the temperature set is correct (23C).

The green button on the right switch the chiller on and off. After turning it on, press the enter button () on the right for few seconds.

If in the temperature is too high you will get a warning in the Camserver and you will not be able to collect data.

The same applies if the humidity is too high. Humidity is kept at reasonable values fluxing N2 gas inside the detector (blue tube in the image below).

## Temperature/Humidity error

In case of problem with the temperature and/or humidity you will get an error like the following one

Temperature / Humidity sensing disabled on DCB 1
Camera initialization error -- press <enter> to exit

You should check that the temperature of the cooling is the correct one and that the N2 stream valve is open. If they are OK, the error message is due to a communication problem. To overcome it, switch off the Pilatus and back on after few seconds, as explain here below.

## Switching on/off the Pilatus

Two switches are in the back of the Pilatus. In case you need to hard restart the detector you just need to switch them off and on again. You need to stop and start the detector software afterward (see above).

After having restarted the detector the two led for Power and Temp will be red until the detector software has not been restarted and the Camserver has complete the checking and booting of the detector.

id29gate:~ % ps -ef |grep adxv

kill -9 9425; kill -9 9468; kill -9 9469; kill -9  9749