foutform.h

来自「16 relay output channels and 16 isolated」· C头文件 代码 · 共 57 行

H
57
字号
//---------------------------------------------------------------------------

#ifndef FoutFormH
#define FoutFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "..\..\..\..\include\driver.h"
//---------------------------------------------------------------------------
class TfrmFout : public TForm
{
__published:	// IDE-managed Components
        TGroupBox *grpDeviceSelection;
        TLabel *labDeviceName;
        TButton *btnSelectDevice;
        TButton *btnStart;
        TButton *btnStop;
        TButton *btnExit;
        TGroupBox *grpChannel;
        TGroupBox *grpFoutSrc;
        TGroupBox *grpDivider;
        TComboBox *cmbChannel;
        TComboBox *cmbFoutSrc;
        TEdit *txtDivider;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall btnSelectDeviceClick(TObject *Sender);
        void __fastcall btnStartClick(TObject *Sender);
        void __fastcall btnStopClick(TObject *Sender);
        void __fastcall btnExitClick(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private:	// User declarations
public:		// User declarations
        __fastcall TfrmFout(TComponent* Owner);

       LONG lDriverHandle;                     //Driver handle
       char        szErrMsg[80];               // Use for MESSAGEBOX function
       LRESULT     ErrCde;                     // Return error code

       ULONG lDeviceNum;                       //Advantech Device Number in your system
       char szDescription[80];                 //description for Select Device
       DEVFEATURES     DevFeatures;            // structure for device features
       PT_DeviceGetFeatures  ptDevGetFeatures;
       PT_FreqOutStart ptFreqOutStart;
       unsigned       gwFoutSrc;              // frequency output source

       BOOL           bRun;
       USHORT         usMaxFreqOutNum;
       DWORD          dwBoardID;

};
//---------------------------------------------------------------------------
extern PACKAGE TfrmFout *frmFout;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?