Skip to content

Commit 2fec29d

Browse files
committed
Allow bench calibration to use branch fine gains for more steps
1 parent 5788fdf commit 2fec29d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/TS.NET.Sequences/Sequences/BenchCalibrationSequence.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ private void AddSteps(Func<Dialog, DialogResult> uiDialog)
2525
new LoadUserCalFromDeviceFallbackToFileStep("Load calibration from device/file", Variables),
2626
new WarmupStep("Warmup device", Variables) { Skip = false, AllowSkip = true },
2727

28+
new AdcBranchGainsStep("Channel 1 - ADC branch gains", 0, 1_000_000_000, Variables),
29+
2830
new TrimOffsetDacGainStep("Channel 1 - measure trim offset DAC scale - HG L0", 0, 0, Variables) { IgnoreError = true, Timeout = TimeSpan.FromSeconds(30), MaxRetries = 3 },
2931
new TrimOffsetDacGainStep("Channel 1 - measure trim offset DAC scale - HG L1", 0, 1, Variables) { IgnoreError = true, Timeout = TimeSpan.FromSeconds(30), MaxRetries = 3 },
3032
new TrimOffsetDacGainStep("Channel 1 - measure trim offset DAC scale - HG L2", 0, 2, Variables) { IgnoreError = true, Timeout = TimeSpan.FromSeconds(30), MaxRetries = 3 },
@@ -73,8 +75,6 @@ private void AddSteps(Func<Dialog, DialogResult> uiDialog)
7375

7476
new FindSigGenZeroStep("Channel 1 - find signal generator zero", 0, Variables),
7577

76-
new AdcBranchGainsStep("Channel 1 - ADC branch gains", 0, 1_000_000_000, Variables),
77-
7878
new BufferInputVppStep("Channel 1 - measure buffer input Vpp - HG L0", 0, 0, Variables) { IgnoreError = true, Timeout = TimeSpan.FromSeconds(30), MaxRetries = 3 },
7979
new BufferInputVppStep("Channel 1 - measure buffer input Vpp - HG L1", 0, 1, Variables) { IgnoreError = true, Timeout = TimeSpan.FromSeconds(30), MaxRetries = 3 },
8080
new BufferInputVppStep("Channel 1 - measure buffer input Vpp - HG L2", 0, 2, Variables) { IgnoreError = true, Timeout = TimeSpan.FromSeconds(30), MaxRetries = 3 },

source/TS.NET.Sequences/Steps/AdcBranchGainsStep.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ public AdcBranchGainsStep(string name, int channelIndex, uint rateHz, BenchCalib
9999
]
100100
});
101101

102-
Instruments.Instance.SetThunderscopeAdcCalibration([0, 0, 0, 0, 0, 0, 0, 0]);
103-
102+
//Instruments.Instance.SetThunderscopeAdcCalibration([0, 0, 0, 0, 0, 0, 0, 0]);
103+
Instruments.Instance.SetSdgChannel(-1);
104104
Logger.Instance.Log(LogLevel.Information, Index, Status.Done);
105105
//Instruments.Instance.SetSdgDc(channelIndex);
106106
return Status.Done;

0 commit comments

Comments
 (0)