From: hadaq Date: Thu, 17 Sep 2009 21:18:40 +0000 (+0000) Subject: update X-Git-Tag: v6.0~335 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=9705363b67eec8eb15718d7c577571c481c4e413;p=trbnettools.git update --- diff --git a/trbrich/pulser.c b/trbrich/pulser.c index 9568462..088ead9 100644 --- a/trbrich/pulser.c +++ b/trbrich/pulser.c @@ -10,7 +10,7 @@ #include #include -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");