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.
mitlib.pub/MITLIB/IODll/OutputController_9112.h

43 lines
1.3 KiB
C++

// OutputController_9112.h: interface for the COutputController_9112 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OUTPUTCONTROLLER_9112_H__B0D2C450_1CE3_4505_858A_C9E4F0C7A746__INCLUDED_)
#define AFX_OUTPUTCONTROLLER_9112_H__B0D2C450_1CE3_4505_858A_C9E4F0C7A746__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_9112 : public COutputControllerBase
{
public:
COutputController_9112();
virtual ~COutputController_9112();
// 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);
// dRange = -10 for 0-10V output
// dRange = 10 for -10-0V output
// method to set analog voltage
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_9112_H__B0D2C450_1CE3_4505_858A_C9E4F0C7A746__INCLUDED_)