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.

Multilines in graph view-element
#1
Hi,
Nice improvement in analysis editor. I'm having a problem with the graph view-element, anyone can help me?
I'm trying to set two data in the same graph with two different colors. Using the online editor there is no option to set the colors to lines independently.  So, I downloaded the phyphox to my computer and manually edited the file as showed in the wiki page:
Code:
<graph label="Acceleration" labelX="t" unitX="s" labelY="a" unitY="m/s²" partialUpdate="true"> <input axis="x" color="green">acc_time</input> <input axis="y">accX</input> <input axis="x" color="blue">acc_time</input> <input axis="y">accY</input> <input axis="x" color="yellow">acc_time</input> <input axis="y">accZ</input> <input axis="x" color="white">acc_time</input> <input axis="y">acc</input> </graph>

But when I try to open the file in phyphox I get the error: "Invalid UUID: 572"
which corresponds to the bluetooth device UUID.
Any thoughts?
Reply
#2
Does the same file work without the modifications directly from the editor? The error message does not look like it relates to the graph block. Could you post the entire file?
Reply
#3
This file I upload my version to the editor and If I use the QR-code from editors it works (without colors) but the downloaded file does not work.
Reply
#4
Could you show the file? (Not sure if I misunderstood, but I am not seeing an attachment?)
Reply
#5
My bad.


Attached Files
.phyphox   Atto Dados(1).phyphox (Size: 21.5 KB / Downloads: 540)
Reply
#6
Ah, now I see the problem.

The uuid does not refer to any Bluetooth UUID but to one of the UUIDs assigned to the nodes by the editor (UUID is a general term that is not only used in Bluetooth). To allow free positioning of the modules, the editor adds some metadata (editor:uuid="155" editor:posx="313" editor:posy="365" etc.) to the phyphox-file, so everything is in the same place when you load the phyphox file back into the editor.

Phyphox should ignore anything with "editor:" in front, but it seems like we were a bit lazy and the Bluetooth module tries to interpret the "editor:uuid" like the advertised uuid and complains that the format does not match. This does not happen when you load the experiment via QR code, because the editor does not add the metadata to the QR code to save some space (you cannot load the QR-code back into the editor anyway).

This means that a) I need to fix this in the next update and b) that you can simply remove the editor:uuid="101" in line 12 and it should be loaded without an error. All the other editor:uuid entries may stay as they are properly ignored by phyphox.
Reply
#7
Solved. Thank you!
Another idea to improve the editor is to use different colors to the block header. For example, green for input and blue/red for output. This will help to easily identify input and output for larger projects.
Reply


Forum Jump: