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.
+4 -1
View File
@@ -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++)
{
@@ -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();
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.