📄 unit1.h
字号:
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "ac6112inibyte.h"
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TButton *Button1;
TButton *Button2;
TButton *Button4;
TButton *Button5;
TButton *Button6;
TTimer *Timer1;
void __fastcall Button1Click(TObject *Sender);
void __fastcall Timer1Timer(TObject *Sender);
void __fastcall Button2Click(TObject *Sender);
void __fastcall Button6Click(TObject *Sender);
void __fastcall Button4Click(TObject *Sender);
void __fastcall Button5Click(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall FormCreate(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
//define the function of Dll
HINSTANCE hDll;
int hDevice; //NT IO驱动 句柄--->暂定为全局变量,自定义时,可以自己传递参数
struct AC6112_STATE StateOf6112;
struct AC6112_INI_BYTE buf[1];
unsigned long ErrorOf6112;
unsigned long FifoHard[5096]; // ac6112 板载FIFO
unsigned long kBuffer[500000];
int __stdcall (*AC6112_CreateDevice)(int, unsigned long *);
int __stdcall (*AC6112_CloseDevice)(int);
int __stdcall (*AC6112_Version)(int, char*);
int __stdcall (*AC6112_INI)(int, struct AC6112_INI_BYTE *);
int __stdcall (*AC6112_STATE)(int, struct AC6112_STATE*);
int __stdcall (*AC6112_RUN)(int);
int __stdcall (*AC6112_STOP)(int);
int __stdcall (*AC6112_AD_CHN)(int, unsigned long);
int __stdcall (*AC6112_READ_KFIFO)(int, unsigned long*, unsigned long);
int __stdcall (*AC6112_READ_HARD_FIFO)(int, unsigned long*, unsigned long);
int __stdcall (*AC6112_DI)(int, unsigned long*);//数字输入
int __stdcall (*AC6112_IO_MODE)(int, unsigned long);//数字输入/输出模式
int __stdcall (*AC6112_DO)(int, unsigned long);//数字输出
int __stdcall (*AC6112_RCOUNTER)(int, unsigned long*);//读计数器
int __stdcall (*AC6112_WCOUNTER)(int, unsigned long);//设置计数器
int __stdcall (*AC6112_RTIMER)(int, unsigned long*);//读计数器
int __stdcall (*AC6112_DA0)(int, unsigned long);
int __stdcall (*AC6112_DA1)(int, unsigned long);
int __stdcall (*AC6112_DA_MODE)(int, unsigned long);
int __stdcall (*AC6112_AD_MODE)(int, unsigned long);
int __stdcall (*AC6112_AD_TIMER)(int, unsigned long);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -