Scope
FPGAAnalogIntegratorPage.cpp
1 #include "stdafx.h"
2 #include "FPGAAnalogIntegratorPage.h"
3 #include "parameters\IO.h"
4 
5 namespace scope {
6  namespace gui {
7 
9  : tohostoverflow1_led(&_parameters->diagnosis.ToHostOverflowCh1)
10  , tohostoverflow2_led(&_parameters->diagnosis.ToHostOverflowCh2)
11  , interloopoverflow_led(&_parameters->diagnosis.InterloopOverflow)
12  , interlooptimeout_led(&_parameters->diagnosis.InterloopTimeout)
13  , acquiring_led(&_parameters->diagnosis.Acquiring, SCOPELED_OKONTRUE)
14  , aioverrange_led(&_parameters->diagnosis.AIOverRange)
15  , bitshiftch1_edit(&_parameters->BitshiftCh1)
16  , baselinech1_edit(&_parameters->BaselineCh1)
17  , bitshiftch2_edit(&_parameters->BitshiftCh2)
18  , baselinech2_edit(&_parameters->BaselineCh2) {
19 }
20 
21 BOOL CFPGAAnalogIntegratorPage::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) {
22  tohostoverflow1_led.AttachToDlgItem(GetDlgItem(IDC_TOHOSTOVERFLOW1_BUTTON));
23  tohostoverflow2_led.AttachToDlgItem(GetDlgItem(IDC_TOHOSTOVERFLOW2_BUTTON));
24  interloopoverflow_led.AttachToDlgItem(GetDlgItem(IDC_INTERLOOPOVERFLOW_BUTTON));
25  interlooptimeout_led.AttachToDlgItem(GetDlgItem(IDC_INTERLOOPTIMEOUT1_BUTTON));
26  acquiring_led.AttachToDlgItem(GetDlgItem(IDC_ACQUIRING_BUTTON));
27  aioverrange_led.AttachToDlgItem(GetDlgItem(IDC_OVERRANGE_BUTTON2));
28  bitshiftch1_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTCH1_EDIT));
29  baselinech1_edit.AttachToDlgItem(GetDlgItem(IDC_BASELINECH1_EDIT));
30  bitshiftch2_edit.AttachToDlgItem(GetDlgItem(IDC_BITSHIFTCH2_EDIT));
31  baselinech2_edit.AttachToDlgItem(GetDlgItem(IDC_BASELINECH2_EDIT));
32 
33  return 0;
34 }
35 
36 }}
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
Definition: ScopeEditCtrl.h:68
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...
Parameters for pixel acquisition FPGAAnalogIntegrator.
Definition: IO.h:411
CFPGAAnalogIntegratorPage(parameters::InputsFPGAAnalogIntegrator *const _parameters)
Connect to the FIFOStatus ScopeNumbers.