-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save data and Y axis #44
Comments
Hi,
Instrumentino by default already saves all of your acquired data in csv
files.
Look for the "log" folder. It should be filled with csv files and text
files, where your acquired data and operations are saved.
I think this is mentioned in the Instrumentino articles, which you can find
in the documents folder
<https://github.com/yoelk/instrumentino/tree/master/documents>
Regarding your second question, I've made the Y axis to show percentages so
multiple signals may be shown on a single axis system (rather than having
multiple Y-axes, which would take up a lot of screen space and might lead
to confusion).
But if you only have one signal, and you'd like to change the Y-axis units,
here's how to do it (I think):
- Open the file log_graph.py
- on line 65 you should find the setting of the Y-axis range:
self.axes.set_ybound(0,100)
So replace 0 and 100 to your own range
- On line 182 you'll find the method that translates real values to values
to be shown on the graph:
def NormalizePositiveValue(self, value, yRange):
# unipolar range [X, Y] or [-X, -Y]
relevantEdge = yRange[0] if yRange[0] >= 0 else yRange[1]
return abs(value - relevantEdge) / abs(yRange[1] - yRange[0]) * 100
So Instead of the calculation in this method, you'd want to simply do:
def NormalizePositiveValue(self, value, yRange):
return value
I believe this should do the trick. Good luck!
Joel
…On Thu, Jun 1, 2017 at 10:44 AM, pescadoranton ***@***.***> wrote:
Hi!
I am using instrumentino for a university project and it works well, but I
would like to save data from arduino on a csv file.
I am trying to modify instrumentino but I am starting with python and it
dosen't work, someone could help me?
On the other hand, is it possible to change the axis units of the graph? I
would like use absolute values, not %.
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#44>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGTaGwmNfIWcqoJ4bG9JJlvrGBauD-gaks5r_nnegaJpZM4NsqsY>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I am using instrumentino for a university project and it works well, but I would like to save data from arduino on a csv file.
I am trying to modify instrumentino but I am starting with python and it dosen't work, someone could help me?
On the other hand, is it possible to change the axis units of the graph? I would like use absolute values, not %.
Thanks!
The text was updated successfully, but these errors were encountered: