This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How to plot two channels or more on the same graph?
#5
(02-03-2023, 03:35 PM)Jens Noritzsch Wrote: Often, it makes sense to start right from an existing experiment (sources: https://github.com/phyphox/phyphox-experiments), replace the internal by bluetooth sensors, and delete anything you do not need. Smile

Thanks a lot.

I tried to edit the experiment "Acceleration with g" by loading it from "Load experiment" button in editor. Not changing anything yet. I loaded the experiment via QR code and found all 4 waveforms in MULTI of the same color-orange. This is different from the built-in experiment on smarphone under Raw Sensors>Acceleration with g in which I can see different colors.

The section of MULTI is extracted below:
Code:
        <view label="Multi">
            <graph editor:uuid="160" label="Acceleration" 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="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">acc_time</input>
                <input axis="y">accX</input>
                <input axis="x">acc_time</input>
                <input axis="y">accY</input>
                <input axis="x">acc_time</input>
                <input axis="y">accZ</input>
                <input axis="x">acc_time</input>
                <input axis="y">acc</input>
            </graph>
            <value editor:uuid="161" label="Accelerometer x" size="2" precision="2" scientific="false" unit="m/s²" factor="1" color="green">
                <input>accX</input>
            </value>
            <value editor:uuid="162" label="Accelerometer y" size="2" precision="2" scientific="false" unit="m/s²" factor="1" color="blue">
                <input>accY</input>
            </value>
            <value editor:uuid="163" label="Accelerometer z" size="2" precision="2" scientific="false" unit="m/s²" factor="1" color="yellow">
                <input>accZ</input>
            </value>
            <value editor:uuid="164" label="Absolute acceleration" size="2" precision="2" scientific="false" unit="m/s²" factor="1" color="white">
                <input>acc</input>
            </value>
        </view>

This section supposed to display 4 waves of different color, right? When I load this experiment to my phone, all four waveforms of orange (see photo attached). Why is that?

The complete phyphox file is also included for reference.

John


Attached Files Thumbnail(s)
   

.phyphox   Acceleration with g.phyphox (Size: 36.57 KB / Downloads: 127)
Reply


Messages In This Thread
RE: How to plot two channels or more on the same graph? - by John - 02-05-2023, 06:45 AM

Forum Jump: