beaglebone web based oscilliscope

Hi Jason
Thanks for the link to the js_term. I can turn the led on and off like the 1010 demo so it is working.

I tried your 3 line code for the oscilliscope and get an error after
setInterval(b,100);
USER: undefined: b is not defined.

Is there a typo in the b function(). I am a newb in the syntax here :wink:

Thanks
Stan

Hi Jason
Thanks for the link to the js_term. I can turn the led on and off like the
1010 demo so it is working.

I tried your 3 line code for the oscilliscope and get an error after
setInterval(b,100);
USER: undefined: b is not defined.

Is there a typo in the b function(). I am a newb in the syntax here :wink:

Sorry to send untested code... was trying to do it from memory. :frowning:

Try removing the 'var' word from each line, ie.:
    a = function(x) { graphDraw(x.value); };
    b = function() { analogRead(bone.P9_39, a); }
    setInterval(b, 100);