📄 formmain.h
字号:
//---------------------------------------------------------------------------
#ifndef FORMMAINH
#define FORMMAINH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include "..\..\..\include\driver.h"
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TGroupBox *GroupBox1;
TStaticText *labDeviceName;
TButton *btnSelectDevice;
TButton *cmdStart;
TButton *cmdStop;
TBitBtn *btnClose;
TGroupBox *GroupBox2;
TRadioButton *optVoltageOut;
TRadioButton *optCurrentOut0;
TRadioButton *optCurrentOut4;
TGroupBox *GroupBox3;
TLabel *Label1;
TCheckBox *chkSyncAOEnable;
TEdit *txtScanTime;
TGroupBox *GroupBox4;
TCheckBox *chkSyncEnable0;
TCheckBox *chkSyncEnable1;
TCheckBox *chkSyncEnable2;
TCheckBox *chkSyncEnable3;
TCheckBox *chkSyncEnable4;
TCheckBox *chkSyncEnable5;
TCheckBox *chkSyncEnable6;
TCheckBox *chkSyncEnable7;
TGroupBox *GroupBox5;
TRadioButton *optAsyncEnable0;
TRadioButton *optAsyncEnable1;
TRadioButton *optAsyncEnable2;
TRadioButton *optAsyncEnable3;
TRadioButton *optAsyncEnable4;
TRadioButton *optAsyncEnable5;
TRadioButton *optAsyncEnable6;
TRadioButton *optAsyncEnable7;
TEdit *editOutput;
TTimer *ScanTimer;
void __fastcall btnSelectDeviceClick(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
void __fastcall ScanTimerTimer(TObject *Sender);
void __fastcall cmdStartClick(TObject *Sender);
void __fastcall cmdStopClick(TObject *Sender);
void __fastcall txtScanTimeChange(TObject *Sender);
void __fastcall chkSyncAOEnableClick(TObject *Sender);
private: // User declarations
long lErrCde;
public: // User declarations
ULONG lDeviceNum;
long lDeviceHandle;
char szDescription[82];
PT_DeviceGetFeatures ptDevGetFeatures;
DEVFEATURES ptDevFeatures;
PT_AOVoltageOut ptAOVoltageOut;
PT_AOCurrentOut ptAOCurrentOut;
int MaxAOChannel;
int OutputIndex;
Single OutputValue[4];
__fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -