From: hadaq Date: Fri, 23 Apr 2010 18:52:55 +0000 (+0000) Subject: increased buffer_size X-Git-Tag: v6.0~273 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=c982cf69c3f07791a85cb1730369af5dc189deb8;p=trbnettools.git increased buffer_size --- diff --git a/trbrich/pulser.c b/trbrich/pulser.c index 3070de4..5ab9138 100644 --- a/trbrich/pulser.c +++ b/trbrich/pulser.c @@ -11,10 +11,10 @@ #include #include -static const char pulser_version[] = "$Revision: 1.6 $"; +static const char pulser_version[] = "$Revision: 1.7 $"; -/* 1MByte for 6 Sectors should be enough */ -#define BUFFER_SIZE (1024 * 1024 / 4) +/* 6MByte for 6 Sectors should be enough */ +#define BUFFER_SIZE (6 * 1024 * 1024 / 4) /* ------ MAIN ---------------------------------------------------------- */ @@ -59,6 +59,7 @@ int main(int argc, char ** argv) { char hldFileName[256] = "pulser.hld"; uint16_t trg_number = 0; + uint8_t trg_info = 0x00; uint8_t trg_random = 0; uint8_t triggerType = 0; uint8_t input = 0; @@ -151,13 +152,13 @@ int main(int argc, char ** argv) sigprocmask(SIG_BLOCK, &blockSet, NULL); /* Send Trigger and get Data */ - if (trb_send_trigger_rich(input, triggerType, 0x00, + if (trb_send_trigger_rich(input, triggerType, trg_info, trg_random, trg_number) == -1) { trb_error("Error send_trigger"); exit(EXIT_FAILURE); } - size = trb_ipu_data_read(triggerType, 0xcc, 0xdd, 0x0001, + size = trb_ipu_data_read(triggerType, trg_info, trg_random, trg_number, buffer, BUFFER_SIZE); if (size == -1) { trb_error("Error IPU Read");