User Discussion Forum

This forum is the primary communication channel for the wider LiveGraph user community.
Use this forum for asking questions about:

  • using the LiveGraph plotter application,
  • using LiveGraph and related APIs in your own software,
  • for all other communication within the LiveGraph user community.
This static mirror may not contain the latest posts!
Click on the title of any post on this page to get to the corresponding post on the actual forum.

The purpose of this forum mirror is to increase the indexing coverage of our forums by the major search engines, and thus to help our users finding solutions to their questions quicker and easier. For the most recent posts, extended browsing, posting, advanced search and other interactive capabilities, please visit the actual user community forum hosted on SourceForge.

Forum mirror

By: Nobody/Anonymous (nobody) - 2008-08-05 21:14
I have a Weather Station that transfers weather data to a computer. 
The temperatures are logged in Celsius in a .dat file. Live Graph does a nice job of updating real time for me - but I would like the data converted to fahrenheit. Is there a way to do this? 

    By: Nobody/Anonymous (nobody) - 2008-09-09 19:41
    I recon you have 2 options: 
    1) [the better one] Call up your government and tell them that your country is the only place to use the weird and outdated Fahrenheit scale and that you demand to switch to what everyone else is using because it makes you difficulties when working with your weather station and because it is not really cool to use Fahrenheit just for the sake of being different - no one will like you more because of this! 
    2) [use only if your govenrment is ignorant to option 1 (to be expected)] The conversion is [°F] = [°C] × 9⁄5 + 32. You cannot set this up directly in LiveGraph, but you can do the harder part of it. In the data series settings set to scale by a constant factor of 1.8 (=9/5). Then you will see a display of the temperature in Fahrenheit, only 32 degrees too cold. I would not know how to add the 32° automatically. 

    By: LiveGraph team - 2008-09-09 20:36
    Although I tend to agree with the political opinion of the "anonymous" user (see post, I am not sure whether this is the best place to discuss it. In any case, I agree that option (2) is the quickest way to solve the problem. 

By: Nobody/Anonymous (nobody) - 2008-07-08 16:50
is it possible to use multi-scale graphics? Not every data that i plot is on the same scale, i would like to be able to visualise and compare all of it. 
an alternative would be to have multi-plot, I have been trying to do implement that, but the result that i get is that all canvas(JPanel) have the same plot. 
Could you help me with this? 
best wishes 
Sérgio Leal

    By: Nobody/Anonymous (nobody) - 2008-07-09 01:09
    What are "multi-scale graphics"? 
    Check out "transformation" in the data series legend window. Is that what you want?

    By: Nobody/Anonymous (nobody) - 2008-07-09 07:56
    Multi-scale graphics are those who in the same graphic have more than one scale in the y or x axis. 
    In my case i need to plot in the same graphic some values that vary between 128 and 110000 and others that vary between 0 and 1. I need to compare and determine what happens to the one that varies between 0and1 when the other is over a certain threshold... all of this real-time... :( 
    thank you for your help. 
    Sergio Leal

    By: Nobody/Anonymous (nobody) - 2008-07-09 08:10
    Thanks for your suggestion, it helps a lot in the visualisation :) it´s not 100% what i need, but at least i don´t have to change any code and can still visualise :)  
    Thanks a lot :)  
    I have done a great job with the LiveGraph.  
    Sérgio Leal

    By: Nobody/Anonymous (nobody) - 2008-07-16 17:25
    Look at the "data series settings" window. 
    They describe it on and it seems to be exactly what you need. 
    Look at the column called "transformation". When you select "Transformed into [1...0]" the software will automatically find the minimum and the maximum value of the data series and then use those to linearly scale the series into the unit interval automatically. Do that for each series you want to compare and you have tham all on the same scale in no time. You can also play around with log transforms if linear is not what you want. 
    As far as I understand what they write on the software's home page, what you are doing is the primary purpose of the software, so it should be easy to achieve.

By: Nobody/Anonymous (nobody) - 2008-06-29 16:05
Hello, is it possible to read lines of data from the Windows Clipboard as it is being up updated, instead of a CSV file? 

    By: Nobody/Anonymous (nobody) - 2008-06-30 01:30
    I have modified the org.LiveGraph.dataCache.UpdateInvoker and .DataStreamToCacheReader classes to change LiveGraph's data reading behaviour, but I am not sure what exactly you need to do in order to read from the clipboard. 
    What kind of an application writes its data to the clipboard anyway? 

    By: LiveGraph team - 2008-07-04 05:01
    That is right, those two classes are the ones to look at when you want to add this functionality. 

    By: Nobody/Anonymous (nobody) - 2008-07-07 01:13
    Hi, thanks for the reply. A high school solar car team is getting serial information about their car and analyzing it with livegraph, they were using hyperterminal to capture the info to a file and then using livegraph to analize it, but livegraph is having somme problems when non numeric characters are in there, for example when tranmitting the volts of the battery it says 48.1v.  
    They've asked me to write a little program to strip out the letters so livegraph works better, i'm not much of a programmer and am using visual basic for the little program that reads the serial port and thought just posting the info to the clipboard every second might be easiest. I'm unsure if livegraph will be able to read a vb opened file or not. Any thoughts would be appreciated, thanks. 

      By: Nobody/Anonymous (nobody) - 2008-07-07 05:39
      I had a similar problem - I had to apply a function that is not supported by LiveGraph to data from a program. The program was writing data to file A and I was reading it, applying the function and writing it to a file B: 
      [program] => [file A] => [my tool] => [file B] => [LiveGraph] 
      I was using C++ and closing B after each write. There was no problem with this method, but as I do not know too much about Java nor about VB, I do not know how this approach will work in your case.

    By: Nobody/Anonymous (nobody) - 2008-07-07 19:29
    Yeah, i'm trying that too, hopefully it will work well. Thanks.

    By: Nobody/Anonymous (nobody) - 2008-07-07 21:12
    Well, I'm having it close the file after writing, but once livegraph opens the file it is preventing my program from opening it back up again. I'm using NS Basic, an offshoot of VB, that is probably the cause, but regardless realtime monitoring isn't working. If there was a way to just grab data from the clipboard it would be easy. 

      By: LiveGraph team - 2008-07-09 01:02
      As per default LiveGraph cannot read data from the clipboard, it is a justified, but unusual use case. 
      The question is, what is the frequency of data updates you are after. If your frequency is not higher that one update per several seconds, just select "Do not cache data" in the data file settings window of LiveGraph. This will cause LiveGraph to close the data file after each update and re-open and re-read it from scratch at the next update. If you also close and re-open the file for each write operation in your Basic program, there should be no problem. If your data file is not large, this will work fine with a relatively high update frequency too - just try it out. 
      If your update frequency is very high or your data file very large, this may not be a suitable option. In that case you will need to do some Java programming. As of the recently released version 2.X you can use the "memory stream mode" to pass data without writing it to file. We have successfully tested this even within applets that run with minimal permissions. Unfortunately documentation and examples is still work in progress, but things should be clear if you look at the source code (if you know Java). If you want the clipboard, you can "hack" org.LiveGraph.dataCache.DataStreamToCacheReader (ver 2.X) to read data from the clipboard instead of the input stream if you know Java well enough in order to do that. 
      Hope this helps!