Dirrection please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DaveNZ
    New Member
    • Aug 2006
    • 5

    #1

    Dirrection please

    Hi all, Just came across an old data logger project I was playing with a while ago. It records G forces and lap times and can be down loaded with Hyperterminal. Anyone out there able to help with some programming to display the data or point me to someone that can??

    Thanks
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Dave,

    since the code that you have able to record G-Force what is the problem in capturing the points or data? please be precise my fren.. take care..

    Comment

    • DaveNZ
      New Member
      • Aug 2006
      • 5

      #3
      Thanks
      The data logger records lap times and G force loads, the data is downloaded via com port as a txt:
      lap
      1,10.05
      2,6.08 (seconds)
      3,7.08
      data
      1,1954,2028,111 ,0
      2,1920,2020,96, 0 (1920, 2020 x & y G force)
      3,1972,2011,89, 0
      4,1974,2012,80, 0
      5,1974,2007,76, 0
      6,1977,2006,73, 0
      7,1985,1998,71, 0
      8,1991,1995,70, 0
      9,1979,1992,69, 0
      10,1991,1983,69 ,0

      Would like to display data in graph form.

      Comment

      • DaveNZ
        New Member
        • Aug 2006
        • 5

        #4
        Sashi
        The first set of data is lap time, lap no. then time in seconds. I added the word second. The second data set is the acceleration data, sample no. then the data from the accleromiter(?) . The data is raw, we need to establish a 1 G load we do this by turning the logger on its side (90 deg from horizontal) we do this on both the X and Y axis. This 1 G value is used to work the raw data to produce a true acceleration rate. Dont worry about the other two colums. All I want is a simple program to download and display the data in a meaningful manner.

        Comment

        • sashi
          Recognized Expert Top Contributor
          • Jun 2006
          • 1749

          #5
          Hi Dave,

          i remember seeing some sample vb source code that will read contents of plain .txt file.. check out the link attached below.. am not sure as to which degree it will help, but atleast it helps you to get started with.. :) good luck and take care my fren..

          Comment

          • sashi
            Recognized Expert Top Contributor
            • Jun 2006
            • 1749

            #6
            Hi Dave,

            check out the below attached link.. take care my fren..

            Comment

            • BSOB
              New Member
              • Jul 2006
              • 77

              #7
              Aw, this seems familiar. I do a lot of work with graphical representations of raw data. (as hobby, mostly). An application to do what you ask would be very small and easy to make. The vectors for G could be rendered into an intuitive visual graphic in 10 lines of code or less. You said you want to display it in graph form. Reading the data from file and loading it to memory is especially easy since you know EXACTLY what format it will be in. If you give me a little more information, I'd be happy to put a few minutes into this.

              Comment

              • DaveNZ
                New Member
                • Aug 2006
                • 5

                #8
                Thanks, I had the feeling that it would be easy for someone who knows.... As you gather I use Hyperterminal to download the data (com8 as serial to USB converter). I just did an excel sheet and found that in the first data colum works out that a 1 "G" value equals 535 and the second data colum (the other dirrectional axis) has a 1 "G" value of 845. So this means that the logger when stationary outputs around 2200 then jumps to just over 2700 thus we get 535 when a force of 1 "G" is applied. (Logger turned 90 deg to stationary.

                Make sence........

                If you are keen to have a look I would be most greatful. Maybe easier to email you.

                Many thanks Dave

                Comment

                • BSOB
                  New Member
                  • Jul 2006
                  • 77

                  #9
                  I would love to take on the task.
                  Heres what I need from you:
                  An example of the output file (with no added comments in its original plain text form, just so i am cirtain exactly what i am working with)
                  An example of what you want the finished product to look like (use excel, just set up the columns the way you want them to look with the data from the text file, if you dont want this, ill make something intuitive looking)
                  A description of any visuals you might want rendered (dA, A, V, X, all in vector form), velocity and position i can achieve via integrals of acceleration.
                  And, do you want the finished product to be an excel file or a plain form with a spreadsheet on it (form is my preferance).
                  and it would make my life easier if the text file always had the same path. if it does, what is that path, if it doesnt, then let me know if there is a folder it is more likely to be found in.
                  I just did an excel sheet and found that in the first data colum works out that a 1 "G" value equals 535 and the second data colum (the other dirrectional axis) has a 1 "G" value of 845. So this means that the logger when stationary outputs around 2200 then jumps to just over 2700 thus we get 535 when a force of 1 "G" is applied. (Logger turned 90 deg to stationary.
                  I get that. is 2200 the stationary output in both axii?

                  email specs to alexme1@yahoo.c om

                  Comment

                  • DaveNZ
                    New Member
                    • Aug 2006
                    • 5

                    #10
                    Alex, sent you an email with some info.

                    Regards Dave

                    Comment

                    Working...