Skip to content

Commit cc80f0b

Browse files
committed
Update BodePlotStep.cs
1 parent 0671bbd commit cc80f0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public BodePlotStep(string name, int channelIndex, int configIndex, double ampli
7373
Logger.Instance.Log(LogLevel.Information, Index, Status.Running, $"Ch{channelIndex + 1}, Cfg {configIndex}: Freq={frequencyHz / 1e6:F3}MHz, Scale={normalised:F4}");
7474
}
7575

76-
var csv = bodePoints.Select(p => $"{p.Key},{p.Value}");//,{20.0 * Math.Log10(p.Value)}");
77-
var csvString = "Frequency,Scale\n" + string.Join("\n", csv);
76+
var csv = bodePoints.Select(p => $"{p.Key},{p.Value:F4},{20.0 * Math.Log10(p.Value):F4}");
77+
var csvString = "Frequency,Scale,dB\n" + string.Join("\n", csv);
7878
File.WriteAllText($"config {configIndex} - {amplitude} Vpp - attenuator {attenuator}.csv", csvString);
7979

8080
var metadata =

0 commit comments

Comments
 (0)