From: Hadaq@styx Date: Fri, 17 Jan 2014 23:39:58 +0000 (+0100) Subject: Missing scripts X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=86fc00aaf1579d14ab8a7897123b861ca23e1f9f;p=daqtools.git Missing scripts --- diff --git a/users/cosy_test/nxscripts/clearstats.sh b/users/cosy_test/nxscripts/clearstats.sh new file mode 100755 index 0000000..a57592b --- /dev/null +++ b/users/cosy_test/nxscripts/clearstats.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +[ -z $1 ] && addr=0xfe49 || addr=$1 + +trbcmd w $addr 0x8120 0 + diff --git a/users/cosy_test/nxscripts/cts_en.sh b/users/cosy_test/nxscripts/cts_en.sh new file mode 100755 index 0000000..37461e1 --- /dev/null +++ b/users/cosy_test/nxscripts/cts_en.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +echo "CTS Trigger Input #2 on" + +trbcmd w 0x8000 0xa101 0x0100 + diff --git a/users/cosy_test/nxscripts/cts_off.sh b/users/cosy_test/nxscripts/cts_off.sh new file mode 100755 index 0000000..43a6b85 --- /dev/null +++ b/users/cosy_test/nxscripts/cts_off.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +echo "CTS Trigger Input #2 off" + +trbcmd w 0x8000 0xa101 0x0000 + diff --git a/users/cosy_test/nxscripts/resync.sh b/users/cosy_test/nxscripts/resync.sh new file mode 100755 index 0000000..7a8700b --- /dev/null +++ b/users/cosy_test/nxscripts/resync.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +[ -z $1 ] && addr=0xfe49 || addr=$1 + +trbcmd clearbit $addr 0x8250 0x01 + +sleep 1 + +trbcmd setbit $addr 0x8250 0x01 diff --git a/users/cosy_test/nxscripts/set_cts_delay.sh b/users/cosy_test/nxscripts/set_cts_delay.sh new file mode 100755 index 0000000..aa10001 --- /dev/null +++ b/users/cosy_test/nxscripts/set_cts_delay.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +[ -z $1 ] && ctsd=50 || ctsd=$1 +addr=0xfe49 + +trbcmd w $addr 0x8403 $ctsd diff --git a/users/cosy_test/nxscripts/set_trig_offset.sh b/users/cosy_test/nxscripts/set_trig_offset.sh new file mode 100755 index 0000000..310bcb5 --- /dev/null +++ b/users/cosy_test/nxscripts/set_trig_offset.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +[ -z $1 ] && val=50 || val=$1 +val=0xfe49 + +trbcmd w $addr 0x8401 $val diff --git a/users/cosy_test/nxscripts/set_trig_width.sh b/users/cosy_test/nxscripts/set_trig_width.sh new file mode 100755 index 0000000..b9e690f --- /dev/null +++ b/users/cosy_test/nxscripts/set_trig_width.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +[ -z $1 ] && val=50 || val=$1 +addr=0xfe49 + +trbcmd w $addr 0x8402 $val diff --git a/users/cosy_test/nxscripts/trig_st.sh b/users/cosy_test/nxscripts/trig_st.sh new file mode 100755 index 0000000..d3d2b9c --- /dev/null +++ b/users/cosy_test/nxscripts/trig_st.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +[ -z $1 ] && addr=0xfe49 || addr=$1 + +trbcmd w $addr 0x8400 0x0c + diff --git a/xml-db/database/Nxyter.xml b/xml-db/database/Nxyter.xml index cb80ec2..6d89f96 100644 --- a/xml-db/database/Nxyter.xml +++ b/xml-db/database/Nxyter.xml @@ -512,12 +512,12 @@ address="0800" purpose="status" mode="r" continuous="false"> + address="0000" size="128" purpose="config" mode="rw" continuous="true"> Continuous Hit Counter per Channel - + + address="0100" size="128" purpose="config" mode="rw" continuous="true"> Continuous Hit Counter per Channel - +