Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re #9923 updated links and qc, still needs links from algs
- Loading branch information
1 parent
990a019
commit 41f1730
Showing
46 changed files
with
1,701 additions
and
957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.. _Create_an_IDF: | ||
|
||
Create an IDF | ||
============= | ||
|
||
This page will help you get started with making an instrument definition file. For documentation on individual elements of an IDF refer to the :ref:`IDF documentation <InstrumentDefinitionFile>` | ||
|
||
Basic Steps | ||
----------- | ||
|
||
The best way to get started is to: | ||
|
||
- `Set up an editor for XML that uses schema validation <http://www.mantidproject.org/Using_XML_Schema>`__ | ||
- Read the :ref:`introduction to IDFs <InstrumentDefinitionFile>` | ||
- Read the annotated existing IDFs | ||
- Look for similar existing IDFs | ||
- Use the IDF page for more detailed documentation | ||
|
||
Using the Schema | ||
---------------- | ||
|
||
To set up your editor with the schema, `Follow These Instructions <http://www.mantidproject.org/Using_XML_Schema>`__. | ||
The Schema can help with writing the IDF. For example: | ||
|
||
- In Visual Studio the schema can be used to auto-insert elements and attributes permitted by the schema. | ||
- In eclipse the IDF can be created in a design view by selected available elements and attributes without having to type the code yourself. | ||
The IDF schema (IDFSchema.xsd) is located in your mantid install directory at MantidInstall\instrument\Schema. Note this folder also includes the schema, ParameterFileSchema.xsd, which may be used to assist in writting a :ref:`parameter file <InstrumentParameterFile>` | ||
|
||
|
||
Find a Similar existing IDF | ||
--------------------------- | ||
|
||
It may be that an instrument already exists that is similar to the one you wish to add. To see the existing instruments follow the procedure below. | ||
|
||
- Install Mantid | ||
- Open MantidPlot | ||
- Execute the algorithm LoadEmptyInstrument | ||
- This open the algorithm window for this algorithm. Click the Browse button and browse to the instrument folder of your Mantid install directory | ||
- The instrument folder contains all the instruments that Mantid currently support. Select for example SANS2D_Definition.xml. Fill in the output workspace name, and and click 'Run' | ||
- The created workspace will appear in the Workspaces window. Right click on the workspace and chose 'Show Instrument' | ||
- A new window appears, which is called the `Instrument view <http://www.mantidproject.org/MantidPlot:_Instrument_View>`__. | ||
|
||
In addition below is a list (for now just containing one item) of existing IDFs which have been annotated with the purpose of (hopefully) quickly learn the basis of creating an IDF: | ||
|
||
- :ref:`SANS2D: ISIS small angle scattering instrument <SANS2D_Sample_IDF>` | ||
- :ref:`LET: ISIS direct inelastic instrument<LET_Sample_IDF>` | ||
|
||
.. categories:: Concepts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.