Changeset 13136 for trunk/FACT++
- Timestamp:
- 03/18/12 21:55:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/biasctrl.cc
r13134 r13136 58 58 uint16_t fSyncTime; 59 59 60 boolfIsInitializing;60 int fIsInitializing; 61 61 bool fIsRamping; 62 62 int fWaitingForAnswer; … … 355 355 { 356 356 Message("Stream successfully synchronized."); 357 fIsInitializing = false;357 fIsInitializing = 2; 358 358 359 359 // Cancel sending of the next 0 … … 524 524 if (error==ba::error::basic_errors::operation_aborted) 525 525 { 526 if (fIsInitializing )526 if (fIsInitializing==1) 527 527 Warn("Synchronization aborted..."); 528 else 529 Info("Synchronization successfull."); 528 // case 0 and 2 should not happen 530 529 return; 531 530 } … … 593 592 fWrapCounter = -1; 594 593 fGlobalDacCmd = -1; 595 fIsInitializing = true;594 fIsInitializing = 1; 596 595 fIsRamping = false; 597 596 … … 630 629 return; 631 630 632 if (fUpdateTime==0 )631 if (fUpdateTime==0 && fIsInitializing!=2) 633 632 return; 634 633 … … 637 636 else 638 637 ReadAllChannels(true); 638 639 fIsInitializing = 0; 639 640 } 640 641 … … 712 713 } 713 714 714 SetAllChannels(dac);715 716 715 if (identical) 717 716 Info("Ramping: target values reached."); 717 else 718 SetAllChannels(dac); 718 719 719 720 return !identical;
Note:
See TracChangeset
for help on using the changeset viewer.