Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define nxpath mapping directly in nxdl #7

Open
Ingvord opened this issue Feb 25, 2016 · 1 comment
Open

Define nxpath mapping directly in nxdl #7

Ingvord opened this issue Feb 25, 2016 · 1 comment

Comments

@Ingvord
Copy link
Contributor

Ingvord commented Feb 25, 2016

Original report by Ingvord (Bitbucket: Ingvord, GitHub: Ingvord).


subj.

@Ingvord
Copy link
Contributor Author

Ingvord commented Mar 23, 2016

Original comment by Ingvord (Bitbucket: Ingvord, GitHub: Ingvord).


To be precise, mapping can be generated when template is set. For this nxdl entries must have src attribute:

#!xml
<!-- entry/hardware -->
<group type="NXcollection" name="D" src="tango://hzgpp05vme2:10000/p05/micos/D">
        <group type="NXlog" name="Position">
          <field type="float64" name="value">
            <dimensions rank="1">
              <dim index="0" value="0"/>
            </dimensions>
          </field>
          <field type="uint64" name="time">
            <dimensions rank="1">
              <dim index="0" value="0"/>
            </dimensions>
          </field>
        </group>
      </group>

This effectively maps to

tango://hzgpp05vme2:10000/p05/micos/D = /entry/hardware/D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant