print

D22

Large dynamic range small-angle diffractometer

Changer Command File macro for GEORGE

Macro written by F. André, August 2001

Changer File is a GEORGE dial (macro) that creates MAD command files for the sample changer.

The macro starts with a little window asking you for a choice of "create new file" or "use existing file".

Clicking the upper (new file) button opens a window where you choose a rack number. The number of available buttons corresponding to this sample rack is then read from the instrument parameters. You can enter a different number of positions manually. After that, choose the "sample table" button.

This opens another window in which you should fill in the sample names according to their positions. You don't need to fill all lines. You can jump from field to field using the tab key. If you intend to use a setting prefix like "1_", don't put it here; you will be prompted for the setting later. When you have finished with this, click "measurement table".

The following window also opens after the choice of an existing file following the corresponding option of the startup window. It is the table in which you can choose a preset, time or monitor, number of repetitions, and save or nosave. The latter are preset to t, 1, and s in case of the "create new file" options. If an existing command file is used, the fields are preset with what is present in the file.

The sample names correspond to position numbers. If you change a sample name in one of the sample fields and type return, all of the fields with the same position will change their name. Similarly, when you repeat a position, the sample field will automatically be filled; a warning appears in the second line of the window in this case.

You can add additional lines or delete the last line of the table clicking buttons on the right-hand side.

Buttons at the bottom allow you to fill down the preset , time, repetition, and save choice of the first sample line.

The program will automatically calculate the integral time of the measurement. In the case of monitor presets, you need to indicate the wavelength at which the measurement will be done.

The final step of creating a command file is initiated by clicking the "command file" button.

The last window that appears asks for information about the title, starting date, user name, proposal and logbook number of the experiment, an (optional) setting number or prefix and a file name (without the standard extension .cmd). The fields are preset by the information available in the command file used or by that of the current instrument state. If the previous command file does not contain this information, or if you want to overwrite it with the instrument parameters, click the top button. Once all fields filled in, click the "write command file" button.

In case of the presence of a setting number or prefix, this will be used to add a line "start setting_yourprefix" in the command file, and to add yourprefix_ to every sample text after the "par sub "text. Of course, "yourprefix" is to be replaced by what you typed in the field. Make sure that the file "setting_yourprefix.cmd" exists. It can be created using the Qrange dial. The "close" buttons close the corresponding window; the "done" button in the last window closes all windows.

Please, let me know your complains, or preferrably suggestions.

Web document produced by Roland May, ILL Grenoble (last update: 13-Sep-2001)