Changeset 11385


Ignore:
Timestamp:
07/13/11 20:02:16 (13 years ago)
Author:
ogrimm
Message:
Board time published as DIM service, files written with permissions for OTHER
Location:
fact/FADctrl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FAD.cc

    r11289 r11385  
    536536  snprintf(Filename, sizeof(Filename),"%s/%d%02d%02dT%02d%02d%02d.raw", Parameter[2].c_str(), T->tm_year+1900, T->tm_mon+1, T->tm_mday, T->tm_hour, T->tm_min, T->tm_sec);
    537537
    538   Datafile = open(Filename,O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
     538  Datafile = open(Filename,O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
    539539  if(Datafile == -1) {
    540540    PrintMessage("Error: Could not open file \"%s\" (%s)\n", Filename, strerror(errno));
  • fact/FADctrl/FADBoard.cc

    r11232 r11385  
    5757  DIM_Rate = new DimService((ID.str()+"RateHz").c_str(), Status.Rate);
    5858  DIM_Frequency = new DimService((ID.str()+"Frequency").c_str(), Status.Frequency);
     59  DIM_BoardTime = new DimService((ID.str()+"BoardTime").c_str(), (char *) "I", &Status.BoardTime, sizeof(Status.BoardTime));
    5960  DIM_Lock = new DimService((ID.str()+"Lock").c_str(), (char *) "S", &Status.Lock, sizeof(Status.Lock));
    6061  DIM_TriggerNum = new DimService((ID.str()+"TriggerNum").c_str(), (char *) "I", &Status.TriggerNum, sizeof(Status.TriggerNum));
     
    548549                if (PrevStatus.Frequency != Status.Frequency) DIM_Frequency->updateService();
    549550                if (PrevStatus.TriggerNum != Status.TriggerNum) DIM_TriggerNum->updateService();
     551                if (PrevStatus.BoardTime != Status.BoardTime) DIM_BoardTime->updateService();
    550552                if (PrevStatus.Rate != Status.Rate) DIM_Rate->updateService();
    551553
  • fact/FADctrl/FADBoard.h

    r11178 r11385  
    3030        pthread_mutex_t Mutex;
    3131        DimService *DIM_Name, *DIM_Status, *DIM_ID, *DIM_Frequency, *DIM_Lock, *DIM_TriggerNum;
    32         DimService *DIM_Rate, *DIM_Temp, *DIM_ROI, *DIM_DAC, *DIM_ACalData;
     32        DimService *DIM_Rate, *DIM_Temp, *DIM_ROI, *DIM_DAC, *DIM_ACalData, *DIM_BoardTime;
    3333
    3434        void ReadLoop();
  • fact/FADctrl/History.txt

    r11289 r11385  
    353524/6/2011       PLL lock status published as DIM service
    36367/7/2011        Fixed error in setting the active boards in EventThread()
     3713/7/2911   FAD board time published as DIM service
Note: See TracChangeset for help on using the changeset viewer.