Separate addresses Q2CorrFactorsAddrRL (0x1878) and Q2CorrFactorsAddrLR (0x1879), ver. 2.18.1031

This commit is contained in:
Milan Hanajik 2018-10-17 11:31:28 +02:00
parent 205df83c1c
commit c23630a980
2 changed files with 10 additions and 9 deletions

View File

@ -47,6 +47,11 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
public partial class iPerlCommunicationForm : Form, GenericDevices.IHasCompleted
{
const int Hz2CorrFactorsAddr = 0x1875; /// Used by Reset2HzCorrection(...) and Write2HzCorrection(...)
const int Q2CorrFactorsAddr = 0x1878; /// Used by ResetQ2Correction(...) and WriteQ2Correction(...)
const int Q2CorrFactorsAddrRL = 0x1878;
const int Q2CorrFactorsAddrLR = 0x1879;
private static readonly ILog log = LogManager.GetLogger(typeof(iPerlCommunicationForm));
protected static readonly ILog rfidDataLogger = LogManager.GetLogger("RfidData");
@ -1614,11 +1619,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
}
const int Hz2CorrFactorsAddr = 0x1875; /// Used by Reset2HzCorrection(...) and Write2HzCorrection(...)
const int Q2CorrFactorsAddr = 0x1878; /// Used by ResetQ2Correction(...) and WriteQ2Correction(...)
/// <summary>
/// <summary>
/// Reset both Q2 correction factors in the memory to 0.
/// Read them back to verify factors were written correctly.
/// </summary>
@ -1887,7 +1888,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
byte[] wrData = new byte[1] { q2CorrRFlow };
for (int j = 0; j < cfg.MaxCommRetries; j++)
{
if (0 == WriteRequestPort(threadId, ihead, MessageID.MetrologyMemory, Q2CorrFactorsAddr, wrData.Length, wrData, cfg.CommTimeout))
if (0 == WriteRequestPort(threadId, ihead, MessageID.MetrologyMemory, Q2CorrFactorsAddrRL, wrData.Length, wrData, cfg.CommTimeout))
{
error = CommErr.None;
break;
@ -1900,7 +1901,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
byte[] wrData = new byte[1] { q2CorrLFlow };
for (int j = 0; j < cfg.MaxCommRetries; j++)
{
if (0 == WriteRequestPort(threadId, ihead, MessageID.MetrologyMemory, Q2CorrFactorsAddr + 1, wrData.Length, wrData, cfg.CommTimeout))
if (0 == WriteRequestPort(threadId, ihead, MessageID.MetrologyMemory, Q2CorrFactorsAddrLR, wrData.Length, wrData, cfg.CommTimeout))
{
error = CommErr.None;
break;

View File

@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.18.1030.0")]
[assembly: AssemblyFileVersion("2.18.1030.0")]
[assembly: AssemblyVersion("2.18.1031.0")]
[assembly: AssemblyFileVersion("2.18.1031.0")]