
Keysight M8070A Programming Guide
79
Programming Examples
3
M8020A BER Example
private double m_prevAccBER_M8020 = 0.0;
private double m_prevAccBitCount_M8020 = 0.0;
private double m_prevAccErrorCount_M8020 = 0.0;
public override List<string> startBERAcc()
// M8020A
{
List<string> errorStr = new List<string>();
errorStr = this.ErrorQ();
return errorStr;
}
public override List<string> stopBERAcc()
// M8020A - error counters can't be stopped yet
{
List<string> errorStr = new List<string>();
errorStr = this.ErrorQ();
return errorStr;
}
public override List<string> resetBERCounter()
{
List<string> errorStr = new List<string>();
List<double> bitResults = new List<double>();
List<double> bitCounter = new List<double>();
bitResults = this.getErrorCounter();
errorStr = this.ErrorQ();
m_prevAccBitCount_M8020 = bitResults[0];
m_prevAccErrorCount_M8020 = bitResults[1];
m_prevAccBER_M8020 = m_prevAccErrorCount_M8020 / m_prevAccBitCount_M8020;
bitCounter = this.getErrorCounter();
m_prevBitCount = bitCounter[0];
m_prevErrorCount = bitCounter[1];
m_prevTimeStamp = bitCounter[2];
return errorStr;
}