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.
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
// Output_9112.h: interface for the COutput_9112 class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_OUTPUT_9112_H__08F5DF56_EE0A_4FC2_AD88_D65B44AD9D88__INCLUDED_)
|
|
#define AFX_OUTPUT_9112_H__08F5DF56_EE0A_4FC2_AD88_D65B44AD9D88__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "OutputBase.h"
|
|
|
|
// NOTE: the Channel/Point number for analog output is 0 and 1 only
|
|
// However, MIT internal setting is 16 and 17.
|
|
class COutput_9112 : public COutputBase
|
|
{
|
|
public:
|
|
COutput_9112(const COutputSetting &Setting);
|
|
virtual ~COutput_9112();
|
|
|
|
// must call this method first before setting any output voltage
|
|
// dRange = -10 for 0-10V output
|
|
// dRange = 10 for -10-0V output
|
|
// method to set analog output range
|
|
// BOOL SetVoltageRange(double dRange = -10);
|
|
|
|
// dRange = -10 for 0-10V output
|
|
// dRange = 10 for -10-0V output
|
|
// method to set analog output voltage
|
|
BOOL SetVoltage(double dVoltage, double dRange = -10);
|
|
|
|
// method to set output to OFF
|
|
BOOL Off();
|
|
|
|
// method to set output to ON
|
|
BOOL On();
|
|
};
|
|
|
|
#endif // !defined(AFX_OUTPUT_9112_H__08F5DF56_EE0A_4FC2_AD88_D65B44AD9D88__INCLUDED_)
|