Fix a bug of ChannelNum

This commit is contained in:
testrong
2025-03-27 16:27:45 +08:00
parent 9ddb8d4cc5
commit a120c5e7b9
6 changed files with 5 additions and 2 deletions
Binary file not shown.
+5 -2
View File
@@ -1685,6 +1685,7 @@ namespace Testrong.User.Program
double rload = GetRloadValue(dmm, 2000, 5); double rload = GetRloadValue(dmm, 2000, 5);
string filetime = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss"); string filetime = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss");
#region The Test #region The Test
for (int loopk = 0; loopk < 256; loopk++) for (int loopk = 0; loopk < 256; loopk++)
@@ -1710,6 +1711,7 @@ namespace Testrong.User.Program
{ {
DelayHelper.Sleep(20); DelayHelper.Sleep(20);
} }
#region Actual Test #region Actual Test
for (int p = 0; p < SampliCount; p++) for (int p = 0; p < SampliCount; p++)
{ {
@@ -1731,7 +1733,7 @@ namespace Testrong.User.Program
ForceVoltage += VoltageStep; ForceVoltage += VoltageStep;
} }
#endregion #endregion
PPMU.Force(PmuPinName, 0, PpmuMode.FVMV, PpmuIRange._2mA, VRange.Normal); PPMU.Force(PmuPinName, 0, PpmuMode.FVMV, PpmuIRange._2mA, VRange.Normal);
#region File Writing #region File Writing
@@ -1774,6 +1776,7 @@ namespace Testrong.User.Program
#endregion #endregion
swdata.Flush(); swdata.Flush();
swdata.Close(); swdata.Close();
Thread.Sleep(1000); Thread.Sleep(1000);
@@ -1845,7 +1848,7 @@ namespace Testrong.User.Program
ChannelFormat = Convert.ToString(ChannelNum); ChannelFormat = Convert.ToString(ChannelNum);
} }
Pmur.WriteLine($"ch {ChannelFormat} : {res:F3}"); Pmur.WriteLine($"ch {ChannelFormat} : {res:F3}");
rInt[ChannelNum] = res; //Put R_Int into array rInt[ChannelNum - 1] = res; //Put R_Int into array
datassingle.Clear(); datassingle.Clear();
singlefile.Close(); singlefile.Close();
} }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.