Announcement

Collapse
No announcement yet.

Graph question?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Graph question?

    How would I slow a graph down? I would like to see a point added only every 6 minutes, giving me a 24 hr history.

    Thanks,
    GadgetBandit

    <!-- Begin Graph Instances -->
    <graph id="My Test Graph">
    <line line_colour="255,70,210,70" line_width="3"></line>
    <display size="240,99" location="38,365" page="0" z_order="0"></display>
    <options value_minimum="0" value_maximum="120" time_maximum="300" axis="horizontal"></options>
    <monitor timer="GUI Timer" target_type="variable" target_ID="temp 1"></monitor>
    </graph>


  • #2
    change the max time setting
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

    Comment


    • #3
      Cool. Thanks. I was way too timid in changing the value to notice any change.

      GadgetBandit

      Comment


      • #4
        There are 4 lines in the graph. Setting the max_time at 5000 does slow it, some. I'd like more, but where does the amount of data become a problem?. Since time is still relative, could a counter be used to sample the variable only after a certain number of cycles, then set max_time could be set back to a low number? I love to have a 24 hr curve.

        Thanks,
        GadgetBandit

        Comment


        • #5
          Originally posted by GadgetBandit View Post
          There are 4 lines in the graph. Setting the max_time at 5000 does slow it, some. I'd like more, but where does the amount of data become a problem?. Since time is still relative, could a counter be used to sample the variable only after a certain number of cycles, then set max_time could be set back to a low number? I love to have a 24 hr curve.

          Thanks,
          GadgetBandit
          It is pretty small memory footprint for each data point but I have never tried anything that big, you can always just try and see what happens
          Fusion Brain Version 6 Released!
          1.9in x 2.9in -- 47mm x 73mm
          30 Digital Outputs -- Directly drive a relay
          15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
          Buy now in the MP3Car.com Store

          Comment


          • #6
            I set max time at 6000 and MDX dies with the error "Index out side bounds of array". Is there any way you can made graphing a function, so we can trigger adding a point, say using a counter?

            GadgetBandit

            Comment


            • #7
              Could a graph instance monitor something other than a timer? A variable set by "when", maybe? I could add a point an hour! Anything close?

              Thanks,
              GadgetBandit

              Comment

              Working...
              X