/******************************************************************************
 *                                                                         
 *               Copyright 2004-2006 Agilent Technologies
 *               All rights reserved.
 *
 *****************************************************************************/
 
#include "stdafx.h"
#include "CoAgilent34980A.h"

/// <summary>
/// Configures the FrequencyMax and FrequencyMin properties for DMMs that take AC
/// voltage or AC current measurements.
/// </summary>
/// <remarks>
/// 
/// </remarks>
/// <returns>
///	
/// </returns>
/// <param name="MinFreq">
///	The minimum frequency component of the input signal for AC measurements.
/// </param>
/// <param name="MaxFreq">
///	The maximum frequency component of the input signal for AC measurements.
/// </param>
HRESULT Agilent34980A::IIviDmmAC_ConfigureBandwidth(double MinFreq, double MaxFreq)
{
	HRESULT hr = S_OK;

	hr = InstrPrintCommand();

	return hr;
}

/// <summary>
///	The maximum frequency component of the input signal for AC measurements.  The
/// value of this property affects instrument behavior only when the Function property
/// is set to an AC voltage or AC current measurement.
/// </summary>
/// <remarks>
///	
/// </remarks>
HRESULT Agilent34980A::IIviDmmAC_get_FrequencyMax(double* Val)
{
	HRESULT hr = S_OK;

	//No SCPI;  Hardware = 300 KHz
	*Val = 300000.0;
	
	return hr;
}

/// <summary>
///	The maximum frequency component of the input signal for AC measurements.  The
/// value of this property affects instrument behavior only when the Function property
/// is set to an AC voltage or AC current measurement.
/// </summary>
/// <remarks>
///	
/// </remarks>
HRESULT Agilent34980A::IIviDmmAC_put_FrequencyMax(double Val)
{
	HRESULT hr = S_OK;

	/*
	No SCPI;  Hardware = 300 KHz
	*/
	return hr;
}

/// <summary>
///	The minimum frequency component of the input signal for AC measurements.  The
/// value of this property affects instrument behavior only when the Function property
/// is set to an AC voltage or AC current measurement.
/// </summary>
/// <remarks>
///	
/// </remarks>
HRESULT Agilent34980A::IIviDmmAC_get_FrequencyMin(double* Val)
{
	HRESULT hr = S_OK;

	//No SCPI;  Hardware = 3 Hz
	*Val = 3.0;
	
	return hr;
}

/// <summary>
///	The minimum frequency component of the input signal for AC measurements.  The
/// value of this property affects instrument behavior only when the Function property
/// is set to an AC voltage or AC current measurement.
/// </summary>
/// <remarks>
///	
/// </remarks>
HRESULT Agilent34980A::IIviDmmAC_put_FrequencyMin(double Val)
{
	HRESULT hr = S_OK;

	/*
	No SCPI;  Hardware = 3 Hz
	*/
	
	return hr;
}


