Scope
FPGAAnalogDemultiplexerResonancePage.cpp
1 #include "stdafx.h"
2 #include "FPGAAnalogDemultiplexerResonancePage.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 }
23 
24 BOOL CFPGAAnalogDemultiplexerResonancePage::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) {
25  tohostoverflowA1_led.AttachToDlgItem(GetDlgItem(IDC_TOHOSTOVERFLOWA1_BUTTON));
26  tohostoverflowA2_led.AttachToDlgItem(GetDlgItem(IDC_TOHOSTOVERFLOWA2_BUTTON));
27  interloopoverflow_led.AttachToDlgItem(GetDlgItem(IDC_INTERLOOPOVERFLOW_BUTTON));
28  interlooptimeout_led.AttachToDlgItem(GetDlgItem(IDC_INTERLOOPTIMEOUT_BUTTON));
29  acquiring_led.AttachToDlgItem(GetDlgItem(IDC_ACQUIRING_BUTTON));
30  aioverrange_led.AttachToDlgItem(GetDlgItem(IDC_OVERRANGE_BUTTON));
31  baselinech1_edit.AttachToDlgItem(GetDlgItem(IDC_BASELINECH1_EDIT));
32  baselinech2_edit.AttachToDlgItem(GetDlgItem(IDC_BASELINECH2_EDIT));
33  cutoffch1_edit.AttachToDlgItem(GetDlgItem(IDC_CUTOFFCH1_EDIT));
34  cutoffch2_edit.AttachToDlgItem(GetDlgItem(IDC_CUTOFFCH2_EDIT));
35  bitshiftch1a1_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA1CH1_EDIT));
36  bitshiftch2a1_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA1CH2_EDIT));
37  bitshiftch1a2_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA2CH1_EDIT));
38  bitshiftch2a2_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTA2CH2_EDIT));
39  return 0;
40 }
41 
42 }}
CFPGAAnalogDemultiplexerResonancePage(parameters::InputsFPGAAnalogDemultiplexer *const _parameters)
Connect to the FIFOStatus ScopeNumbers.
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...