using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace baseInstrument.instruments
{
class M8020A : BERT
{
private string m_PG_channel = "'M1.DataOut1'";
private string m_ED_channel = "'M1.DataIn1'";
private string m_system = "'M1.ClkGen'";
double m_ED_clk = 16.0e9;
double m_PG_clk = 16.0e9;
double m_prevBER = 0.0;
double m_prevBitCount = 0.0;
double m_prevErrorCount = 0.0;
double m_prevTimeStamp = 0.0;
public M8020A(string resourceName,
string module = "M1",
string channel = "1") : base(resourceName)
{
if (module.IndexOf("MUX") == -1)
{
m_system = "'" + module + ".ClkGen'";
m_PG_channel = "'" + module + ".DataOut" + channel + "'";
m_ED_channel = "'" + module + ".DataIn" + channel + "'";
}
else
{
m_system = "'M1.ClkGen'";
m_PG_channel = "'MUX'";
}
}