Changeset 11385
- Timestamp:
- 07/13/11 20:02:16 (13 years ago)
- Location:
- fact/FADctrl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FAD.cc
r11289 r11385 536 536 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); 537 537 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); 539 539 if(Datafile == -1) { 540 540 PrintMessage("Error: Could not open file \"%s\" (%s)\n", Filename, strerror(errno)); -
fact/FADctrl/FADBoard.cc
r11232 r11385 57 57 DIM_Rate = new DimService((ID.str()+"RateHz").c_str(), Status.Rate); 58 58 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)); 59 60 DIM_Lock = new DimService((ID.str()+"Lock").c_str(), (char *) "S", &Status.Lock, sizeof(Status.Lock)); 60 61 DIM_TriggerNum = new DimService((ID.str()+"TriggerNum").c_str(), (char *) "I", &Status.TriggerNum, sizeof(Status.TriggerNum)); … … 548 549 if (PrevStatus.Frequency != Status.Frequency) DIM_Frequency->updateService(); 549 550 if (PrevStatus.TriggerNum != Status.TriggerNum) DIM_TriggerNum->updateService(); 551 if (PrevStatus.BoardTime != Status.BoardTime) DIM_BoardTime->updateService(); 550 552 if (PrevStatus.Rate != Status.Rate) DIM_Rate->updateService(); 551 553 -
fact/FADctrl/FADBoard.h
r11178 r11385 30 30 pthread_mutex_t Mutex; 31 31 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; 33 33 34 34 void ReadLoop(); -
fact/FADctrl/History.txt
r11289 r11385 35 35 24/6/2011 PLL lock status published as DIM service 36 36 7/7/2011 Fixed error in setting the active boards in EventThread() 37 13/7/2911 FAD board time published as DIM service
Note:
See TracChangeset
for help on using the changeset viewer.