//--------------------------------------------------------------------------- #ifndef Sample1uH #define Sample1uH //--------------------------------------------------------------------------- #include #include #include #include #include #include //--------------------------------------------------------------------------- class TSampleForm : public TForm { __published: // IDE-managed Components TLabel *TitleLabel; TBitBtn *ExitBtn; TLabel *CardSelectLabel; TComboBox *CardCombo; TGroupBox *StatusGroupBox; TMemo *StatusMemo; TEdit *VoltsEdit0; TEdit *VoltsEdit1; TEdit *VoltsEdit2; TEdit *VoltsEdit3; TLabel *ChannelLabel0; TLabel *ChannelLabel1; TLabel *ChannelLabel2; TLabel *ChannelLabel3; TLabel *ChannelLabel7; TLabel *ChannelLabel4; TLabel *ChannelLabel5; TLabel *ChannelLabel6; TEdit *VoltsEdit7; TEdit *VoltsEdit6; TEdit *VoltsEdit5; TEdit *VoltsEdit4; TEdit *VoltsEditC; TLabel *ChannelLabel8; TLabel *ChannelLabel9; TLabel *ChannelLabelA; TLabel *ChannelLabelB; TEdit *VoltsEditB; TEdit *VoltsEditA; TEdit *VoltsEdit9; TEdit *VoltsEdit8; TLabel *ChannelLabelC; TLabel *ChannelLabelD; TLabel *ChannelLabelE; TLabel *ChannelLabelF; TEdit *VoltsEditF; TEdit *VoltsEditE; TEdit *VoltsEditD; TComboBox *ChannelsCombo; TLabel *ChannelSelectLabel; TBitBtn *GetDataBtn; TEdit *CountsEdit0; TEdit *CountsEdit1; TEdit *CountsEdit2; TEdit *CountsEdit3; TEdit *CountsEdit7; TEdit *CountsEdit6; TEdit *CountsEdit5; TEdit *CountsEdit4; TEdit *CountsEdit8; TEdit *CountsEdit9; TEdit *CountsEditA; TEdit *CountsEditB; TEdit *CountsEditC; TEdit *CountsEditD; TEdit *CountsEditE; TEdit *CountsEditF; TLabel *CountsLabel4; TLabel *VoltsLabel4; TLabel *VoltsLabel2; TLabel *CountsLabel2; TLabel *VoltsLabel3; TLabel *CountsLabel3; TLabel *VoltsLabel1; TLabel *CountsLabel1; TTimer *TestTimer; void __fastcall ExitBtnClick(TObject *Sender); void __fastcall GetDataBtnClick(TObject *Sender); void __fastcall TestTimerTimer(TObject *Sender); void __fastcall FormCreate(TObject *Sender); private: // User declarations public: // User declarations __fastcall TSampleForm(TComponent* Owner); void __fastcall GetCardInfo(void); void __fastcall Fifo(unsigned long BASE); void __fastcall NoFifo(unsigned long BASE); void __fastcall SetChannel(unsigned long BASE, unsigned char channel); void __fastcall StartConversion(unsigned long BASE); unsigned short __fastcall WaitForEOC(unsigned long BASE); short __fastcall RetrieveADConversion(unsigned long BASE); void __fastcall CheckFifo(unsigned long BASE); void __fastcall EnableCounters(unsigned long BASE); void __fastcall DisableCounters(unsigned long BASE); void __fastcall ResetFifos(unsigned long BASE); void __fastcall SetFifoChannels(unsigned long BASE); }; //--------------------------------------------------------------------------- extern PACKAGE TSampleForm *SampleForm; //--------------------------------------------------------------------------- #endif