Keithley Multimeter supports simulation mode.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user