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.
42 lines
1.3 KiB
C++
42 lines
1.3 KiB
C++
// OutputController_9222.h: interface for the COutputController_9222 class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_OUTPUTCONTROLLER_9222_H__39C52576_F9ED_466C_B411_0F141109A876__INCLUDED_)
|
|
#define AFX_OUTPUTCONTROLLER_9222_H__39C52576_F9ED_466C_B411_0F141109A876__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "OutputControllerBase.h"
|
|
|
|
// NOTE: the Channel/Point number for analog output is 0 and 1 only
|
|
// However, MIT internal setting is 16 and 17.
|
|
class COutputController_9222 : public COutputControllerBase
|
|
{
|
|
public:
|
|
COutputController_9222();
|
|
virtual ~COutputController_9222();
|
|
|
|
// method to initialise the input controller card
|
|
BOOL Init(int nCardType, CArray<stCard, stCard> &astCard);
|
|
|
|
// method to close the input controller card
|
|
void Close(int nCardType);
|
|
|
|
|
|
// dVoltage = -10V to +10V
|
|
// method to set analog voltage
|
|
// Parameter dRange is not in used, just supply dummy value
|
|
BOOL SetVoltage(const COutputSetting &OutputSetting, double dVoltage, double dRange);
|
|
|
|
// method to turn output OFF
|
|
BOOL Off(const COutputSetting &OutputSetting);
|
|
|
|
// method to turn output ON
|
|
BOOL On(const COutputSetting &OutputSetting);
|
|
};
|
|
|
|
#endif // !defined(AFX_OUTPUTCONTROLLER_9222_H__39C52576_F9ED_466C_B411_0F141109A876__INCLUDED_)
|