View unanswered posts | View active topics It is currently Tue Dec 12, 2017 5:45 am



Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Introducing gufi's latest creation! 
Author Message
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14909
Location: Home sweet home!
This log viewer is already usable for viewing data in a fairly nice smooth way. The more users it gets, the more testing it will get, and the more feedback gufi will get, and the better it will become, so come on, use it! :-)

Quote: "(01:17:44) gufi: imo more fun when i have users that find problems"

So let's help make it fun for the guy! :-)

Screeny:

Image

Source:

https://github.com/gufi/OpenLogViewer

Enjoy! :-)

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sat Feb 19, 2011 9:31 pm
Profile WWW
LQFP112 - Up with the play

Joined: Sun Feb 03, 2008 9:30 pm
Posts: 120
Location: Chicago, USA
It is definitely a good start! When I compile mine, I noted a couple 'issues'. 1) I can compile it using ant, but it will not run. If I load maven (apt-get install maven2) I can compile and run it. My select dialog does not look quite like that, though.

Ok, I just figured it out. For the newbies (me) on the list, you need to have a few things installed:

Code:
sudo apt-get install ant sun-java6-jdk sun-java6-jre


I did not have JDK installed.

If I am allowed to, I am going to ask for enhancements...

I would like:
a legend for the traces,
selection dialog box to hide or be smaller
A Y axis and an X axis
Easily change trace colors

I am sure there is more to come, but that is my initial blush.


Wed Jun 08, 2011 11:48 pm
Profile
LQFP112 - Up with the play

Joined: Sun Feb 03, 2008 9:30 pm
Posts: 120
Location: Chicago, USA
Ok, I have tried it again. My diagnosis above was on a 32 bit Ubuntu running in a VM under win7. I rebooted to native Ubuntu 11.04 x64 and am trying to get it to run here as well... It compiles just fine and I get a jar file. My error when I run it is:
Code:
~/Applications/OLV/target$ java -jar OpenLogViewer-0.0.1-SNAPSHOT.jar
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
   at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
   at java.awt.Window.<init>(Window.java:476)
   at java.awt.Frame.<init>(Frame.java:419)
   at java.awt.Frame.<init>(Frame.java:384)
   at javax.swing.JFrame.<init>(JFrame.java:174)
   at org.diyefi.openlogviewer.OpenLogViewerApp.<init>(OpenLogViewerApp.java:67)
   at org.diyefi.openlogviewer.OpenLogViewerApp$4.run(OpenLogViewerApp.java:211)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
   at java.awt.EventQueue.access$000(EventQueue.java:96)
   at java.awt.EventQueue$1.run(EventQueue.java:608)
   at java.awt.EventQueue$1.run(EventQueue.java:606)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)


any ideas?


Thu Jun 09, 2011 12:49 am
Profile
LQFP112 - Up with the play

Joined: Sun Feb 03, 2008 9:30 pm
Posts: 120
Location: Chicago, USA
responding to my own post... It was a conflicting java jdk. I had both the sun version and open jdk installed. It now runs just fine on 64 bit as well as 32 bit.


Thu Jun 09, 2011 12:58 am
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14909
Location: Home sweet home!
gearhead wrote:
It is definitely a good start!

Absolutely! I've been using it for 3 months or so now, exclusively. MLV is banned from all of my machines and categorised as untrusted code. (like spyware/malware IMO)

Quote:
My select dialog does not look quite like that, though.

No, that's pretty old. He's done some new UI things that I've not even tried in the last day or so, too. If they don't work well for you, report the issues and try the commit at the top of my repo (you can point your existing git repo at mine with some config changes).

Quote:
Ok, I just figured it out. For the newbies (me) on the list, you need to have a few things installed:
Code:
sudo apt-get install ant sun-java6-jdk sun-java6-jre

Yep, good point. For developing it, and running from source, JDK is required, and sun jdk is *always* preferable.

Quote:
If I am allowed to, I am going to ask for enhancements...

Of course!!!! The more the merrier, and the more detailed the better, too.

Quote:
a legend for the traces,
Can you describe this better, please?

Quote:
selection dialog box to hide or be smaller
I think you can close it and reopen from a menu. I think you can resize it too, but I could be wrong. That whole aspect needs a lot of work.

Quote:
A Y axis and an X axis
What do you mean?

Quote:
Easily change trace colors
You can, it's just not obvious how, and there is no user manual. Right clicking or double clicking a value allows you to change scale and colour. It might be control clicking? I forget, but it is certainly doable.

There are performance issues too, if you use play. I just click through logs, though, so it doesn't affect me, really.

I hope that helps!

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Thu Jun 09, 2011 10:00 am
Profile WWW
1N4001 - Signed up
User avatar

Joined: Tue Jun 10, 2008 5:17 pm
Posts: 1607
Perhaps a showmedo tutorial or something equivalent would help with documenting the GUI control.


Thu Jun 09, 2011 10:11 am
Profile
LQFP112 - Up with the play

Joined: Sun Feb 03, 2008 9:30 pm
Posts: 120
Location: Chicago, USA
legend ( some way in the graph to identify which trace is what variable )
X and Y axis ( numbers on the vertical and horizontal axis)

Gearhead


Attachments:
OLV.png
OLV.png [ 563.07 KiB | Viewed 3472 times ]
Thu Jun 09, 2011 10:25 am
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14909
Location: Home sweet home!
A video tutorial might be a tad of overkill at this stage, and prone to becoming VERY quickly irrelevant any time Gufi or I do work on it. Once it matures, though, it's a fine idea!

Let's add another "please": better automatic colours! This would be easy to fix, I know how it's currently done...

gearhead wrote:
legend ( some way in the graph to identify which trace is what variable )

OK, I totally agree. For now, the order of the numbers in the list when you mouse over the graph (I assume that you saw that?) is that in which you added them, NOT that in which they are in the adding view. So, I recommend:

A) change colours first
B) add them sequentially such that you know the order

This is the work around I've been using... but yes, it needs to be much better.

I also suggested having numbers in one side of the other all the time, as well as, or instead of, the mouse over numbers.

BTW, given that you're probably viewing the same numbers all the time, on a real car, unlike me, you might find the "saving colours and ranges" feature useful. That needs some refinement too, like ability to only define the colour, not the range, and have profiles to load, rather than just the same set always load, etc.

Quote:
X and Y axis ( numbers on the vertical and horizontal axis)

Unless you mean percent, you'd need a set of these per value. I'd like to see min/max displayed all the time, I think the eye can do the rest, more discussion here?

Now you've got me thinking about this, another thing that is missing is marks. IE, in ms logs, if you slam the space bar, you get a reference point in the log file, often indicated by a vertical line. FreeEMS may have a richer set of such marks in the form of error packets that the device sends out. Additionally, it would be great to enter marks INTO the log file from the UI with comments etc to document what you saw "at this point, i floored it, and the wheels broke loose briefly" or whatever, and save it, so when you next open it, months later, you remember what went down.

To that end, import/export functionality so you can suck in a file in X, Y or Z format and pump it out in X, Y or Z format, in any combo. Or perhaps just IN in all directions and out to some internal verbose structured format.

PS, it's great to be discussing this with another user! :-) Hooray for their being two of us! I'll try to make that number much larger soon. Sean uses it too, a little, but rarely posts, even in his own threads.

Keep the feedback and suggestions coming, anything, minor, major, whatever, if it's documented, someone can fix it, if not, it might get forgotten or get left un-noticed.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Thu Jun 09, 2011 2:16 pm
Profile WWW
LQFP112 - Up with the play

Joined: Sun Feb 03, 2008 9:30 pm
Posts: 120
Location: Chicago, USA
Well, it sounds like we are on the same page. We need general usability. I agree that a scale may not be appropriate, it is just difficult to explain to someone else "Look at the off-yellow trace and see where it goes high. That is where I slid off the road and into the ditch." Much better to call out a time value (on the x axis) and then be able to have all traces somehow labeled so that it can be 'made sense of'. but the max/min for each trace may be useful. I think about Octave and its plotting ability and would like this to be a bit more point and click. How about the ability to drag a box on a portion of the graph to zoom in on it? The resize would take the time start and stop of the window you dragged and show all traces between those time stamps as well as some sort of label for each trace. Maybe the first 5 characters of the channel name? I dunno. Just throwing out ideas.

Did yo notice that my 'channel selection box' is larger and looks significantly different than yours in the graphic you posted? Why is that. I did a git clone and built it. Should I grab a fork (or knife?) of the code and get the different selection pane? It looks like there would be a good place to change the scale of the trace and the color.

The reason for my interest is that MLV now waits to count to 350 before you can look at a log unless it is registered. So, I need a log viewer from time to time and this looks like it will fit the bill.

Gearhead


Thu Jun 09, 2011 2:47 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14909
Location: Home sweet home!
I just remembered that for FreeEMS binary logging use, we need a dynamic way of constructing the log data as the logs are easily source code customisable now and the scaling and so on is always wrong if the contents of the log don't match the conventions used to process it.

gearhead wrote:
Well, it sounds like we are on the same page. We need general usability. I agree that a scale may not be appropriate, it is just difficult to explain to someone else "Look at the off-yellow trace and see where it goes high. That is where I slid off the road and into the ditch." Much better to call out a time value (on the x axis) and then be able to have all traces somehow labeled so that it can be 'made sense of'. but the max/min for each trace may be useful. I think about Octave and its plotting ability and would like this to be a bit more point and click. How about the ability to drag a box on a portion of the graph to zoom in on it? The resize would take the time start and stop of the window you dragged and show all traces between those time stamps as well as some sort of label for each trace. Maybe the first 5 characters of the channel name? I dunno. Just throwing out ideas.

Right, the time/sample number scale across the bottom would be easy and a fantastic idea, for sure. Link or screen shot of "octave" ?

The select for zoom idea is a good one, esp if it loaded into a new window that popped up! Which reminds me, we need the ability to zoom out as well as in, for real, on-car, logs of significant length, this is essential. The app I mention in the next paragraph does zooming very well, all horizontal, though, but that makes sense for its purpose.

For some further ideas, fire up the Saleae Logic program and play with it. It's a bit different being a binary logic analyser, but the way it works is mostly very nice. Available for win/lin/mac. If you need some real life files for it, I have plenty.

Quote:
Did yo notice that my 'channel selection box' is larger and looks significantly different than yours in the graphic you posted? Why is that. I did a git clone and built it. Should I grab a fork (or knife?) of the code and get the different selection pane? It looks like there would be a good place to change the scale of the trace and the color.

Read above, I not only noticed, I explained why, and I told you how to change the colour and scale. The post wasn't ttthhhhhhhhaaaaaaaaattttttttt long :-p

Quote:
The reason for my interest is that MLV now waits to count to 350 before you can look at a log unless it is registered. So, I need a log viewer from time to time and this looks like it will fit the bill.

WOW. Welcome aboard! :-)

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Thu Jun 09, 2011 5:16 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.