<phyphox xmlns="http://phyphox.org/xml" xmlns:editor="http://phyphox.org/editor/xml" version="1.7" editor:version="1.0" locale="">
    <title>Accelerometer</title>
    <category>Kallisto</category>
    <description>Read the accelerometer of an Kallisto SY020-PCB</description>
    <data-containers>
        <container size="500" static="false">accXRaw</container>
        <container size="500" static="false">accYRaw</container>
        <container size="500" static="false">accZRaw</container>
        <container size="500" static="false">accXCal</container>
        <container size="500" static="false">accYCal</container>
        <container size="500" static="false">accZCal</container>
        <container size="1000" static="false">out</container>
        <container size="500" static="false">sumAcc</container>
        <container size="500" static="false">Output 4</container>
        <container size="1" static="false">sum</container>
        <container size="1" static="false">count</container>
        <container size="1000" static="false">power</container>
        <container size="1000" static="false">quotient</container>
    </data-containers>
    <input>
        <bluetooth editor:uuid="553" editor:posx="55.88888931274414" editor:posy="520.6666717529297"  name="Kallisto"  mode="notification" rate="1" subscribeOnStart="false">
            <config char="00001022-702b-69b5-b243-d6094a2b0e24" conversion="hexadecimal">A1</config>
            <output char="00001021-702b-69b5-b243-d6094a2b0e24" conversion="int16LittleEndian" offset="4" length="2">accXRaw</output>
            <output char="00001021-702b-69b5-b243-d6094a2b0e24" conversion="int16LittleEndian" offset="6" length="2">accYRaw</output>
            <output char="00001021-702b-69b5-b243-d6094a2b0e24" conversion="int16LittleEndian" offset="8" length="2">accZRaw</output>
            <output char="00001021-702b-69b5-b243-d6094a2b0e24" conversion="uInt32LittleEndian" offset="0" length="4">Output 4</output>
        </bluetooth>
    </input>
    <output>
    </output>
    <analysis sleep="0"  onUserInput="false">
        <multiply editor:uuid="603" editor:posx="479.6805419921875" editor:posy="487.6805534362793">
            <input as="factor" clear="false">accZRaw</input>
            <input as="factor" type="value">0.0011968</input>
            <output as="product">accZCal</output>
        </multiply>
        <multiply editor:uuid="601" editor:posx="500" editor:posy="100">
            <input as="factor" clear="false">accXRaw</input>
            <input as="factor" type="value">0.0011968</input>
            <output as="product">accXCal</output>
        </multiply>
        <multiply editor:uuid="602" editor:posx="500.6805419921875" editor:posy="296.6805534362793">
            <input as="factor" clear="false">accYRaw</input>
            <input as="factor" type="value">0.0011968</input>
            <output as="product">accYCal</output>
        </multiply>
        <formula editor:uuid="604" editor:posx="1337.5277709960938" editor:posy="207.81943893432617" formula="abs(sqrt([1]^2+[2]^2+[3]^2)-9.81)">
            <input as="in" clear="false">accXCal</input>
            <input as="in" clear="false">accYCal</input>
            <input as="in" clear="false">accZCal</input>
            <output as="out">sumAcc</output>
        </formula>
        <power editor:uuid="646" editor:posx="1746.7083129882812" editor:posy="438.7361259460449">
            <input as="base" clear="false">sumAcc</input>
            <input as="exponent" type="value">2</input>
            <output as="power">power</output>
        </power>
        <count editor:uuid="606" editor:posx="1757.5833740234375" editor:posy="598.6805534362793">
            <input as="buffer" clear="false">sumAcc</input>
            <output as="count">count</output>
        </count>
        <add editor:uuid="605" editor:posx="2031.4583129882812" editor:posy="436.90278244018555">
            <input as="summand" clear="false">power</input>
            <output as="sum">sum</output>
        </add>
        <divide editor:uuid="672" editor:posx="2033.90283203125" editor:posy="589.6389274597168">
            <input as="dividend" clear="false">power</input>
            <input as="divisor" clear="false">count</input>
            <output as="quotient">quotient</output>
        </divide>
    </analysis>
    <views>
        <view label="Graph">
            <graph editor:uuid="614" editor:posx="1038.1527404785156" editor:posy="69.16669845581055" label="Acceleration X" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="a" labelZ="" unitX="s" unitY="m/s²" unitZ="" logX="false" logY="false" logZ="false" xPrecision="2" yPrecision="2" zPrecision="2" scaleMinX="auto" scaleMaxX="auto" scaleMinY="fixed" scaleMaxY="fixed" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="-40" maxY="40" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">Output 4</input>
                <input axis="y">accXCal</input>
            </graph>
            <graph editor:uuid="615" editor:posx="1032.1666870117188" editor:posy="258.1666679382324" label="Acceleration Y" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="a" labelZ="" unitX="s" unitY="m/s²" unitZ="" logX="false" logY="false" logZ="false" xPrecision="2" yPrecision="2" zPrecision="2" scaleMinX="auto" scaleMaxX="auto" scaleMinY="fixed" scaleMaxY="fixed" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="-40" maxY="40" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">Output 4</input>
                <input axis="y">accYCal</input>
            </graph>
            <graph editor:uuid="616" editor:posx="1023.9722290039062" editor:posy="459.97224044799805" label="Acceleration Z" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="a" labelZ="" unitX="s" unitY="m/s²" unitZ="" logX="false" logY="false" logZ="false" xPrecision="2" yPrecision="2" zPrecision="2" scaleMinX="auto" scaleMaxX="auto" scaleMinY="fixed" scaleMaxY="fixed" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="-40" maxY="40" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">Output 4</input>
                <input axis="y">accZCal</input>
            </graph>
            <value editor:uuid="617" editor:posx="540.5138988494873" editor:posy="767.0694389343262" label="TimeStamp" size="1" precision="0" scientific="false" unit="µs" factor="1" >
                <input>Output 4</input>
            </value>
        </view>
        <view label="Betrag">
            <graph editor:uuid="618" editor:posx="1770.625" editor:posy="55.01388931274414" label="Absolute Beschleunigung" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="false" history="1" labelX="t" labelY="a" labelZ="" unitX="" unitY="" unitZ="" logX="false" logY="false" logZ="false" xPrecision="2" yPrecision="2" zPrecision="2" scaleMinX="auto" scaleMaxX="auto" scaleMinY="fixed" scaleMaxY="fixed" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="40" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">Output 4</input>
                <input axis="y">sumAcc</input>
            </graph>
            <value editor:uuid="619" editor:posx="1775.2916870117188" editor:posy="273.2500114440918" label="Absolute Beschelunigung" size="1" precision="2" scientific="false" unit="m/s²" factor="1" >
                <input>sumAcc</input>
            </value>
            <value editor:uuid="620" editor:posx="2287.3750610351562" editor:posy="439.97224044799805" label="ADD SQUARE SUM" size="1" precision="2" scientific="false"  factor="1" >
                <input>sum</input>
            </value>
            <value editor:uuid="633" editor:posx="2042.4861450195312" editor:posy="785.222240447998" label="Count" size="1" precision="0" scientific="false"  factor="1" >
                <input>count</input>
            </value>
            <value editor:uuid="659" editor:posx="2294.8194580078125" editor:posy="607.3194694519043" label="RMS" size="1" precision="2" scientific="false"  factor="1" >
                <input>quotient</input>
            </value>
        </view>
    </views>
    <export>
        <set name="Accelerometer">
            <data name="Acceleration x (m/s²)">accXCal</data>
            <data name="Acceleration y (m/s²)">accYCal</data>
            <data name="Acceleration z (m/s²)">accZCal</data>
        </set>
    </export>
</phyphox>
