dtbsim is
a program to fully simulate the marXperts mardtb goniostat system. This
program is useful to test, debug or demonstrate software to operate the
mardtb (e.g. program mar345dtb).
Specifies the simulated
size in mm of an X-ray beam in ionization chambers 1 and 2. This option will
have impact only on the alignment routines (find beam, optimize beam).
The default values are 1.2 mm and 0.9 mm for chambers 1 and 2, respectively.
Note that the simulation will yield a Gaussian curve comprised within the
given range.
-i, --intensity IC1 IC2
Specifies the simulated readings of an
X-ray beam in ionization chambers 1 and 2. The defaults are 30000 and 25000.
-o, --offset N
Specifies the simulated ground line readings of ionization
chambers 1 and 2. The default is 1000 counts.
-var N
Specifies the simulated
variation of the ionization chamber readings. The default is +/- 20 counts.
-v, --verbose
Increase verbosity level,.
-p, --port PORT
Use TCP/IP-port <PORT>
rather than the default 4451. -s, --swap) Swaps bytes when reading input commands
or sending status and data. This needs to be done if the driver program
(mar345dtb) is run on a CPU with a different byte order than program dtbsim
(e.g. Intel/AMD vs. PowerPC).
-s, --swap) Swaps bytes when reading input commands
or sending status and data.
dtbsim is a TCP/IP-server
program listening on ports 4451 to 4454 (unless specified differently)
for incoming connections from client programs like mar345dtb. It accepts
commands through a socket interface and writes simulated scan data on the
data port. Most standard functions like moving the mardtb motors, doing
exposures in time mode and standard alignment procedures (find and optimize
beam) should work as a real instrument. Some more exotic features like sample
changer operations, easymount operations and special alignment functions
(adjust) are not implemented.