Scope
ScopeControllerModes.h
1 #pragma once
2 
3 #include "ScopeController.h"
4 
5 namespace scope {
6 
8  : public ScopeController {
9 
10 };
11 
12 
15  : public ScopeControllerModeBasic {
16 
18  void Start() {
19  /*if ( parameters.run_state() == RunStateHelper::Mode::Stopped ) {
20  GuiParameters.requested_mode.Set(DaqModeHelper::Mode::continuous);
21  GuiParameters.run_state.Set(RunStateHelper::Mode::RunningContinuous);
22  GuiParameters.date.Set(GetCurrentDateString());
23  GuiParameters.time.Set(GetCurrentTimeString());
24  parameters = GuiParameters;
25  SetGuiCtrlState();
26  stops[0].Set(false);
27  futures[0] = std::async(std::bind(&ModeLiveImpl::Run, this, &stops[0]));
28  futures[0].wait(); // Wait here, because RunLive should quickly return
29  }*/
30  }
31 
33  ControllerReturnStatus Run(StopCondition* const sc) {
34  //ClearAllQueues();
35  //SetScannerVectorParameters();
36  DBOUT(L"ScopeController::RunLive()");
37  //StartAllControllers();
38  return ControllerReturnStatus::finished;
39  }
40 
41 
42 };
43 
44 }
Main controller of microscope hardware and acquisition, also interface to the GUI.
Thread-safe lock-free bool to signal a requested stop to the worker function currently executed in th...
Definition: helpers.h:87
void Start()
Starts live scanning by running RunLive asynchronously.
#define DBOUT(s)
A debug output to the debug console.
Definition: helpers.h:153
The implementation class of the ScopeController.
ControllerReturnStatus Run(StopCondition *const sc)
Worker function to control live scanning (basically only starting everything up)