Scope
FPGAPhotonCounterPage.h
1 #pragma once
2 
3 #include "ScopeDefines.h"
4 #include "controls/ScopeLEDCtrl.h"
5 #include "controllers/ScopeController.h"
6 #include "devices/fpga/FPGAPhotonCounter.h"
7 #include "resource.h"
8 
9 namespace scope {
10  namespace gui {
11 
14  public CPropertyPageImpl<CFPGAPhotonCounterPage> {
15 
16 protected:
17 
18 public:
19  enum { IDD = IDD_FPGAPHOTONCOUNTER_PROPPAGE };
20 
23  CScopeLEDCtrl tohostoverflow1_led;
24  CScopeLEDCtrl tohostoverflow2_led;
25  CScopeLEDCtrl interloopoverflow_led;
26  CScopeLEDCtrl interlooptimeout_led;
27  CScopeLEDCtrl acquiring_led;
32 
35  CButton counthigh_button;
36  CButton countpulses_button;
41 
42  BEGIN_MSG_MAP(CFPGAPhotonCounterPage)
43  MSG_WM_INITDIALOG(OnInitDialog);
44  COMMAND_HANDLER(IDC_COUNTHIGH_RADIO, BN_CLICKED, OnCountModeChange);
45  COMMAND_HANDLER(IDC_COUNTPULSES_RADIO, BN_CLICKED, OnCountModeChange);
46  REFLECT_NOTIFICATIONS()
47  END_MSG_MAP()
48 
51  BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam);
53  LRESULT OnCountModeChange(WORD, WORD, HWND, BOOL&);
55 };
56 
57 }}
An adapted CBitmapButton control around a ScopeNumber to show true or false as green or red LED...
Definition: ScopeLEDCtrl.h:12
LRESULT OnCountModeChange(WORD, WORD, HWND, BOOL &)
Handles count mode changes.
Class for the photon counter FPGA infos property page.
Parameters for pixel acquisition with FPGAPhotonCounter.
Definition: IO.h:246
CFPGAPhotonCounterPage(parameters::InputsFPGAPhotonCounter *const _parameters)
Connect to the FIFOStatus ScopeNumbers.
FPGAPhotonCounter *const myFPGA
pointer to the static FPGA object
Wraps an FPGA that does photon counting (for Version 2 VI)