Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
77637e6
timing addition
Nov 24, 2025
b256d45
cargo fmt
Nov 24, 2025
4033cf6
tick difference
Nov 24, 2025
3c75a07
ng lint
Nov 24, 2025
488cd07
Merge branch 'main' into task/TSP-1343-Timing-requirements
Nov 24, 2025
5f1fccf
working with nplc/aperture
Nov 25, 2025
6413295
line_frequency
Nov 25, 2025
de9855f
setting line_frequency
Nov 26, 2025
1c66209
global parameters
Nov 26, 2025
8692e45
line_frequency and overhead done
Nov 27, 2025
d9a6dc5
adding aperture in psu timing
Nov 27, 2025
67ec559
cargo fmt
Nov 27, 2025
d376e50
psdu timing update
Nov 27, 2025
767e651
psu and smu changes
Dec 1, 2025
908e59b
Merge branch 'main' into task/TSP-1343-Timing-requirements
Dec 1, 2025
9251fef
sweep points addition
Dec 1, 2025
826fe98
rate changes
Dec 1, 2025
aea5862
plot step changes
Dec 1, 2025
967877e
ng lint
Dec 1, 2025
8c6c41e
commented code removed
Dec 1, 2025
1e01daf
tick difference changes
Dec 2, 2025
0b96f37
working plot-step and plot-bias
Dec 2, 2025
3390e15
plot-step working for all cases
Dec 2, 2025
c38858f
plot-sweep changes
Dec 2, 2025
a131302
ng lint
Dec 2, 2025
b29ce19
displaying values in engineering notations and
Dec 4, 2025
f1f96aa
Merge branch 'main' into task/TSP-1343-Timing-requirements
Dec 4, 2025
07ada75
missed a zero in fast mode
Dec 4, 2025
14a0611
Merge branch 'main' into task/TSP-1343-Timing-requirements
Dec 8, 2025
b9d2015
ticksuffix changes
Dec 8, 2025
3909cd0
removed duplicate ticksuffix
Dec 8, 2025
312b6ff
timing and plot-sweep changes
Dec 9, 2025
390e27d
Merge branch 'main' into task/TSP-1343-Timing-requirements
Dec 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,31 @@ export class PlotSweepComponent
const targetLength = this.plotWidth / this.numSteps;
let processedXData: number[] = [];
let processedYData: number[] = [];
let processedSweepValues = [...sweepValues];

// Interpolate numPoints between each consecutive value in plotDataX
if (this.plotDataX && this.plotDataX.length > 1 && this.numPoints?.value) {
const numPoints = this.numPoints.value;
if(this.stepToSweepDelay.value > 0 && this.totalTimePerStep > 0 ){
processedSweepValues = [0, ...sweepValues];
}

if (this.plotDataX && this.plotDataX.length > 1) {
const hasDelay = this.stepToSweepDelay.value > 0;

for (let i = 0; i < this.plotDataX.length - 1; i++) {
const x0 = this.plotDataX[i];
const x1 = this.plotDataX[i + 1];
for (let j = 0; j < numPoints; j++) {
processedXData.push(x0 + (x1 - x0) * (j / numPoints));
const stepStart = this.plotDataX[i];
const stepEnd = this.plotDataX[i + 1];

if (hasDelay) {
processedXData.push(stepStart);
processedXData.push(stepStart + this.stepToSweepDelay.value);
for (let j = 1; j < this.numPoints.value; j++) {
const sweepProgress = j / (this.numPoints.value - 1);
const sweepDuration = stepEnd - (stepStart + this.stepToSweepDelay.value);
processedXData.push(stepStart + this.stepToSweepDelay.value + sweepProgress * sweepDuration);
}
} else {
for (let j = 0; j < this.numPoints.value; j++) {
processedXData.push(stepStart + (stepEnd - stepStart) * (j / this.numPoints.value));
}
}
}
processedXData.push(this.plotDataX[this.plotDataX.length - 1]);
Expand All @@ -320,17 +336,17 @@ export class PlotSweepComponent

if (this.numPoints?.value > targetLength) {
processedYData = PlotUtils.minMaxInterpolation(
sweepValues,
processedSweepValues,
targetLength
).y;
} else {
processedYData = sweepValues;
processedYData = processedSweepValues;
}
console.log(processedYData);
console.log(processedYData, processedSweepValues, sweepValues);
this.plotData1.x = processedXData;
this.plotData1.y = Array.from({ length: this.numSteps }, () => sweepValues)
this.plotData1.y = Array.from({ length: this.numSteps }, () => processedSweepValues)
.flat()
.concat(sweepValues[sweepValues.length - 1]);
.concat(processedSweepValues[processedSweepValues.length - 1]);

this.plotLayout.xaxis.dtick = this.tickDifference;
this.plotLayout.xaxis.range = [0, this.tickDifference * 10];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export class TimingCalculation {
} else if (mode === 'NPLC') {
this.measTime = (this.numMeas * ((1 / this.lineFreq) * value) + measDelay) + sourceDelay;
}
return sweepPoints*(stepToSweepDelay + this.overhead + this.measTime);
return stepToSweepDelay + sweepPoints*(this.overhead + this.measTime);
}
}
Loading