How can I capture an analog value into array .

Hi,

I want to know how i can snapshot ( e.g.,5 values from same analog input ) the analog value to a array.

  

  • In reply to Matt Stoner:

    And I always forget this, but note the parameter name within single quotes in Matt's post does not include the X and Y values. '^/ARRAY_PARAM' is the path.

    This allows you to use variables for the [x] and [y] designators. So you can programmatically reference the Array cells, like in a DO While loop, where you could sum the cells in the array and divide by the number of values to calculate an average.

    i :=1;
    SUM :=0;

    WHILE( i <= 5) DO
    SUM := SUM + '^/ARRAY_PARAM'[i][1];
    i := i + 1;
    END_WHILE;

    Average := SUM /i ;

    Andre Dicaire