Am Freitag, 25. September 2015 15:00:01 UTC+2 schrieb hllpc:
>
> You mean, FreeBasic? :D:D
>

Some languages are beginners friendly, other are not. You wasted a lot of 
time before you dropped cross compiling. You'll find further optimization 
potential in replacing PuTTy by an SSH client with X-server emulation, 
which makes it possible to get grafics output (ie. from example Oszi) from 
BBB on your PC screen. Or replacing wodniws by LINUX on your PC will skip 
all this installation issues, you can focus on your custom targets.

Anyway, it's up to you to manage you progress speed.
 

> Thank's for the clarification, the 'funny' thing was that in my pc I 
> dawnloaded the new version of libpruio for reference, but in the bbb I 
> installed the old one.
> Can I ask something else about a function of the library?  I've troubles 
> understand how  pruio_config(io, Samp, Mask,Tmr, Mds) work in rb mode, in 
> particular the mask parameter.
> Let's say that I want to sample 2 channel, AIN-1 and AIN-2 (Mask =0b110), 
> Samp is the buffer size in term of sampling set so 2(channel)x(sample per 
> channel that I want to  'collect' in the buffer, say 50), Tmr =1e6 ns and 
> Mds= 4.
>
> The Value array will be something like: 
> Value[0] | 1. sample AIN-1 
> Value[1] | 1. sample AIN-2 
> Value[2] | 2. sample AIN-1 
> Value[3] | 2. sample AIN-2 
>              ...
> Value[98] | 50. sample AIN-1 
> Value[99] | 50. sample AIN-2 
>
> What's the difference between this and Single mode? or which I have:
>
> Value[1] |  sample AIN-1 
> Value[2] |  sample AIN-2 
>
> In this case Samp=1 as the comments in pruio.bas says or 50 (samples per 
> channel that I want to  'collect' in the buffer) and then I'll have 25 
> samples per channel? 
>
>
>
>
>
>
>
>
>
>
>
The documentation is your friend.  
   
   - Mask is not a channel mask, it's a step mask.
   - Bit-0 enables the charge step
   - Bit-1 enables step 1, ..., bit-16 enables step 16
   - Setting bit 1 in mask does not mean measuring AIN-1. It means enabling 
   step 1, which is measuring AIN-0 by default in libpruio.
   - You can either use default configuration and mask step 2 (AIN-1) and 
   step 3 (AIN-2) as 
   Mask = 1 << 3 | 1 << 2
   or define new steps (range 9 to 16) or override default steps (range 1 
   to 8) with your custom configuration by calling pruio_adc_setStep() and 
   then mask those customized steps with pruio_config().

In single mode you have one value per active step. This value gets updated 
continously. All IO (GPIO, ADC, CAP, PWM) is controlled at the same 
priority. This means you may see some latency in the ADC samples (a few ns).


In contrast the ADC has priority in MM and RB mode. The starts of the ADC 
measurements are performed with accurate timing. No further IO (GPIO, CAP 
and PWM) in version 0.2 (and further IO with lower priority in next 
versions).


BR

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to