Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Big Gaz; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    4,671

    Re: Newbe: Nested For..Next loops problem

    thanks guy's

    I was going for the following

    636 was the running total of 10 samples minus the highest and lowest. That left 8 samples.

    I therefore wanted to divide 636 by to get 79.5.

    I...
  2. Replies
    6
    Views
    4,671

    Re: Newbe: Nested For..Next loops problem

    Cheers Alain,

    Anything to make the code look better and save code space :)

    Having a bit of a problem with the final maths i.e. dropping the highest and lowest readings and divide result 8.
    ...
  3. Replies
    6
    Views
    4,671

    Re: Newbe: Nested For..Next loops problem

    Sorted it!

    It was another issue lower down in the code, a missing ENDIF causing the compiler not to find the the two NEXT statements. :rolleyes:

    It was really bugging me for a while. Should...
  4. Replies
    6
    Views
    4,671

    Newbe: Nested For..Next loops problem

    Hi Guy's

    I'm having problems with MCSP and PBP reporting a for..next loop error for the code below.

    the error reported is:

    'Error Line 94: FOR without matching NEXT. (sampling.pbp)
    'Error...
  5. Thread: test

    by Big Gaz
    Replies
    1
    Views
    5,393

    test

    here is my code


    mainloop:

    for index = 1 to 3 step 1 ; read 10 values for 3 sensors

    For index2 = 1 to 10 step 1 ; Take 10...
Results 1 to 5 of 5