]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Thu, 17 Sep 2009 21:18:40 +0000 (21:18 +0000)
committerhadaq <hadaq>
Thu, 17 Sep 2009 21:18:40 +0000 (21:18 +0000)
trbrich/pulser.c

index 9568462f0acb0b0553f72a6cf2c00010d0f278e0..088ead9104037c8516982ef97130c24433e72860 100644 (file)
@@ -10,7 +10,7 @@
 #include <trbnet.h>
 #include <trberror.h>
 
-static const char pulser_version[] = "$Revision: 1.3 $"; 
+static const char pulser_version[] = "$Revision: 1.4 $"; 
 
 #define bufferSize 16385
 
@@ -39,7 +39,7 @@ static void sigHandler(int sig)
 void usage(const char *progName)
 {
   printf("Usage: %s [-h] [-d level] [-f outFileName] [-n numEvents] "
-         "[-t triggerType] [-i input]\n",
+         "[-t triggerType] [-i input] [-V]\n",
          progName);
   printf("Options:\n");
   printf("  -h    give this help\n");
@@ -131,12 +131,12 @@ int main(int argc, char ** argv)
     sigprocmask(SIG_BLOCK, &blockSet, NULL);
     
     /* Send Trigger and get Data */
-    if (trb_send_trigger_rich(input, triggerType, 0xcc, 0xdd, 0xaabb) == -1) {
+    if (trb_send_trigger_rich(input, triggerType, 0xcc, 0xdd, 0x0001) == -1) {
       trb_error("Error send_trigger");
       exit(EXIT_FAILURE);
     }
     
-    size = trb_ipu_data_read(triggerType, 0xcc, 0xdd, 0xaabb
+    size = trb_ipu_data_read(triggerType, 0xcc, 0xdd, 0x0001
                              buffer, bufferSize);
     if (size == -1) {
       trb_error("Error IPU Read");