//--------------------------------------------------------------------------- #ifndef MainUnitH #define MainUnitH //--------------------------------------------------------------------------- #include #include #include #include #include #include //--------------------------------------------------------------------------- class TForm1 : public TForm { __published: // IDE-managed Components TButton *WriteButton; TLabel *Label9; TEdit *BaseEdit; TButton *GoButton; TTimer *TheTime; TEdit *WriteChEdit; TEdit *WriteDataEdit; TLabel *Label10; TLabel *Label11; TButton *InitButton; TButton *FlagButton; TLabel *FlagLabel; TPaintBox *chnl0PaintBox; TProgressBar *chnl0RpmBar; TGroupBox *GroupBox0; TLabel *Label14; TTrackBar *chnl0Track; TLabel *Label15; TEdit *chn0ResEdit; TGroupBox *GroupBox1; TLabel *Label16; TTrackBar *chnl1Track; TLabel *Label17; TEdit *chn1ResEdit; TLabel *Label18; TLabel *chnl0Max; TLabel *chnl0Rpm; TLabel *chnl0MaxRpmLbl; TLabel *Label13; TComboBox *chnl0MultBox; TLabel *Label19; TEdit *ChEdit0; TLabel *Label20; TComboBox *chnl1MultBox; TLabel *chnl1MaxRpmLbl; TLabel *Label21; TEdit *ChEdit1; TGroupBox *GroupBox2; TLabel *Label22; TLabel *Label23; TLabel *Label24; TLabel *chnl2MaxRpmLbl; TLabel *Label26; TTrackBar *chnl2Track; TEdit *chn2ResEdit; TComboBox *chnl2MultBox; TEdit *ChEdit2; TGroupBox *GroupBox3; TLabel *Label27; TLabel *Label28; TLabel *Label29; TLabel *chnl3MaxRpmLbl; TLabel *Label31; TTrackBar *chnl3Track; TEdit *chn3ResEdit; TComboBox *chnl3MultBox; TEdit *ChEdit3; TGroupBox *GroupBox4; TLabel *Label25; TLabel *Label30; TLabel *Label32; TLabel *chnl4MaxRpmLbl; TLabel *Label34; TTrackBar *chnl4Track; TEdit *chn4ResEdit; TComboBox *chnl4MultBox; TEdit *ChEdit4; TGroupBox *GroupBox5; TLabel *Label35; TLabel *Label36; TLabel *Label37; TLabel *chnl5MaxRpmLbl; TLabel *Label39; TTrackBar *chnl5Track; TEdit *chn5ResEdit; TComboBox *chnl5MultBox; TEdit *ChEdit5; TGroupBox *GroupBox6; TLabel *Label33; TLabel *Label38; TLabel *Label40; TLabel *chnl6MaxRpmLbl; TLabel *Label42; TTrackBar *chnl6Track; TEdit *chn6ResEdit; TComboBox *chnl6MultBox; TEdit *ChEdit6; TGroupBox *GroupBox7; TLabel *Label1; TLabel *Label2; TLabel *Label3; TLabel *chnl7MaxRpmLbl; TLabel *Label5; TTrackBar *chnl7Track; TEdit *chn7ResEdit; TComboBox *chnl7MultBox; TEdit *ChEdit7; TPaintBox *chnl1PaintBox; TPaintBox *chnl2PaintBox; TPaintBox *chnl3PaintBox; TPaintBox *chnl4PaintBox; TPaintBox *chnl5PaintBox; TPaintBox *chnl6PaintBox; TPaintBox *chnl7PaintBox; TLabel *Label4; TLabel *chnl1Max; TLabel *chnl1Rpm; TProgressBar *chnl1RpmBar; TLabel *Label8; TLabel *chnl2Max; TLabel *chnl2Rpm; TProgressBar *chnl2RpmBar; TLabel *Label44; TLabel *chnl3Max; TLabel *chnl3Rpm; TProgressBar *chnl3RpmBar; TLabel *Label47; TLabel *chnl4Max; TLabel *chnl4Rpm; TProgressBar *chnl4RpmBar; TLabel *Label50; TLabel *chnl5Max; TLabel *chnl5Rpm; TProgressBar *chnl5RpmBar; TLabel *Label53; TLabel *chnl6Max; TLabel *chnl6Rpm; TProgressBar *chnl6RpmBar; TLabel *Label56; TLabel *chnl7Max; TLabel *chnl7Rpm; TProgressBar *chnl7RpmBar; TTimer *resetTimer; TButton *setBtn0; TButton *RestBtn1; TButton *setBtn1; TButton *setBtn2; TButton *setBtn3; TButton *setBtn4; TButton *setBtn5; TButton *setBtn6; TButton *setBtn7; TButton *RestBtn2; TButton *RestBtn3; TButton *RestBtn7; TButton *RestBtn6; TButton *RestBtn5; TButton *RestBtn4; TButton *RestBtn0; TLabel *Label6; TLabel *Label7; TLabel *Label12; TLabel *Label41; TLabel *Label43; TLabel *Label45; TLabel *Label46; TLabel *Label48; void __fastcall WriteButtonClick(TObject *Sender); void __fastcall BaseEditChange(TObject *Sender); void __fastcall GoButtonClick(TObject *Sender); void __fastcall StopButtonClick(TObject *Sender); void __fastcall TheTimeTimer(TObject *Sender); void __fastcall InitButtonClick(TObject *Sender); void __fastcall FlagButtonClick(TObject *Sender); void __fastcall PaintBoxPaint(TObject *Sender); void __fastcall chnlTrackChange(TObject *Sender); void __fastcall chnlMultBoxChange(TObject *Sender); void __fastcall RestBtnClick(TObject *Sender); void __fastcall resetTimerTimer(TObject *Sender); void __fastcall setBtnClick(TObject *Sender); void __fastcall ChEditKeyDown(TObject *Sender, WORD &Key, TShiftState Shift); private: // User declarations public: // User declarations __fastcall TForm1(TComponent* Owner); int channelMults[8]; int channelControlBytes[8]; int channelReads[8], channelReadsPrev[8]; int channelResolutions[8]; int __fastcall setChannelMult(int channel, int mult); }; //--------------------------------------------------------------------------- extern PACKAGE TForm1 *Form1; //--------------------------------------------------------------------------- #endif