iPerlCommunication cleanup, ver. 2.18.1144
This commit is contained in:
@@ -927,7 +927,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
|||||||
{
|
{
|
||||||
/// Switch to Active mode in order to change TestModeConfig
|
/// Switch to Active mode in order to change TestModeConfig
|
||||||
error = CommErr.CmdActive;
|
error = CommErr.CmdActive;
|
||||||
byte[] cmd = new byte[1] { (byte)6 };
|
byte[] cmd = new byte[1] { (byte)Command.SetActiveMode };
|
||||||
for (int j = 0; j < cfg.MaxCommRetries; j++)
|
for (int j = 0; j < cfg.MaxCommRetries; j++)
|
||||||
{
|
{
|
||||||
if (0 == WriteRequestPort(threadId, ihead, MessageID.Command, 0, 1, cmd, cfg.CommTimeout)) { error = CommErr.None; break; }
|
if (0 == WriteRequestPort(threadId, ihead, MessageID.Command, 0, 1, cmd, cfg.CommTimeout)) { error = CommErr.None; break; }
|
||||||
@@ -958,7 +958,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
|||||||
{
|
{
|
||||||
/// Switch to test mode
|
/// Switch to test mode
|
||||||
error = CommErr.CmdTest;
|
error = CommErr.CmdTest;
|
||||||
byte[] cmd = new byte[1] { (byte)7 };
|
byte[] cmd = new byte[1] { (byte)Command.SetTestMode };
|
||||||
for (int j = 0; j < cfg.MaxCommRetries; j++)
|
for (int j = 0; j < cfg.MaxCommRetries; j++)
|
||||||
{
|
{
|
||||||
if (0 == WriteRequestPort(threadId, ihead, MessageID.Command, 0, 1, cmd, cfg.CommTimeout)) { error = CommErr.None; break; }
|
if (0 == WriteRequestPort(threadId, ihead, MessageID.Command, 0, 1, cmd, cfg.CommTimeout)) { error = CommErr.None; break; }
|
||||||
@@ -1008,7 +1008,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
|||||||
CommErr error = CommErr.CmdActive;
|
CommErr error = CommErr.CmdActive;
|
||||||
|
|
||||||
/// Switch to active mode
|
/// Switch to active mode
|
||||||
byte[] cmd = new byte[1] { (byte)6 };
|
byte[] cmd = new byte[1] { (byte)Command.SetActiveMode };
|
||||||
for (int j = 0; j < cfg.MaxCommRetries; j++)
|
for (int j = 0; j < cfg.MaxCommRetries; j++)
|
||||||
{
|
{
|
||||||
if (0 == WriteRequestPort(threadId, ihead, MessageID.Command, 0, 1, cmd, cfg.CommTimeout))
|
if (0 == WriteRequestPort(threadId, ihead, MessageID.Command, 0, 1, cmd, cfg.CommTimeout))
|
||||||
|
|||||||
@@ -84,6 +84,12 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
|||||||
Count /// Number of meter states
|
Count /// Number of meter states
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum Command : byte
|
||||||
|
{
|
||||||
|
SetActiveMode = 6,
|
||||||
|
SetTestMode = 7,
|
||||||
|
}
|
||||||
|
|
||||||
public enum FlowState : byte
|
public enum FlowState : byte
|
||||||
{
|
{
|
||||||
No = 0,
|
No = 0,
|
||||||
|
|||||||
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("2.18.1143.0")]
|
[assembly: AssemblyVersion("2.18.1144.0")]
|
||||||
[assembly: AssemblyFileVersion("2.18.1143.0")]
|
[assembly: AssemblyFileVersion("2.18.1144.0")]
|
||||||
|
|||||||
Reference in New Issue
Block a user