⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 foutform.h

📁 16 relay output channels and 16 isolated digital input channels LED indicators to show activated
💻 H
字号:
//---------------------------------------------------------------------------

#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;
        TComboBox *cmbDivider;
        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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -