You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
// OutputControllerBase.h: interface for the COutputControllerBase class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_OUTPUTCONTROLLERBASE_H__4CB4F3BE_2733_4600_8A61_3B14634363A5__INCLUDED_)
|
|
#define AFX_OUTPUTCONTROLLERBASE_H__4CB4F3BE_2733_4600_8A61_3B14634363A5__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "HardwareIni.h"
|
|
|
|
class COutputSetting;
|
|
|
|
class COutputControllerBase : public CCard
|
|
{
|
|
public:
|
|
COutputControllerBase(CString csMutexName);
|
|
virtual ~COutputControllerBase();
|
|
|
|
// virtual method to initialise the input controller card
|
|
virtual BOOL Init(int nCardType, CArray<stCard, stCard> &astCard);
|
|
|
|
// virtual method to close the input controller card
|
|
virtual void Close(int nCardType);
|
|
|
|
// virtual method to set analog voltage
|
|
virtual BOOL SetVoltage(const COutputSetting &OutputSetting, double dVoltage, double dRange);
|
|
|
|
// virtual method to turn output OFF
|
|
virtual BOOL Off(const COutputSetting &OutputSetting);
|
|
|
|
// virtual method to turn output ON
|
|
virtual BOOL On(const COutputSetting &OutputSetting);
|
|
|
|
protected:
|
|
CMutex m_mutexOutput;
|
|
|
|
CHardwareIni m_iniHardware;
|
|
};
|
|
|
|
#endif // !defined(AFX_OUTPUTCONTROLLERBASE_H__4CB4F3BE_2733_4600_8A61_3B14634363A5__INCLUDED_)
|