|
|
|
Pour utiliser sur le web | Pour imprimer en haute résolution |
|---|---|
Télécharger PNG | Télécharger TIF |
Télécharger JPG | Télécharger EPS |
The Computing for Science (CS) group supports ILL scientists, students and visitors in a number of activities including data analysis, instrument simulation and sample simulation.

PROP Program Opener
Bridging the gap between Unix and WINDOWS James Burnley & Ron Ghosh - Institut Laue Langevin, 2004-2007
Running......Printing......Plotting
ILL Graphics are presented using PGPLOT from Tim Pearson, employing a Windows server program by Tauguhiro Tamaribuch which includes the ability to print directly to a Windows printer.
PROP - Online HelpCurrent version Details:
Recently added features To check for updates and download the most recent version of Prop please see ftp://ftp.ill.fr/pub/cs/prop
IntroductionProp - Program Opener "A bridge from Unix/Linux to Windows"
James Burnley & Ron Ghosh - Institut Laue Langevin, 2004-2007 Prop is a utility for providing the environment for programs ported from Unix/Linux to work comfortably in a Windows environment. Prop provides easily tailorable environment variables which were provided by the non-PC login procedures, and also simplifies directing output to standard WINDOWS printers. Prop enables you to group together specific sets of commonly used programs in a single window ready for launching. Prop also offers quick access to view data and output files. Although originally intended for treating data from ILL experiments the program is quite general and other suites can easily make use of mechanisms for managing environment variables. Features:
Version Details:
To check for updates and download the most recent version of Prop please consult the following URL's: NOTE: FILENAMES 1. Prop - Creating a new projectBefore you can start using Prop you must create a new project. The project conserves tailoring information about Prop and program control preferences. The first time Prop is loaded it will automatically display the Project window, if this is the case proceed to step 2 below.
By default Prop will create a program list by adding any programs contained in the program directory, eliminating any specified in the optional exclusion file. You can change the way Prop selects programs using the Preferences menu alternatively you can proceed to configure your program list manually.
The instrument name is used to create coresponding environment variables; depending on the instrument chosen Prop sets the variables accordingly, i.e. SAS for small angle scattering instruments, DIF for diffraction instruments etc.
2. Configuring the program listBy default Prop automatically creates a list of programs based on what it finds in the program directory. You can manually specify which programs are displayed in the program list by using the Configure Programs Window which is accessed using Options > Configure Programs. The Program window consists of two lists, one is the program list currently Selected; unselected programs are placed in the Programs Found list. If you are using the default settings then the Programs found list will be empty as Prop will have already added all available programs to the program list. To add or remove programs from a particular list simply select the desired program and then click the relevant button (add/remove) alternatively you can double click the desired program. The add/remove all buttons can be used to transfer quickly the contents of one list to another.
Batch Files
Any DOS-batch files found in the program directory are included in the list of executable files. Files starting with the letter x or click are assumed to be GUI programs using wish/expect and are run without a DOS console window. 3. Accessing the Work directoryAs well as accessing your list of defined programs from within Prop, you can also access your current working directory. To do this click on the WORK tab at the bottom of the main window. By default Prop displays all files. You can filter the selection using the Preferences window, i.e. you can get prop to display only listing files by setting the preference to *.lis
To return to the Program list simply click on the adjacent PROGRAMS tab. Printing: 4. Preferences The preferences screen controls how Prop operates. 5. Editing a projectYou can edit your project using the File > Current/New Project menu , or by right clicking in the list of programs window. 6. Loading a projectThere are two ways to load a previously saved project. The first is using the load dialog, shown below. This is accessed from the file menu or by right clicking anywhere within the project window. From the load dialog you specify the name of the project file, excluding the .pro extension, and it's location. Note: this can be done using the Browse button. Double-clicking on a project file in the browser sets both name and directory. Click OK when done and provided both the location and file exists the project will be loaded. Prop keeps a record of the last 8 projects used. They are listed under the Recent Projects option of the file menu. Simply click on a project to load it. 7. File BrowserThe file browser may be used whenever you need to specify directory names. It consists of two lists, directories on the left and files on the right contained in the directory named in the box title. You can navigate through directories by double clicking them or by using the Up button to go up a directory. You can also use the Goto button, to go to a specific directory that you specify in the adjacent text box. This is used to change disk volumes, e.g. by typing d:/ in the entry box and clicking the goto button.
If a directory does not exist you can use the create button to create the name. The directory is created within the directory you are currently browsing.
8. Advanced ToolsBuilt into Prop are a number of small features designed for advanced or administrator usage.
On restarting, Prop will use the system environment variables plus any set in the file env.pro (see below). Modified environment settings are NOT saved in the project. Permanent changes should be added to the env.pro file in the program directory.
INSTRUMENT NAME
The instrument name, if set, is used to create a prefix for the following variables. The group name depends on the type of instrument, at present DIF, INL, TAS or SAS. The match between instrument name and group is in matching length lists at the start of the main routine of prop.tcl. Three environment variables are created automatically by Prop.
Examples from SANS Suite, e.g. D22, matched prefix SAS. The corresponding environment variables created are:
SAS_DIR set to current program directory
When programs are run they start in the current work directory. These variables greatly simplify access to WINDOWS directories with long names and embedded spaces, but for data access it should be remembered that many ex-unix programs are not built expecting names greater than 50-80 characters in total length.
Certain programs require additional environment variables to function correctly. These can be added manually using the environment variables dialog (above) but in order to conserve them every time prop is run you should define them in a file named env.pro which you must create in your defined program directory. Prop treats data in this file as a list of pairs of variable names and values separated by a space, for example to add two environment variables envar1 and envar2 with the values enval1 enval2 you would use: SAS_DECOMPRESS zcat These indicate that the decompress command for data is zcat, and that the information concerning mismatches between data and treatment programs should not be written out after the first few occurrences. oldversion.exe notused.bat pdqtitle.exe These programs typically take command line arguments, and are utilities called by other members of the suite.
Prop uses three utilities, psta, pstb and pstn to spawn subprocesses inheriting the Prop environment. These use the WINDOWS CreateProcess directive. Notepad is the default editor called by Prop. An alternative may be substituted, but either it must be in the default PATH, or a fully specified filename must be written into prop.tcl. 9. Tips and adviceSaving size and location of Graphics window Once the graphics window has been resized and relocated on the screen these parameters may be saved as the defaults for the future using the Starting options in the help menu of this window.
Right Mouse Button Shortcut Load Project Use of the file browser in Load Projects simplifies finding and re-using existing project files (*.pro) Double clicking on such a file will copy the project name and directory ito the Load Project input boxes, ready to OK. 10. Frequently asked questionsQ. When I load Prop I get a list of programs I didn't previously specify
Q. Even though I have previously created a project, Prop prompts me to make a new one. |