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/InputController_7856.h

44 lines
1.4 KiB
C++

// InputController_7856.h: interface for the CInputController_7856 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_INPUTCONTROLLER_7856_H__D937EBC5_25E7_4A81_9CAF_18EBCF8F49F8__INCLUDED_)
#define AFX_INPUTCONTROLLER_7856_H__D937EBC5_25E7_4A81_9CAF_18EBCF8F49F8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "InputControllerBase.h"
class CInputController_7856 : public CInputControllerBase
{
public:
CInputController_7856();
virtual ~CInputController_7856();
// 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);
// method to query if the input is OFF
BOOL IsOff(const CInputSetting &InputSetting);
// method to query if the input is ON
BOOL IsOn(const CInputSetting &InputSetting);
// method to query for current analog voltage of analog output
// nRange = 0 -> +/-10V
// nRange = 1 -> +/-5V
// nRange = 2 -> +/-2.5V
// nRange = 3 -> +/-1.25V
BOOL GetVoltage(const CInputSetting &InputSetting, double &dVoltage, int nRange);
private:
BOOL GetState(const CInputSetting &InputSetting, bool bGetOnState);
};
#endif // !defined(AFX_INPUTCONTROLLER_7856_H__D937EBC5_25E7_4A81_9CAF_18EBCF8F49F8__INCLUDED_)