49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
///
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Keithley.TempMeter
|
|
{
|
|
public class TempMeterCfg : ComponentCfgBase, IChildComponentCfg
|
|
{
|
|
public IComponentCfgCtrl GetControl() { return new TempMeterCfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public int Channel; /// 1..5
|
|
public double R001C;
|
|
public double a7;
|
|
public double b7;
|
|
public double c7;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
TempMeterCfg()
|
|
{
|
|
}
|
|
|
|
public TempMeterCfg(string name, IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Name = name;
|
|
this.Factory = factory;
|
|
ParentName = "Keithley.Multimeter_2010_RS232";
|
|
Channel = 1;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Parent={1}, Channel={2}, R0={3}, a7={4}, b7={5}, c7={6}",
|
|
Name,
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
|
Channel,
|
|
R001C, a7, b7, c7);
|
|
}
|
|
}
|
|
}
|