Changeset 182 for drsdaq/DRS


Ignore:
Timestamp:
03/12/10 15:53:20 (15 years ago)
Author:
ogrimm
Message:
Updates to DIM integration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • drsdaq/DRS/DRS.cc

    r176 r182  
    183183#endif
    184184      /* check all VME slave slots */
    185       for (index = 2; index <= 10; index++) {     
     185      for (index = 2; index <= 9; index++) {     
    186186#ifdef CT_VME
    187187        MasterMap.vmebus_address        = GEVPC_BASE_ADDR + index * GEVPC_WINSIZE; // VME board base address
    188         MasterMapVME(&MasterMapping[index]);
     188        if (MasterMapVME(&MasterMapping[index]) != VME_SUCCESS) continue;
    189189#endif
    190190     
     
    48574857
    48584858   // use following lines to save calibration into an ASCII file
    4859 #if 1
     4859#if 0
    48604860   FILE *fh;
    48614861
     
    69076907  if ((ErrorCode = VME_Open()) != VME_SUCCESS) {
    69086908    VME_ErrorString(ErrorCode,ErrorString);
    6909     printf("Error: %s\n",ErrorString);
     6909    printf("VME_Open() %s\n",ErrorString);
    69106910  } 
    69116911  return ErrorCode;
     
    69176917  if (ErrorCode = VME_MasterMap(&MasterMap, MMap)) {
    69186918    VME_ErrorString(ErrorCode,ErrorString);
    6919     printf("Error: %s\n",ErrorString);
     6919    printf("VME_MasterMap() %s\n",ErrorString);
    69206920  }
    69216921  return(ErrorCode);
     
    69276927  if (ErrorCode = VME_MasterUnmap(MMap)) {
    69286928    VME_ErrorString(ErrorCode,ErrorString);
    6929     printf("Error: %s\n",ErrorString);
     6929    printf("VME_MasterUnmap() %s\n",ErrorString);
    69306930  } 
    69316931  return(ErrorCode); 
     
    69376937  if ((ErrorCode = VME_Close()) != VME_SUCCESS) {   
    69386938    VME_ErrorString(ErrorCode,ErrorString);
    6939     printf("Error: %s\n",ErrorString);
     6939    printf("VME_Close() %s\n",ErrorString);
    69406940  }
    69416941  return ErrorCode;
     
    69476947  if ((ErrorCode = CMEM_Open()) != CMEM_RCC_SUCCESS) {
    69486948    VME_ErrorString(ErrorCode,ErrorString);
    6949     printf("Error: %s\n",ErrorString);
     6949    printf("CMEM_Open() %s\n",ErrorString);
    69506950  }
    69516951  return ErrorCode;
     
    69576957  if ((ErrorCode = CMEM_Close()) != CMEM_RCC_SUCCESS) { 
    69586958    VME_ErrorString(ErrorCode,ErrorString);
    6959     printf("Error: %s\n",ErrorString);
     6959    printf("CMEM_Close %s\n",ErrorString);
    69606960  }
    69616961  return ErrorCode;
     
    69666966  if ((ErrorCode = CMEM_SegmentAllocate(SegSize, "DMA_BUFFER", CMEM_SegIdentifier)) != CMEM_RCC_SUCCESS) {
    69676967    VME_ErrorString(ErrorCode,ErrorString);
    6968     printf("Error: %s\n",ErrorString);
     6968    printf("CMEM_SegmentAllocate() %s\n",ErrorString);
    69696969  }
    69706970  return ErrorCode;
     
    69766976  if ((ErrorCode = CMEM_SegmentPhysicalAddress(CMEM_SegIdentifier, PCIAddress)) != CMEM_RCC_SUCCESS) {
    69776977    VME_ErrorString(ErrorCode,ErrorString);
    6978     printf("Error: %s\n",ErrorString);
     6978    printf("CMEM_SegmentPhysicalAddress() %s\n",ErrorString);
    69796979  }
    69806980  return ErrorCode;
     
    69866986  if ((ErrorCode = CMEM_SegmentVirtualAddress(CMEM_SegIdentifier, VirtualAddress)) != CMEM_RCC_SUCCESS) {
    69876987    VME_ErrorString(ErrorCode,ErrorString);
    6988     printf("Error: %s\n",ErrorString);
     6988    printf("CMEM_SegmentVirtualAddress() %s\n",ErrorString);
    69896989  }
    69906990  return ErrorCode;
     
    69966996  if ((ErrorCode = CMEM_SegmentFree(CMEM_SegIdentifier)) != CMEM_RCC_SUCCESS) {
    69976997    VME_ErrorString(ErrorCode,ErrorString);
    6998     printf("Error: %s\n",ErrorString);
     6998    printf("CMEM_SegmentFree() %s\n",ErrorString);
    69996999  } 
    70007000  return ErrorCode;
Note: See TracChangeset for help on using the changeset viewer.