- Added tabledrive: table driven path for MARS
- Initial MARS development - Upgraded Manager Manual SKIPPED: psi/make_gen psi/psi.c psi/tabledrive.c psi/tabledrive.h psi/tabledrive.w psi/utils/SerPortServer.c
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<P>
|
||||
It is useful to drive a simulation of an instrument with the same interface as is used at
|
||||
the original instruments. One of the better packages for performing simulations of neutron
|
||||
scattering instruments, including samples, is McStas. This section describes SICS
|
||||
scattering instruments, including samples, is McStas. This section describes the SICS
|
||||
interface to McStas simulations. The interface consists of three parts:
|
||||
<ul>
|
||||
<li>A McStas controller module which controls the actual simulation.
|
||||
@ -29,7 +29,7 @@ The general ideas is that all parameters are handled through the normal SICS sim
|
||||
<dd>Tests if the McStas simulation is still running.
|
||||
<dt>mcstasdump pid
|
||||
<dd>Has to send a signal to McStas which causes it to dump its data without terminating.
|
||||
Current versions of McStas do this on receiving the USR2 signal.
|
||||
Current versions of McStas do this on receiving the USR2 signal.
|
||||
<dt>mcstasstop pid
|
||||
<dd>Stops the McStas simulation.
|
||||
<dt>mcstasread
|
||||
@ -56,9 +56,6 @@ in a certain way:
|
||||
must be configured through: mccontrol configure mcmonfile name-of-file.
|
||||
<li>The mcstas simulation executable must be declared with allowexec in order to be able
|
||||
to start with the Tcl exec command.
|
||||
<li>Though McStas can be made to dump its data by sending it a USR2 signal, it is
|
||||
much cleaner and simpler to have McStas dump its data regularly through the use of the
|
||||
Progress_bar component.
|
||||
</ul>
|
||||
</p>
|
||||
<h2>The McStas Reader</h2>
|
||||
@ -85,7 +82,7 @@ groups, the name attribute is used a path component.
|
||||
<dd>The counter object into which the monitor is read. This is a limitation, with the
|
||||
this McStas interface only counters can store monitors.
|
||||
<dt>monitornumber
|
||||
<dd>Monitornumber is the monitor channel into which the value is to be stored.
|
||||
<dd>Monitornumber is the monitor\ channel into which the value is to be stored.
|
||||
<dt>scale
|
||||
<dd>Scale is an optional scale factor for the monitor. Real monitors have a
|
||||
sensitivity of E-6, McStas monitors have an efficiency of 1.0. This factor allows to
|
||||
@ -99,15 +96,15 @@ groups, the name attribute is used a path component.
|
||||
</dl>
|
||||
The mccreader module also supports reading data from any ASCII file into SICS. Mcreader
|
||||
close and open are not required then. For reading histogram memory data, the appropriate
|
||||
data has to be parsed into a <a href="sicsdata.htm">SICSdata</a> object first. Then
|
||||
data has to be parsed into a SICSdata object first. Then
|
||||
data can be trasnferred using the following commands:
|
||||
<dl>
|
||||
<dt>mcreader insertmondirect counter num value
|
||||
<dd>Assigns value to the monitor num at the counter object counter. Monitor 0 is the
|
||||
actual counts data.
|
||||
</dl>
|
||||
<dt>mcreader inserthmfromdata hm data
|
||||
<dd>Inserts the data in the SICSData object data into the histogram memory hm.
|
||||
</dl>
|
||||
</p>
|
||||
<H2>The McStas Controller</h2>
|
||||
<p>
|
||||
@ -144,7 +141,7 @@ line and finally starts the simulation. This script is expected to return either
|
||||
often.
|
||||
<dt>mccontrol configure update monitorscale
|
||||
<dd>Configures the scaling factor to use on the monitor in monfile. Normal monitors have
|
||||
a efficeincy of 1E-6, the McStas monitor counts every neutron. This can be compensated
|
||||
a efficiency of 1E-6, the McStas monitor counts every neutron. This can be compensated
|
||||
for by this scaling factor. Note that this scaling factor may be dependent on the
|
||||
wavelength used.
|
||||
<dt>mccontrol configure mcmonfile filename
|
||||
|
Reference in New Issue
Block a user