00001 /************************************************************************************************/ 00002 /*! \file PhysicalRelay.h 00003 * \brief The device class provides the physical interface for the devices 00004 * \author $Author: jayhawk_hokie $ 00005 * \version $Revision: 1.1 $ 00006 * \date $Date: 2006/07/05 21:04:21 $ 00007 ************************************************************************************************/ 00008 /*! 00009 * 00010 ************************************************************************************************/ 00011 00012 #ifndef __SSSL_PHYSICALRELAY_H_ 00013 #define __SSSL_PHYSICALRELAY_H_ 00014 00015 #include <Base/Actuator.h> 00016 #include <Hardware/DAQCard.h> 00017 #include <matrix/Matrix.h> 00018 #include <sys/time.h> 00019 00020 00021 using namespace std; 00022 00023 class PhysicalRelay 00024 { 00025 public: 00026 // Constructors/Deconstructors 00027 /*! Default */ 00028 PhysicalRelay(); 00029 00030 /*! Deconstructor */ 00031 ~PhysicalRelay(); 00032 // 00033 00034 /*! Open a channel (turn somethiing on by sending a signal to a bank) */ 00035 void PowerOn(BYTE signal, int bank); 00036 00037 /*! Turn off the device, defined in .cpp to turn off banks 0 and 1 */ 00038 void PowerOff(); 00039 00040 // Mutators 00041 void Initialize(); 00042 protected: 00043 00044 private: 00045 /*!Pointer to an instance of the DAQ card */ 00046 DAQCard* m_DAQCard; 00047 00048 }; 00049 00050 #endif 00051 // Do not change the comments below - they will be added automatically by CVS 00052 /***************************************************************************** 00053 * $Log: PhysicalRelay.h,v $ 00054 * Revision 1.1 2006/07/05 21:04:21 jayhawk_hokie 00055 * Initial submission for power management of Whorl's. 00056 * 00057 * 00058 * 00059 ******************************************************************************/ 00060