Fix a bug of ChannelNum
This commit is contained in:
@@ -1685,6 +1685,7 @@ namespace Testrong.User.Program
|
||||
double rload = GetRloadValue(dmm, 2000, 5);
|
||||
string filetime = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss");
|
||||
|
||||
|
||||
#region The Test
|
||||
|
||||
for (int loopk = 0; loopk < 256; loopk++)
|
||||
@@ -1710,6 +1711,7 @@ namespace Testrong.User.Program
|
||||
{
|
||||
DelayHelper.Sleep(20);
|
||||
}
|
||||
|
||||
#region Actual Test
|
||||
for (int p = 0; p < SampliCount; p++)
|
||||
{
|
||||
@@ -1731,7 +1733,7 @@ namespace Testrong.User.Program
|
||||
ForceVoltage += VoltageStep;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
PPMU.Force(PmuPinName, 0, PpmuMode.FVMV, PpmuIRange._2mA, VRange.Normal);
|
||||
|
||||
#region File Writing
|
||||
@@ -1774,6 +1776,7 @@ namespace Testrong.User.Program
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
swdata.Flush();
|
||||
swdata.Close();
|
||||
Thread.Sleep(1000);
|
||||
@@ -1845,7 +1848,7 @@ namespace Testrong.User.Program
|
||||
ChannelFormat = Convert.ToString(ChannelNum);
|
||||
}
|
||||
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();
|
||||
singlefile.Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user