Hi all!!

I would like to ask a very simple question:

I'm trying to read two ADC channels (i want to get multiple readings for
each one), and, for that task, i'm using two instances of the component
"AdcReadStreamClientC()" (which provides the ReadStream interface).
When I want to read the channels, i just do something like that.

call SensorVolt.postBuffer(accelSamples, ACCEL_NSAMPLES);
call SensorVolt.read(ACCEL_PERIOD);
 call SensorInt.postBuffer(accelSamplesInt, ACCEL_NSAMPLES);
call SensorInt.read(ACCEL_PERIOD);

Each component have been configured equally, just with a different input
channel.
The purpose of this task is to calculate the power of the signal (the first
one is the voltage and the second one is the current). I'm not sure about
the correction of this implementation (actually, i'm getting some strange
reads).

Ok, the problem, is that i've just read about a different component,
specifically designed for multiple channels, named
Msp430Adc12ClientAutoRVGC().
What's the difference between using the first solution and the second one?
Should I use Msp430Adc12ClientAutoRVGC instead two AdcReadStreamClientC()?
Are the same?

Thanks all in advance:)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to