diff --git a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c index cc515346b..97b31ebfb 100644 --- a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c @@ -2456,6 +2456,34 @@ void *start_timer(void *arg) { // Generate data char imageData[imageSize]; memset(imageData, 0, imageSize); + // { + // const int nchannels = NCHAN_1_COUNTER * NCHIP * ncounters; + + // for (int i = 0; i < nchannels; ++i) { + // int j = rand(); + // switch (dr) { + // //case 1: // TODO: Not implemented in firmware yet + // // break; + + // case 8: + // *((uint8_t *)(imageData + i)) = (uint8_t)j; + // break; + // case 16: + // *((uint16_t *)(imageData + i * sizeof(uint16_t))) = (uint16_t)j; + // break; + // case 32: + // *((uint32_t *)(imageData + i * sizeof(uint32_t))) = ((uint32_t)j & 0xFFFFFF); // 24 bit + // break; + // default: + // break; + // } + // } + // } + + // Send data + // loop over number of frames + for (int frameNr = 0; frameNr != numFrames; ++frameNr) { + { const int nchannels = NCHAN_1_COUNTER * NCHIP * ncounters; @@ -2480,9 +2508,6 @@ void *start_timer(void *arg) { } } - // Send data - // loop over number of frames - for (int frameNr = 0; frameNr != numFrames; ++frameNr) { // check if manual stop if (sharedMemory_getStop() == 1) {