]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Missing scripts
authorHadaq@styx <hadaq@styx>
Fri, 17 Jan 2014 23:39:58 +0000 (00:39 +0100)
committerHadaq@styx <hadaq@styx>
Fri, 17 Jan 2014 23:40:06 +0000 (00:40 +0100)
users/cosy_test/nxscripts/clearstats.sh [new file with mode: 0755]
users/cosy_test/nxscripts/cts_en.sh [new file with mode: 0755]
users/cosy_test/nxscripts/cts_off.sh [new file with mode: 0755]
users/cosy_test/nxscripts/resync.sh [new file with mode: 0755]
users/cosy_test/nxscripts/set_cts_delay.sh [new file with mode: 0755]
users/cosy_test/nxscripts/set_trig_offset.sh [new file with mode: 0755]
users/cosy_test/nxscripts/set_trig_width.sh [new file with mode: 0755]
users/cosy_test/nxscripts/trig_st.sh [new file with mode: 0755]
xml-db/database/Nxyter.xml

diff --git a/users/cosy_test/nxscripts/clearstats.sh b/users/cosy_test/nxscripts/clearstats.sh
new file mode 100755 (executable)
index 0000000..a57592b
--- /dev/null
@@ -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 (executable)
index 0000000..37461e1
--- /dev/null
@@ -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 (executable)
index 0000000..43a6b85
--- /dev/null
@@ -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 (executable)
index 0000000..7a8700b
--- /dev/null
@@ -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 (executable)
index 0000000..aa10001
--- /dev/null
@@ -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 (executable)
index 0000000..310bcb5
--- /dev/null
@@ -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 (executable)
index 0000000..b9e690f
--- /dev/null
@@ -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 (executable)
index 0000000..d3d2b9c
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+[ -z $1 ] && addr=0xfe49 || addr=$1
+
+trbcmd w $addr 0x8400 0x0c
+
index cb80ec2dbb5eab74361e892b94865e9219f828ba..6d89f96dda5623dfc42124dfca99c18a92231645 100644 (file)
          address="0800" purpose="status"  mode="r" continuous="false">
     
     <group name="RateHist"
-           address="0000"  size="130"  purpose="config"  mode="rw" continuous="true">    
+           address="0000"  size="128"  purpose="config"  mode="rw" continuous="true">    
       <register name="ChannelHitCtr" address="0000" purpose="status" mode="r" repeat="128">
         <description>Continuous Hit Counter per Channel</description>
         <field name="ChannelHitCtr" start="0" bits="32" format="unsigned" rate="1" unit="s&lt;sup&gt;-1&lt;/sup&gt;" />
       </register>
-    
+    <!--
       <register name="AverageNumH" address="0080" purpose="config" mode="rw">
         <description>Number of Averages, power of two (2^n)</description>
         <field name="AverageNumH" start="0" bits="32" format="unsigned"/>
         <description>Enable Average mode</description>
         <field name="EnableAverageH" start="0" bits="1" format="boolean"/>
       </register>
-
+-->
     </group>
     
     <group name="ADCHist"
-           address="0100"  size="130"  purpose="config"  mode="rw" continuous="true">    
+           address="0100"  size="128"  purpose="config"  mode="rw" continuous="true">    
       <register name="ChannelADCVal" address="0000" purpose="status" mode="r" repeat="128">
         <description>Continuous Hit Counter per Channel</description>
         <field name="ChannelADCVal" start="0" bits="32" format="unsigned"/>
       </register>
-    
+  <!--  
       <register name="AverageNumA" address="0080" purpose="config" mode="rw">
         <description>Number of Averages, power of two (2^n)</description>
         <field name="AverageNumA" start="0" bits="32" format="unsigned"/>
         <description>Enable Average mode</description>
         <field name="EnableAverageA" start="0" bits="1" format="boolean"/>
       </register>
-
+-->
     </group>
 
   </group>