Hi,

I'm trying to use 4 pots to provide a range of values to set the temperature set point in the code featured http://www.picbasic.co.uk/forum/showthread.php?t=12712

When I use the following code I get a bad expression syntax error on the SetPoint(ADchan) = POTS(ADchan) line

Code:
    FOR ADchan = 0 to 3
        GOSUB GetADC
        POTS(ADchan) = ADvalue
        SetPoint(ADchan) = POTS(ADchan)
    NEXT ADchan
My logic seems that it gets the adc value, places that in the POTS(0), POTS(1) etc, and then should give SetPoint(0) the same value as POTS(0)

All I really need is a range between 100 and 500 for each SetPoint