Keithley Multimeter supports simulation mode.

This commit is contained in:
Milan Hanajik
2016-10-11 09:09:04 +02:00
parent 5f21b5ab26
commit 2e4c59d3b5
@@ -200,6 +200,8 @@ namespace TBF.BenchControl.Keithley.Multimeter_2010_RS232
/// <summary>Run this device</summary>
public void RunDeviceBefore()
{
if (multimeterCfg.DebugLevel == DebugMode.Simulate) return;
receivedData.Append(serialPort.ReadExisting());
if (scanState == ScanState.Read_Receive)
@@ -242,6 +244,8 @@ namespace TBF.BenchControl.Keithley.Multimeter_2010_RS232
/// <summary>Run this device</summary>
public void RunDeviceAfter()
{
if (multimeterCfg.DebugLevel == DebugMode.Simulate) return;
switch (scanState)
{
case ScanState.Start_Reset:
@@ -291,6 +295,8 @@ namespace TBF.BenchControl.Keithley.Multimeter_2010_RS232
/// <summary>Stop this device</summary>
public void StopDevice()
{
if (multimeterCfg.DebugLevel == DebugMode.Simulate) return;
serialPort.Close();
}
}