With the configurations above, running a regular simulation will now produce a NeXus file with the .h5 extension which can
be loaded into Mantid using :ref:`LoadMcStas <algm-LoadMcStas>`__.
Creating Instrument Definition Files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If we now load up our .instr file in McStas and select Run then unders Simulation set Simulation/Trace to Trace.
If we now load up our .instr file in McStas, select Run then under Simulation set Simulation/Trace to Trace.
When we start this simulation McStas should now automatically output an Instrument Definition File with a .xml extension containing the minimal information required by Mantid to lay out the instrument. If we want to include all components then we can run from the mcshell: