Rev 57 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 57 | Rev 58 | ||
---|---|---|---|
Line 324... | Line 324... | ||
324 | max = 100 ; |
324 | max = 100 ; |
325 | C_I(udev, 1); |
325 | C_I(udev, 1); |
326 | for ( ch=0 ; ch<16 ; ch ++ ) { |
326 | for ( ch=0 ; ch<16 ; ch ++ ) { |
327 | Delay(0.01); |
327 | Delay(0.01); |
328 | C_read ( udev, NSCA, ch, 0, &val, &Q,&X); |
328 | C_read ( udev, NSCA, ch, 0, &val, &Q,&X); |
329 | C_read ( udev, NSCA, ch, 0, &val, &Q,&X); |
329 | C_read ( udev, NSCA, ch, 0, &val, &Q,&X); |
- | 330 | // CC USB ne precita v redu CAEN C257 scalerja, |
|
- | 331 | // kanali so zamaknjeni za 1, ce je klic samo en |
|
- | 332 | // vrednost kanala 0 se pristeje h kanalom 8..16, zato ga ne uporabljamo. |
|
- | 333 | // vajo iyvedemo le s kanali 1..15. |
|
330 | data[ch]=val; |
334 | data[ch]=val; |
331 | 335 | ||
332 | if (data[ch] > 0) data[ch]--; |
336 | if (data[ch] > 0) data[ch]--; |
333 | // if (data[ch] && 0x80000000) { |
337 | // if (data[ch] && 0x80000000) { |
334 | // data[ch] &= 0x00FFFFFF; |
338 | // data[ch] &= 0x00FFFFFF; |