From 9705363b67eec8eb15718d7c577571c481c4e413 Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 17 Sep 2009 21:18:40 +0000 Subject: [PATCH] update --- trbrich/pulser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"); -- 2.43.0