<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Will,</p>
<p> Yes, I agree with your interpretations of the "mode" and "preset" fields. There are 2 NXdetector instances in the instrument group to represent the 2 Keithley signals - The "absorbed_beam" link in "DATA" is clearly indicating to link to one of these.
The "MONITOR" group should represent the I0 measurement and so its "data" group should link to the data field in the "incoming_beam" group - This is not so clear from the documentation. Unfortunately, I don't have an example file to give you. However, you
can find a template file (written by a script interpreting the XML declaration without any actual data) at
<a href="https://github.com/nexusformat/exampledata/blob/master/autogenerated_examples/nxdl/applications/NXxas.hdf5" class="OWAAutoLink" id="LPlnk141090" previewremoved="true">
https://github.com/nexusformat/exampledata/blob/master/autogenerated_examples/nxdl/applications/NXxas.hdf5</a> that might be useful.
<br>
</p>
<p><br>
</p>
<p>Cheers,</p>
<p>Ben<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> NeXus <nexus-bounces@shadow.nd.rl.ac.uk> on behalf of Smith, William via NeXus <nexus@shadow.nd.rl.ac.uk><br>
<b>Sent:</b> Tuesday, 21 June 2022 4:53:30 PM<br>
<b>To:</b> nexus@nexusformat.org<br>
<b>Cc:</b> Smith, William<br>
<b>Subject:</b> [Nexus] NXxas and NXMonitor</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Dear Nexus Mailing List, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to map my data into the NXxas application definition.
<a href="https://manual.nexusformat.org/classes/applications/NXxas.html#nxxas">https://manual.nexusformat.org/classes/applications/NXxas.html#nxxas</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The two DATA links make sense. The “energy” is the energies from my monochromator. The “absorbed” is the values from the detector which measures the absorbed beam. I am confused what the MONITOR group is for and why the parameters “mode”
and “preset” are required and not optional. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In my beamline I am measuring the I0 and absorbed beam both with two current measuring devices (specifically Keithleys). They have an integration time. Should I make “mode” : “timer” and “preset” be the integration time?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anybody have any examples I can look at?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Will<o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH<br>
<br>
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.<br>
<br>
Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher<br>
Geschäftsführung: Prof. Dr. Bernd Rech, Thomas Frederking<br>
<br>
Sitz Berlin, AG Charlottenburg, 89 HRB 5583<br>
<br>
Postadresse:<br>
Hahn-Meitner-Platz 1<br>
14109 Berlin<br>
Deutschland<br>
</font></div>
</body>
</html>