mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 10:30:41 +02:00
clarification on hostname
This commit is contained in:
parent
7d05cc750c
commit
5442c0978a
@ -2,7 +2,7 @@ Using multiple detectors
|
|||||||
==========================
|
==========================
|
||||||
|
|
||||||
The slsDetectorPackage supports using several detectors on the same computer.
|
The slsDetectorPackage supports using several detectors on the same computer.
|
||||||
This can either be two users, that needs to use the same computer without interfering
|
This can either be two users, that need to use the same computer without interfering
|
||||||
with each other, or the same user that wants to use multiple detectors at the same time.
|
with each other, or the same user that wants to use multiple detectors at the same time.
|
||||||
The detectors in turn can consist of multiple modules.
|
The detectors in turn can consist of multiple modules.
|
||||||
|
|
||||||
@ -22,14 +22,18 @@ When configuring a detector you can specify a detector index. The default is 0.
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
# Configure detector with index 0
|
# Given that we have two detectors (my-det and my-det2) that we want to use,
|
||||||
|
# we can configure them with different indices.
|
||||||
|
|
||||||
|
# Configure the first detector with index 0
|
||||||
$ sls_detector_put hostname my-det
|
$ sls_detector_put hostname my-det
|
||||||
|
|
||||||
# Set number of frames for detector 0 to 19
|
# Set number of frames for detector 0 to 10
|
||||||
$ sls_detector_put frames 10
|
$ sls_detector_put frames 10
|
||||||
|
|
||||||
|
|
||||||
# Configure detector with index 1 (notice the 1- before hostname)
|
#
|
||||||
|
#Configure the second detector with index 1 (notice the 1- before hostname)
|
||||||
$ sls_detector_put 1-hostname my-det2
|
$ sls_detector_put 1-hostname my-det2
|
||||||
|
|
||||||
|
|
||||||
@ -55,6 +59,10 @@ The C++ API works int the same way.
|
|||||||
|
|
||||||
from slsdet import Detector
|
from slsdet import Detector
|
||||||
|
|
||||||
|
|
||||||
|
# The same can be achieved in Python by creating a detector object with an index.
|
||||||
|
# Again we have two detectors (my-det and my-det2) that we want to use:
|
||||||
|
|
||||||
# Configure detector with index 0
|
# Configure detector with index 0
|
||||||
d = Detector()
|
d = Detector()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user