#!/bin/bash 

me=`basename $0`

if [ $# -ne 3 ]; then
	echo "ERROR: Usage $me <card> <type: [CA | RT | BO]> <sample_rate>"
	exit
fi

args=("$@")
board=B${args[0]}
type=${args[1]}
sample_rate=${args[2]}
type_value=0


if [ "$type" == "RT" ]; then
	let type_value=1
fi

if [ "$type" == "CA" ]; then
	let type_value=2
fi

if [ "$type" == "BO" ]; then
	let type_value=3
fi

if [ $type_value -eq 0 ]; then
	echo "ERROR: type is out of range. Try with CA, RT or BO]"
	exit
fi

let decimation=2000/$((10*$sample_rate))

case "$sample_rate" in
200)
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-000-S 25262
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-001-S -2272
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-002-S 2326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-003-S -2348
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-004-S 2334
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-005-S -2280
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-006-S 2184
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-007-S -2040
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-008-S 1846
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-009-S -1596
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-010-S 1288
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-011-S -915
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-012-S 474
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-013-S 41
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-014-S -634
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-015-S 1311
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-016-S -2078
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-017-S 2939
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-018-S -3902
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-019-S 4972
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-020-S -6156
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-021-S 7460
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-022-S -8892
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-023-S 10459
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-024-S -12169
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-025-S 14030
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-026-S -16052
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-027-S 18243
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-028-S -20614
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-029-S 23177
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-030-S -25942
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-031-S 28923
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-032-S -32135
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-033-S 35594
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-034-S -39318
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-035-S 43326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-036-S -47643
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-037-S 52293
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-038-S -57307
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-039-S 62720
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-040-S -68572
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-041-S 74910
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-042-S -81792
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-043-S 89283
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-044-S -97466
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-045-S 106440
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-046-S -116326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-047-S 127275
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-048-S -139479
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-049-S 153183
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-050-S -168702
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-051-S 186457
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-052-S -207014
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-053-S 231155
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-054-S -259995
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-055-S 295172
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-056-S -339204
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-057-S 396154
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-058-S -473050
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-059-S 583164
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-060-S -754948
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-061-S 1062374
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-062-S -1776696
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-063-S 5339212
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-064-S 5339212
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-065-S -1776696
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-066-S 1062374
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-067-S -754948
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-068-S 583164
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-069-S -473050
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-070-S 396154
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-071-S -339204
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-072-S 295172
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-073-S -259995
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-074-S 231155
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-075-S -207014
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-076-S 186457
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-077-S -168702
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-078-S 153183
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-079-S -139479
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-080-S 127275
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-081-S -116326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-082-S 106440
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-083-S -97466
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-084-S 89283
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-085-S -81792
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-086-S 74910
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-087-S -68572
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-088-S 62720
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-089-S -57307
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-090-S 52293
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-091-S -47643
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-092-S 43326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-093-S -39318
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-094-S 35594
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-095-S -32135
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-096-S 28923
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-097-S -25942
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-098-S 23177
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-099-S -20614
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-100-S 18243
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-101-S -16052
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-102-S 14030
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-103-S -12169
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-104-S 10459
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-105-S -8892
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-106-S 7460
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-107-S -6156
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-108-S 4972
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-109-S -3902
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-110-S 2939
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-111-S -2078
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-112-S 1311
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-113-S -634
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-114-S 41
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-115-S 474
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-116-S -915
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-117-S 1288
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-118-S -1596
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-119-S 1846
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-120-S -2040
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-121-S 2184
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-122-S -2280
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-123-S 2334
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-124-S -2348
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-125-S 2326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-126-S -2272
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-127-S 25262
	;;
100)
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-000-S 215
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-001-S -2354
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-002-S -11604
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-003-S -22543
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-004-S -20171
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-005-S -830
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-006-S 13551
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-007-S 3747
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-008-S -12271
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-009-S -5071
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-010-S 13063
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-011-S 6621
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-012-S -14827
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-013-S -8667
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-014-S 17189
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-015-S 11258
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-016-S -20029
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-017-S -14418
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-018-S 23325
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-019-S 18179
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-020-S -27101
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-021-S -22588
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-022-S 31402
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-023-S 27700
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-024-S -36292
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-025-S -33584
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-026-S 41851
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-027-S 40320
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-028-S -48175
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-029-S -48004
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-030-S 55381
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-031-S 56754
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-032-S -63612
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-033-S -66712
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-034-S 73043
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-035-S 78060
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-036-S -83900
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-037-S -91031
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-038-S 96469
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-039-S 105934
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-040-S -111132
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-041-S -123189
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-042-S 128405
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-043-S 143380
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-044-S -149014
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-045-S -167352
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-046-S 174008
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-047-S 196366
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-048-S -204980
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-049-S -232391
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-050-S 244461
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-051-S 278671
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-052-S -296744
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-053-S -340947
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-054-S 369746
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-055-S 430388
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-056-S -479834
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-057-S -571955
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-058-S 667211
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-059-S 835044
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-060-S -1064005
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-061-S -1511237
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-062-S 2507167
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-063-S 7557973
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-064-S 7557973
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-065-S 2507167
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-066-S -1511237
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-067-S -1064005
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-068-S 835044
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-069-S 667211
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-070-S -571955
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-071-S -479834
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-072-S 430388
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-073-S 369746
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-074-S -340947
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-075-S -296744
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-076-S 278671
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-077-S 244461
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-078-S -232391
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-079-S -204980
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-080-S 196366
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-081-S 174008
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-082-S -167352
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-083-S -149014
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-084-S 143380
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-085-S 128405
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-086-S -123189
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-087-S -111132
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-088-S 105934
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-089-S 96469
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-090-S -91031
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-091-S -83900
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-092-S 78060
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-093-S 73043
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-094-S -66712
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-095-S -63612
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-096-S 56754
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-097-S 55381
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-098-S -48004
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-099-S -48175
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-100-S 40320
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-101-S 41851
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-102-S -33584
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-103-S -36292
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-104-S 27700
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-105-S 31402
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-106-S -22588
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-107-S -27101
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-108-S 18179
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-109-S 23325
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-110-S -14418
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-111-S -20029
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-112-S 11258
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-113-S 17189
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-114-S -8667
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-115-S -14827
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-116-S 6621
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-117-S 13063
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-118-S -5071
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-119-S -12271
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-120-S 3747
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-121-S 13551
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-122-S -830
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-123-S -20171
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-124-S -22543
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-125-S -11604
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-126-S -2354
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-127-S 215
	;;
50)
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-000-S 1042
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-001-S 3155
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-002-S 6295
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-003-S 9099
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-004-S 9190
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-005-S 4137
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-006-S -6867
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-007-S -21523
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-008-S -34297
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-009-S -38400
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-010-S -29411
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-011-S -8786
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-012-S 15134
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-013-S 30123
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-014-S 26394
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-015-S 3159
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-016-S -28758
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-017-S -50968
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-018-S -47317
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-019-S -14525
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-020-S 32996
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-021-S 68562
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-022-S 67632
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-023-S 23851
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-024-S -43292
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-025-S -95820
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-026-S -97905
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-027-S -39071
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-028-S 54462
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-029-S 129808
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-030-S 136298
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-031-S 58092
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-032-S -69719
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-033-S -174698
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-034-S -186759
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-035-S -83054
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-036-S 89723
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-037-S 233535
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-038-S 252785
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-039-S 115271
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-040-S -117185
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-041-S -312702
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-042-S -341443
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-043-S -158012
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-044-S 156142
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-045-S 423342
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-046-S 465780
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-047-S 217523
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-048-S -214845
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-049-S -589031
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-050-S -654674
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-051-S -308581
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-052-S 312596
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-053-S 869254
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-054-S 986114
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-055-S 474422
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-056-S -509640
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-057-S -1470566
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-058-S -1766445
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-059-S -913574
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-060-S 1141346
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-061-S 3923994
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-062-S 6576237
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-063-S 8191017
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-064-S 8191017
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-065-S 6576237
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-066-S 3923994
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-067-S 1141346
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-068-S -913574
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-069-S -1766445
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-070-S -1470566
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-071-S -509640
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-072-S 474422
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-073-S 986114
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-074-S 869254
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-075-S 312596
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-076-S -308581
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-077-S -654674
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-078-S -589031
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-079-S -214845
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-080-S 217523
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-081-S 465780
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-082-S 423342
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-083-S 156142
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-084-S -158012
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-085-S -341443
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-086-S -312702
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-087-S -117185
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-088-S 115271
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-089-S 252785
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-090-S 233535
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-091-S 89723
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-092-S -83054
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-093-S -186759
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-094-S -174698
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-095-S -69719
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-096-S 58092
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-097-S 136298
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-098-S 129808
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-099-S 54462
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-100-S -39071
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-101-S -97905
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-102-S -95820
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-103-S -43292
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-104-S 23851
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-105-S 67632
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-106-S 68562
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-107-S 32996
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-108-S -14525
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-109-S -47317
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-110-S -50968
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-111-S -28758
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-112-S 3159
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-113-S 26394
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-114-S 30123
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-115-S 15134
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-116-S -8786
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-117-S -29411
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-118-S -38400
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-119-S -34297
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-120-S -21523
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-121-S -6867
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-122-S 4137
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-123-S 9190
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-124-S 9099
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-125-S 6295
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-126-S 3155
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-127-S 1042
	;;
20)
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-000-S -442
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-001-S -817
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-002-S -1467
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-003-S -2326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-004-S -3353
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-005-S -4442
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-006-S -5427
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-007-S -6074
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-008-S -6097
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-009-S -5186
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-010-S -3044
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-011-S 559
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-012-S 5728
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-013-S 12390
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-014-S 20242
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-015-S 28726
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-016-S 37031
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-017-S 44132
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-018-S 48864
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-019-S 50048
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-020-S 46632
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-021-S 37864
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-022-S 23461
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-023-S 3749
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-024-S -20235
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-025-S -46715
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-026-S -73241
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-027-S -96845
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-028-S -114293
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-029-S -122430
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-030-S -118565
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-031-S -100885
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-032-S -68829
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-033-S -23388
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-034-S 32738
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-035-S 95146
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-036-S 157946
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-037-S 214178
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-038-S 256423
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-039-S 277560
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-040-S 271611
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-041-S 234589
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-042-S 165255
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-043-S 65692
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-044-S -58393
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-045-S -197690
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-046-S -339690
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-047-S -469445
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-048-S -570669
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-049-S -627078
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-050-S -623882
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-051-S -549278
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-052-S -395809
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-053-S -161434
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-054-S 149797
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-055-S 527565
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-056-S 955653
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-057-S 1412845
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-058-S 1874316
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-059-S 2313391
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-060-S 2703540
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-061-S 3020428
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-062-S 3243843
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-063-S 3359322
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-064-S 3359322
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-065-S 3243843
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-066-S 3020428
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-067-S 2703540
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-068-S 2313391
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-069-S 1874316
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-070-S 1412845
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-071-S 955653
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-072-S 527565
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-073-S 149797
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-074-S -161434
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-075-S -395809
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-076-S -549278
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-077-S -623882
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-078-S -627078
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-079-S -570669
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-080-S -469445
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-081-S -339690
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-082-S -197690
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-083-S -58393
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-084-S 65692
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-085-S 165255
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-086-S 234589
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-087-S 271611
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-088-S 277560
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-089-S 256423
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-090-S 214178
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-091-S 157946
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-092-S 95146
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-093-S 32738
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-094-S -23388
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-095-S -68829
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-096-S -100885
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-097-S -118565
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-098-S -122430
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-099-S -114293
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-100-S -96845
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-101-S -73241
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-102-S -46715
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-103-S -20235
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-104-S 3749
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-105-S 23461
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-106-S 37864
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-107-S 46632
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-108-S 50048
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-109-S 48864
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-110-S 44132
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-111-S 37031
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-112-S 28726
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-113-S 20242
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-114-S 12390
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-115-S 5728
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-116-S 559
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-117-S -3044
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-118-S -5186
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-119-S -6097
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-120-S -6074
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-121-S -5427
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-122-S -4442
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-123-S -3353
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-124-S -2326
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-125-S -1467
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-126-S -817
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-127-S -442
	;;
10)
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-000-S 357
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-001-S 530
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-002-S 900
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-003-S 1414
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-004-S 2100
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-005-S 2979
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-006-S 4071
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-007-S 5386
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-008-S 6921
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-009-S 8660
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-010-S 10567
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-011-S 12589
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-012-S 14645
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-013-S 16631
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-014-S 18418
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-015-S 19852
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-016-S 20756
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-017-S 20935
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-018-S 20181
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-019-S 18281
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-020-S 15025
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-021-S 10219
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-022-S 3696
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-023-S -4672
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-024-S -14957
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-025-S -27165
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-026-S -41221
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-027-S -56958
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-028-S -74107
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-029-S -92288
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-030-S -111012
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-031-S -129674
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-032-S -147565
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-033-S -163873
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-034-S -177707
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-035-S -188107
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-036-S -194074
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-037-S -194592
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-038-S -188666
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-039-S -175349
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-040-S -153780
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-041-S -123222
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-042-S -83091
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-043-S -32993
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-044-S 27249
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-045-S 97573
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-046-S 177656
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-047-S 266909
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-048-S 364471
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-049-S 469216
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-050-S 579767
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-051-S 694523
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-052-S 811683
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-053-S 929295
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-054-S 1045293
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-055-S 1157552
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-056-S 1263943
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-057-S 1362389
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-058-S 1450919
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-059-S 1527726
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-060-S 1591216
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-061-S 1640055
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-062-S 1673207
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-063-S 1689962
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-064-S 1689962
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-065-S 1673207
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-066-S 1640055
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-067-S 1591216
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-068-S 1527726
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-069-S 1450919
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-070-S 1362389
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-071-S 1263943
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-072-S 1157552
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-073-S 1045293
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-074-S 929295
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-075-S 811683
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-076-S 694523
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-077-S 579767
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-078-S 469216
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-079-S 364471
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-080-S 266909
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-081-S 177656
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-082-S 97573
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-083-S 27249
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-084-S -32993
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-085-S -83091
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-086-S -123222
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-087-S -153780
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-088-S -175349
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-089-S -188666
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-090-S -194592
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-091-S -194074
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-092-S -188107
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-093-S -177707
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-094-S -163873
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-095-S -147565
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-096-S -129674
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-097-S -111012
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-098-S -92288
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-099-S -74107
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-100-S -56958
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-101-S -41221
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-102-S -27165
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-103-S -14957
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-104-S -4672
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-105-S 3696
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-106-S 10219
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-107-S 15025
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-108-S 18281
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-109-S 20181
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-110-S 20935
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-111-S 20756
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-112-S 19852
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-113-S 18418
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-114-S 16631
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-115-S 14645
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-116-S 12589
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-117-S 10567
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-118-S 8660
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-119-S 6921
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-120-S 5386
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-121-S 4071
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-122-S 2979
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-123-S 2100
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-124-S 1414
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-125-S 900
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-126-S 530
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-127-S 357
	;;
5)
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-000-S -276
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-001-S -271
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-002-S -394
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-003-S -546
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-004-S -728
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-005-S -939
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-006-S -1175
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-007-S -1432
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-008-S -1701
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-009-S -1970
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-010-S -2223
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-011-S -2439
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-012-S -2592
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-013-S -2648
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-014-S -2571
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-015-S -2314
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-016-S -1827
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-017-S -1050
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-018-S 83
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-019-S 1643
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-020-S 3711
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-021-S 6370
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-022-S 9711
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-023-S 13829
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-024-S 18820
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-025-S 24785
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-026-S 31823
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-027-S 40032
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-028-S 49508
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-029-S 60341
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-030-S 72615
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-031-S 86404
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-032-S 101771
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-033-S 118766
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-034-S 137423
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-035-S 157760
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-036-S 179774
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-037-S 203446
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-038-S 228729
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-039-S 255560
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-040-S 283848
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-041-S 313479
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-042-S 344319
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-043-S 376206
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-044-S 408959
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-045-S 442377
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-046-S 476236
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-047-S 510300
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-048-S 544315
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-049-S 578017
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-050-S 611132
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-051-S 643383
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-052-S 674491
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-053-S 704177
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-054-S 732172
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-055-S 758213
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-056-S 782052
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-057-S 803460
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-058-S 822225
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-059-S 838162
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-060-S 851110
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-061-S 860938
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-062-S 867547
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-063-S 870868
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-064-S 870868
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-065-S 867547
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-066-S 860938
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-067-S 851110
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-068-S 838162
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-069-S 822225
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-070-S 803460
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-071-S 782052
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-072-S 758213
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-073-S 732172
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-074-S 704177
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-075-S 674491
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-076-S 643383
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-077-S 611132
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-078-S 578017
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-079-S 544315
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-080-S 510300
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-081-S 476236
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-082-S 442377
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-083-S 408959
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-084-S 376206
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-085-S 344319
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-086-S 313479
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-087-S 283848
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-088-S 255560
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-089-S 228729
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-090-S 203446
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-091-S 179774
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-092-S 157760
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-093-S 137423
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-094-S 118766
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-095-S 101771
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-096-S 86404
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-097-S 72615
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-098-S 60341
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-099-S 49508
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-100-S 40032
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-101-S 31823
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-102-S 24785
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-103-S 18820
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-104-S 13829
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-105-S 9711
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-106-S 6370
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-107-S 3711
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-108-S 1643
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-109-S 83
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-110-S -1050
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-111-S -1827
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-112-S -2314
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-113-S -2571
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-114-S -2648
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-115-S -2592
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-116-S -2439
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-117-S -2223
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-118-S -1970
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-119-S -1701
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-120-S -1432
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-121-S -1175
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-122-S -939
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-123-S -728
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-124-S -546
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-125-S -394
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-126-S -271
	caput TEST-PTYP-ATCA:IO-$board-FIR$type-127-S -276
	;;
*)
	echo "Invalid sample rate. Range is [200, 100, 50, 20, 10 or 5]"
	exit
	;;
esac

caput TEST-PTYP-ATCA:IO-$board-DEC-S $decimation
caput TEST-PTYP-ATCA:IO-$board-DEC-CHG-S $type_value
caput TEST-PTYP-ATCA:IO-$board-COF-CHG-S $type_value
caput TEST-PTYP-ATCA:IO-$board-SCALE-F-S 1.300000e-006
