Scope
FPGAAnalogDemultiplexerPage.cpp
1 #include "stdafx.h"
2 #include "FPGAAnalogDemultiplexerPage.h"
3 
4 namespace scope {
5  namespace gui {
6 
8  : tohostoverflowA1_led(&_parameters->diagnosis.ToHostOverflowA1)
9  , tohostoverflowA2_led(&_parameters->diagnosis.ToHostOverflowA2)
10  , interloopoverflow_led(&_parameters->diagnosis.InterloopOverflow)
11  , interlooptimeout_led(&_parameters->diagnosis.InterloopTimeout)
12  , acquiring_led(&_parameters->diagnosis.Acquiring, SCOPELED_OKONTRUE)
13  , aioverrange_led(&_parameters->diagnosis.AIOverRange)
14  , baselinech1_edit(&_parameters->BaselineCh1)
15  , baselinech2_edit(&_parameters->BaselineCh2)
16  , cutoffch1_edit(&_parameters->CutoffCh1)
17  , cutoffch2_edit(&_parameters->CutoffCh2)
18  , bitshiftch1a1_edit(&_parameters->BitshiftA1Ch1)
19  , bitshiftch2a1_edit(&_parameters->BitshiftA1Ch2)
20  , bitshiftch1a2_edit(&_parameters->BitshiftA2Ch1)
21  , bitshiftch2a2_edit(&_parameters->BitshiftA2Ch2)
22  , hist_range1_edit(&scope_controller.GuiParameters.areas[0]->histrange)
23  , hist_range2_edit(&scope_controller.GuiParameters.areas[1]->histrange)
24  {
25 }
26 
27 BOOL CFPGAAnalogDemultiplexerPage::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) {
28  tohostoverflowA1_led.AttachToDlgItem(GetDlgItem(IDC_TOHOSTOVERFLOWA1_BUTTON));
29  tohostoverflowA2_led.AttachToDlgItem(GetDlgItem(IDC_TOHOSTOVERFLOWA2_BUTTON));
30  interloopoverflow_led.AttachToDlgItem(GetDlgItem(IDC_INTERLOOPOVERFLOW_BUTTON));
31  interlooptimeout_led.AttachToDlgItem(GetDlgItem(IDC_INTERLOOPTIMEOUT_BUTTON));
32  acquiring_led.AttachToDlgItem(GetDlgItem(IDC_ACQUIRING_BUTTON));
33  aioverrange_led.AttachToDlgItem(GetDlgItem(IDC_OVERRANGE_BUTTON));
34  baselinech1_edit.AttachToDlgItem(GetDlgItem(IDC_BASELINECH1_EDIT));
35  baselinech2_edit.AttachToDlgItem(GetDlgItem(IDC_BASELINECH2_EDIT));
36  cutoffch1_edit.AttachToDlgItem(GetDlgItem(IDC_CUTOFFCH1_EDIT));
37  cutoffch2_edit.AttachToDlgItem(GetDlgItem(IDC_CUTOFFCH2_EDIT));
38  bitshiftch1a1_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA1CH1_EDIT));
39  bitshiftch2a1_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA1CH2_EDIT));
40  bitshiftch1a2_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA2CH1_EDIT));
41  bitshiftch2a2_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA2CH2_EDIT));
42  hist_range1_edit.AttachToDlgItem(GetDlgItem(IDC_HISTRANGE1_EDIT));
43  hist_range2_edit.AttachToDlgItem(GetDlgItem(IDC_HISTRANGE2_EDIT));
44  return 0;
45 }
46 
47 }}
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
Definition: ScopeEditCtrl.h:68
Parameters for pixel acquisition FPGAAnalogDemultiplexer.
Definition: IO.h:355
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
This is the include file for standard system include files, or project specific include files that ar...
CFPGAAnalogDemultiplexerPage(parameters::InputsFPGAAnalogDemultiplexer *const _parameters)
Connect to the FIFOStatus ScopeNumbers.