Hi Alejandro,

The problem is that the code that I posted is working for the MDA300, but
not for MDA320. Probably there is another way to get data from MDA320,
whatever channel it is.  The differential channel (11 for instance) is good
for my application purposes.
Do you have any idea on how it works?

david

On 11/30/06, Alejandro Rodríguez Amigo <[EMAIL PROTECTED]> wrote:

Hello,

What problem do you have?
You have to count on that in MDA320 there are 12 analog channels, but
the 4 last ones (channels 8 to 11) are differential. So channel 11 is
the difference between channel 7 and channel 6.

I hope I have helped you.

Regards,
Alejandro Rodríguez Amigo.

David Tacconi escribió:
> Hello,
>
> I am trying to read some information from channel 11 of MDA300 and
> MDA320. I used the code provided by Crossbow for MDA300
>
> record[0] = call
> Sample.getSample(11,ANALOG,MDA_SAMPLING_FREQ,SAMPLER_DEFAULT|
> EXCITATION_33);
>
> and then
>
> switch (channelType) {
>             case ANALOG:
>               switch (channel) {
>                 case 11:
>                     dataMDA[0]=data & 0xff;
>                     dataMDA[1]=(data >> 8) & 0xff;
>                     ....
>                 break;
> ...
>
> and it is properly working, but if I use the same code for MDA320 it
> does not work.
> does somebody knows how to solve the problem? It looks like it does
> not have channel 11: is this the problem?
>
> Thanks in advance
> David
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
_______________________________________
David Tacconi
Telecommunication and Software Engineer
+393478683464
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to