?? mn.cpp
字號:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Pcom.h"
#include "main.h"
#include "mn.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm6 *Form6;
//double data[100];
//---------------------------------------------------------------------------
__fastcall TForm6::TForm6(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm6::Timer1Timer(TObject *Sender)
{
Timer1->Enabled=false; //封閉計時器
display(); //實時送數(shù)據(jù)
DisToSeries(); //顯示到圖象
Timer1->Enabled=true; //啟動計時器
}
//---------------------------------------------------------------------------
void __fastcall TForm6::FormShow(TObject *Sender)
{
Send1Telegramm(StaMode_T,0x01); //靜態(tài)模式
Timer1->Enabled=true;
Form1->Visible=false;
Timer1->Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm6::FormClose(TObject *Sender, TCloseAction &Action)
{
Form1->Visible=true;
Send1Telegramm(Displ_T,0x04); //實時送數(shù)
Timer1->Enabled=false; //a
}
//---------------------------------------------------------------------------
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -