Data processing in array


Results 1 to 13 of 13

Threaded View

  1. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: Data processing in array

    My simple thinking lead me to this version ditching the big array:

    Code:
        index=0 
    pulsetrain:                   'now collect 66 pulses ~800/400 ìsec
        pulsin portb.0,1,temp1
        if temp1<55 then main
        if temp1>170 then main
        if temp1<130 then
            code.0[index]=1
        else
            code.0[index]=0
        endif
        index=index+1
        if index<66 then pulsetrain
    And then came your masterpiece of coding with TMR1...! Amazing!

    It just needs to be reversed (the code array) I guess. No big deal.

    Thanks,
    Ioannis
    Last edited by Ioannis; - 5th June 2022 at 11:37.

Similar Threads

  1. Using Processing to display data graphs
    By ScaleRobotics in forum Off Topic
    Replies: 6
    Last Post: - 26th November 2016, 05:16
  2. How to get ASCII data in array.
    By Ioannis in forum Serial
    Replies: 8
    Last Post: - 6th November 2008, 20:14
  3. Filling pdu array with gps data!
    By camolas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th October 2008, 00:54
  4. Data logger clock and array
    By PicLearner in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 25th September 2008, 04:19
  5. Array data being corrupted
    By caverman in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th March 2006, 04:22

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts