Eclipse.org Eclipse.org dkml Generic Io

<dkml> examples

Generic Io Attributes Elements XML Reference
<dkml> example from the adapter_test.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2007, 2009 IBM.                                           -->
<!-- All rights reserved. This program and the accompanying materials        -->
<!-- are made available under the terms of the Eclipse Public License v1.0   -->
<!-- which accompanies this distribution, and is available at                -->
<!-- http://www.eclipse.org/legal/epl-v10.html                               -->
<!--                                                                         -->
<!-- Contributors:                                                           -->
<!--     IBM - initial API and implementation                                -->
<!-- WARNING:                                                                -->
<!-- Consult the hardware manufacturer's technical specifications and User   -->
<!-- Guide for proper usage of the hardware before you use the Device Kit.   -->
<!-- Improper usage may result in damage to the hardware.                    -->

<dkml>
    <adaptertest id="GenericIoAdapterTest" packagebase="org.eclipse.soda.dk">
        <description>Generic Digital and Analog I/O Device Test</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <adapter idref="org.eclipse.soda.dk.generic.io.adapter/dk/adapter.xml#GenericIoAdapter"/>
        <testcase/>
    </adaptertest>
</dkml>



<dkml> example from the adapter.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2007, 2009 IBM.                                           -->
<!-- All rights reserved. This program and the accompanying materials        -->
<!-- are made available under the terms of the Eclipse Public License v1.0   -->
<!-- which accompanies this distribution, and is available at                -->
<!-- http://www.eclipse.org/legal/epl-v10.html                               -->
<!--                                                                         -->
<!-- Contributors:                                                           -->
<!--     IBM - initial API and implementation                                -->
<!-- WARNING:                                                                -->
<!-- Consult the hardware manufacturer's technical specifications and User   -->
<!-- Guide for proper usage of the hardware before you use the Device Kit.   -->
<!-- Improper usage may result in damage to the hardware.                    -->

<dkml>
    <adapter id="GenericIoAdapter" packagebase="org.eclipse.soda.dk">
        <description>Generic Digital and Analog I/O Device</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <incubation>true</incubation>
<!-- Protocol Specification    -->

        <spec id="Specification"/>
        <device idref="org.eclipse.soda.dk.generic.io.device/dk/device.xml#GenericIoDevice"/>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </adapter>
</dkml>



<dkml> example from the device.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2007, 2009 IBM.                                           -->
<!-- All rights reserved. This program and the accompanying materials        -->
<!-- are made available under the terms of the Eclipse Public License v1.0   -->
<!-- which accompanies this distribution, and is available at                -->
<!-- http://www.eclipse.org/legal/epl-v10.html                               -->
<!--                                                                         -->
<!-- Contributors:                                                           -->
<!--     IBM - initial API and implementation                                -->
<!-- WARNING:                                                                -->
<!-- Consult the hardware manufacturer's technical specifications and User   -->
<!-- Guide for proper usage of the hardware before you use the Device Kit.   -->
<!-- Improper usage may result in damage to the hardware.                    -->

<dkml>
    <device id="GenericIoDevice" packagebase="org.eclipse.soda.dk" abstract="true">
        <description>Generic Digital and Analog I/O Device</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <incubation>true</incubation>
<!-- Protocol Specification    -->

        <spec id="Specification"/>
<!--     Configuration    -->

        <measurement id="DigitalInputCount" type="Integer" executewrite="false">
            <configuration>1</configuration>
            <method/>
        </measurement>
        <measurement id="DigitalOutputCount" type="Integer" executewrite="false">
            <configuration>1</configuration>
            <method/>
        </measurement>
        <measurement id="AnalogInputCount" type="Integer" executewrite="false">
            <configuration>1</configuration>
            <method/>
        </measurement>
        <measurement id="AnalogOutputCount" type="Integer" executewrite="false">
            <configuration>1</configuration>
            <method/>
        </measurement>
<!-- Digital Output    -->

        <measurement id="DigitalOutputs" type="Long" executeread="false">
            <description>Maintain the output pins.</description>
            <method/>
        </measurement>
<!-- Digital Input    -->

        <measurement id="DigitalInputs" type="Long" executewrite="false" setvalue="false">
            <description>Maintain the input.</description>
            <method/>
        </measurement>
<!-- Analog Output    -->

        <measurement id="AnalogOutputs" type="Map" executeread="false">
            <description>Maintain the output pins.</description>
            <data id="ao1" type="long">
                <description>Analog Output 1</description>
            </data>
            <data id="ao2" type="long">
                <description>Analog Output 2</description>
            </data>
            <data id="ao3" type="long">
                <description>Analog Output 3</description>
            </data>
            <data id="ao4" type="long">
                <description>Analog Output 4</description>
            </data>
            <data id="ao5" type="long">
                <description>Analog Output 5</description>
            </data>
            <data id="ao6" type="long">
                <description>Analog Output 6</description>
            </data>
            <data id="ao7" type="long">
                <description>Analog Output 7</description>
            </data>
            <data id="ao8" type="long">
                <description>Analog Output 8</description>
            </data>
            <data id="ao9" type="long">
                <description>Analog Output 9</description>
            </data>
            <data id="ao10" type="long">
                <description>Analog Output 10</description>
            </data>
            <data id="ao11" type="long">
                <description>Analog Output 11</description>
            </data>
            <data id="ao12" type="long">
                <description>Analog Output 12</description>
            </data>
            <data id="ao13" type="long">
                <description>Analog Output 13</description>
            </data>
            <data id="ao14" type="long">
                <description>Analog Output 14</description>
            </data>
            <data id="ao15" type="long">
                <description>Analog Output 15</description>
            </data>
            <data id="ao16" type="long">
                <description>Analog Output 16</description>
            </data>
            <data id="ao17" type="long">
                <description>Analog Output 17</description>
            </data>
            <data id="ao18" type="long">
                <description>Analog Output 18</description>
            </data>
            <data id="ao19" type="long">
                <description>Analog Output 19</description>
            </data>
            <data id="ao20" type="long">
                <description>Analog Output 20</description>
            </data>
            <data id="ao21" type="long">
                <description>Analog Output 21</description>
            </data>
            <data id="ao22" type="long">
                <description>Analog Output 22</description>
            </data>
            <data id="ao23" type="long">
                <description>Analog Output 23</description>
            </data>
            <data id="ao24" type="long">
                <description>Analog Output 24</description>
            </data>
            <data id="ao25" type="long">
                <description>Analog Output 25</description>
            </data>
            <data id="ao26" type="long">
                <description>Analog Output 26</description>
            </data>
            <data id="ao27" type="long">
                <description>Analog Output 27</description>
            </data>
            <data id="ao28" type="long">
                <description>Analog Output 28</description>
            </data>
            <data id="ao29" type="long">
                <description>Analog Output 29</description>
            </data>
            <data id="ao30" type="long">
                <description>Analog Output 30</description>
            </data>
            <data id="ao31" type="long">
                <description>Analog Output 31</description>
            </data>
            <data id="ao32" type="long">
                <description>Analog Output 32</description>
            </data>
            <method/>
        </measurement>
<!-- Analog Input    -->

        <measurement id="AnalogInputs" type="Map" executewrite="false" setvalue="false">
            <description>Maintain the input.</description>
            <data id="ai1" type="long">
                <description>Analog Input 1</description>
            </data>
            <data id="ai2" type="long">
                <description>Analog Input 2</description>
            </data>
            <data id="ai3" type="long">
                <description>Analog Input 3</description>
            </data>
            <data id="ai4" type="long">
                <description>Analog Input 4</description>
            </data>
            <data id="ai5" type="long">
                <description>Analog Input 5</description>
            </data>
            <data id="ai6" type="long">
                <description>Analog Input 6</description>
            </data>
            <data id="ai7" type="long">
                <description>Analog Input 7</description>
            </data>
            <data id="ai8" type="long">
                <description>Analog Input 8</description>
            </data>
            <data id="ai9" type="long">
                <description>Analog Input 9</description>
            </data>
            <data id="ai10" type="long">
                <description>Analog Input 10</description>
            </data>
            <data id="ai11" type="long">
                <description>Analog Input 11</description>
            </data>
            <data id="ai12" type="long">
                <description>Analog Input 12</description>
            </data>
            <data id="ai13" type="long">
                <description>Analog Input 13</description>
            </data>
            <data id="ai14" type="long">
                <description>Analog Input 14</description>
            </data>
            <data id="ai15" type="long">
                <description>Analog Input 15</description>
            </data>
            <data id="ai16" type="long">
                <description>Analog Input 16</description>
            </data>
            <data id="ai17" type="long">
                <description>Analog Input 17</description>
            </data>
            <data id="ai18" type="long">
                <description>Analog Input 18</description>
            </data>
            <data id="ai19" type="long">
                <description>Analog Input 19</description>
            </data>
            <data id="ai20" type="long">
                <description>Analog Input 20</description>
            </data>
            <data id="ai21" type="long">
                <description>Analog Input 21</description>
            </data>
            <data id="ai22" type="long">
                <description>Analog Input 22</description>
            </data>
            <data id="ai23" type="long">
                <description>Analog Input 23</description>
            </data>
            <data id="ai24" type="long">
                <description>Analog Input 24</description>
            </data>
            <data id="ai25" type="long">
                <description>Analog Input 25</description>
            </data>
            <data id="ai26" type="long">
                <description>Analog Input 26</description>
            </data>
            <data id="ai27" type="long">
                <description>Analog Input 27</description>
            </data>
            <data id="ai28" type="long">
                <description>Analog Input 28</description>
            </data>
            <data id="ai29" type="long">
                <description>Analog Input 29</description>
            </data>
            <data id="ai30" type="long">
                <description>Analog Input 30</description>
            </data>
            <data id="ai31" type="long">
                <description>Analog Input 31</description>
            </data>
            <data id="ai32" type="long">
                <description>Analog Input 32</description>
            </data>
            <method/>
        </measurement>
    </device>
</dkml>



<dkml> example from the profile.xml sample.

<?xml version="1.0" encoding="UTF-8"?>


<!-- Copyright (c) 2007, 2009 IBM.                                           -->
<!-- All rights reserved. This program and the accompanying materials        -->
<!-- are made available under the terms of the Eclipse Public License v1.0   -->
<!-- which accompanies this distribution, and is available at                -->
<!-- http://www.eclipse.org/legal/epl-v10.html                               -->
<!--                                                                         -->
<!-- Contributors:                                                           -->
<!--     IBM - initial API and implementation                                -->
<!-- WARNING:                                                                -->
<!-- Consult the hardware manufacturer's technical specifications and User   -->
<!-- Guide for proper usage of the hardware before you use the Device Kit.   -->
<!-- Improper usage may result in damage to the hardware.                    -->

<dkml>
    <profile id="GenericIoGpioProfile" packagebase="org.eclipse.soda.dk">
        <description>Gpio Profile implementation for Generic Digital and Analog I/O Device</description>
        <provider>Eclipse.org</provider>
        <version>1.2.0</version>
        <vendor>IBM</vendor>
        <incubation>true</incubation>
<!-- Protocol Specification    -->

        <spec id="Specification"/>
        <customparameter name="pollingrate" type="int" defaultvalue="250" access="true"/>
        <profileparent>
            <profileref idref="org.eclipse.soda.dk.gpio.profile/dk/profile.xml#GpioProfile"/>
        </profileparent>
        <adapter idref="org.eclipse.soda.dk.generic.io.adapter/dk/adapter.xml#GenericIoAdapter"/>
        <device idref="org.eclipse.soda.dk.generic.io.device/dk/device.xml#GenericIoDevice">
            <measurementref idref="DigitalInputCount"/>
            <measurementref idref="DigitalOutputCount"/>
            <measurementref idref="AnalogInputCount"/>
            <measurementref idref="AnalogOutputCount"/>
            <measurementref idref="DigitalInputs"/>
            <measurementref idref="DigitalOutputs"/>
            <measurementref idref="AnalogInputs"/>
            <measurementref idref="AnalogOutputs"/>
        </device>
        <bundle/>
        <managedbundle/>
        <managedfactorybundle/>
    </profile>
</dkml>




Copyright (c) 2010 IBM. See license in Legal section. 2010-01-26 Generic Io XML Reference 1.2.0