<phyphox xmlns="http://phyphox.org/xml" xmlns:editor="http://phyphox.org/editor/xml" version="1.7" editor:version="1.0" locale="">
    <title>Barometric and Humidity</title>
    <category>Texas Instruments SensorTag</category>
    <description>Read the humidity and temperature from the humidity sensor and pressure and temperature from barometric sensor of a Texas Instruments SensorTag like the CC2650 or the CC1350.
Reading interval set to maximum, 2.55 seconds.</description>
    <data-containers>
        <container size="0" static="false">tempRaw</container>
        <container size="0" static="false">humRaw</container>
        <container size="0" static="false">tempCal</container>
        <container size="0" static="false">humCal</container>
        <container size="0" static="false">t</container>
        <container size="1" static="false">count</container>
        <container size="1" static="false">tmax</container>
        <container size="0" static="false">pRaw</container>
        <container size="0" static="false">T2raw</container>
        <container size="0" static="false">pCal</container>
        <container size="0" static="false">T2cal</container>
    </data-containers>
    <input>
        <bluetooth editor:uuid="101" editor:posx="100" editor:posy="250" id="Humidity/Temperature" name="SensorTag"  mode="notification" rate="1" subscribeOnStart="false">
            <config char="F000AA23-0451-4000-B000-000000000000" conversion="hexadecimal">FF</config>
            <config char="F000AA22-0451-4000-B000-000000000000" conversion="hexadecimal">01</config>
            <output char="F000AA21-0451-4000-B000-000000000000" conversion="uInt16LittleEndian" offset="2" length="2">humRaw</output>
            <output char="F000AA21-0451-4000-B000-000000000000" conversion="uInt16LittleEndian" offset="0" length="2">tempRaw</output>
        </bluetooth>
        <bluetooth editor:uuid="202" editor:posx="71.25" editor:posy="1148.183349609375" id="Pressure/Temperature" name="SensorTag"  mode="notification" rate="1" subscribeOnStart="false">
            <config char="F000AA44-0451-4000-B000-000000000000" conversion="hexadecimal">FF</config>
            <config char="F000AA42-0451-4000-B000-000000000000" conversion="hexadecimal">01</config>
            <output char="F000AA41-0451-4000-B000-000000000000" conversion="uInt24LittleEndian" offset="3" length="3">pRaw</output>
            <output char="F000AA41-0451-4000-B000-000000000000" conversion="int24LittleEndian" offset="0" length="3">T2raw</output>
        </bluetooth>
    </input>
    <output>
    </output>
    <analysis sleep="0"  onUserInput="false">
        <multiply editor:uuid="280" editor:posx="480.58331298828125" editor:posy="1325.3666687011719">
            <input as="factor" type="value">0.01</input>
            <input as="factor" clear="false">T2raw</input>
            <output as="product">T2cal</output>
        </multiply>
        <multiply editor:uuid="279" editor:posx="487.58331298828125" editor:posy="1043.3666687011719">
            <input as="factor" type="value">0.01</input>
            <input as="factor" clear="false">pRaw</input>
            <output as="product">pCal</output>
        </multiply>
        <formula editor:uuid="149" editor:posx="500" editor:posy="100" formula="[1_]/65536*165-40">
            <input as="in" clear="false">tempRaw</input>
            <output as="out">tempCal</output>
        </formula>
        <formula editor:uuid="150" editor:posx="750" editor:posy="350" formula="floor([1_]/4)*4/65536*100">
            <input as="in" clear="false">humRaw</input>
            <output as="out">humCal</output>
        </formula>
        <count editor:uuid="151" editor:posx="1000" editor:posy="600">
            <input as="buffer" clear="false">tempRaw</input>
            <output as="count">count</output>
        </count>
        <formula editor:uuid="152" editor:posx="1250" editor:posy="850" formula="([1]-1)*2.55/60">
            <input as="in" clear="false">count</input>
            <output as="out">tmax</output>
        </formula>
        <ramp editor:uuid="153" editor:posx="1505" editor:posy="1061">
            <input as="start" type="value">0</input>
            <input as="stop">tmax</input>
            <input as="length">count</input>
            <output as="out">t</output>
        </ramp>
    </analysis>
    <views>
        <view label="Humidity/Temperature">
            <graph editor:uuid="160" editor:posx="1900" editor:posy="250" label="Relative Humidity" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="Humidity" labelZ="" unitX="min" unitY="%" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="3" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">t</input>
                <input axis="y">humCal</input>
            </graph>
            <graph editor:uuid="161" editor:posx="1909" editor:posy="746" label="Temperature" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="T1" labelZ="" unitX="min" unitY="°C" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="3" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">t</input>
                <input axis="y">tempCal</input>
            </graph>
            <value editor:uuid="181" editor:posx="1618.8666687011719" editor:posy="164.4166717529297" label="Humidity" size="2" precision="2" scientific="false" unit="%" factor="1" >
                <input>humCal</input>
            </value>
            <value editor:uuid="188" editor:posx="1568.5333251953125" editor:posy="513.566650390625" label="Temperature" size="2" precision="2" scientific="false" unit="°C" factor="1" >
                <input>tempCal</input>
            </value>
        </view>
        <view label="Pressure/Temperature">
            <graph editor:uuid="227" editor:posx="1848.0166625976562" editor:posy="1234.4166717529297" label="Pressure" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="Pressure" labelZ="" unitX="min" unitY="hPa" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="4" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">t</input>
                <input axis="y">pCal</input>
            </graph>
            <graph editor:uuid="240" editor:posx="1844.566650390625" editor:posy="1407.2333374023438" label="Temperature" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="T2" labelZ="" unitX="min" unitY="°C" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="3" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">t</input>
                <input axis="y">T2cal</input>
            </graph>
            <value editor:uuid="253" editor:posx="1113.2999877929688" editor:posy="1003.7999877929688" label="Pressure" size="2" precision="1" scientific="false" unit="hPa" factor="1" >
                <input>pCal</input>
            </value>
            <value editor:uuid="266" editor:posx="1126.61669921875" editor:posy="1298.9500122070312" label="Temperature" size="2" precision="2" scientific="false" unit="°C" factor="1" >
                <input>T2cal</input>
            </value>
        </view>
    </views>
    <export>
        <set name="HumidityPressure2Temperatures">
            <data name="time (min)">t</data>
            <data name="Humidity (%)">humCal</data>
            <data name="Temp_H (°C)">tempCal</data>
            <data name="Pressure (hPa)">pCal</data>
            <data name="Temp_P (°C)">T2cal</data>
        </set>
    </export>
</phyphox>
