Skip to content

Commit

Permalink
Add data ready time difference in processor stats plot
Browse files Browse the repository at this point in the history
  • Loading branch information
mfacchinelli committed Jan 9, 2024
1 parent 0520271 commit 94b8af6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Add method to split analysis by time gap
- Add more options for sorting processing step
- Add sound when progress bar finishes in app
- Add data ready time difference in processor stats plot
- Allow cropping instrument data with `withtol`
- Only filter one vector for mode changes, and one second for range changes
- Hide unnecessary constants in meta data classes
Expand Down
8 changes: 7 additions & 1 deletion src/visualize/+mag/+graphics/+view/HK.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,19 @@ function visualize(this)
end

% Processor HK.
sid15 = this.getHKType("SID15");
procstat = this.getHKType("PROCSTAT");

if ~isempty(procstat)
if ~isempty(sid15) && ~isempty(procstat)

drt = sid15.Data(:, ["ISV_FOB_DTRDYTM", "ISV_FIB_DTRDYTM"]);
drt.DIFF = 1000 * (drt.ISV_FOB_DTRDYTM - drt.ISV_FIB_DTRDYTM);

this.Figures(4) = mag.graphics.visualize( ...
procstat, mag.graphics.style.Default(Title = "Messages in Queue", YLabel = "n [-]", Legend = ["FOB", "FIB"], Charts = [mag.graphics.chart.Plot(YVariables = "OBNQ_NUM_MSG"), mag.graphics.chart.Plot(YVariables = "IBNQ_NUM_MSG")]), ...
drt, mag.graphics.style.Default(Title = "Data Ready Time", YLabel = "\Delta Data Ready Time [ms]", Charts = mag.graphics.chart.Plot(YVariables = "DIFF")), ...
Name = "Processor Stats", ...
Arrangement = [2, 1], ...
LinkXAxes = true);
end
end
Expand Down

0 comments on commit 94b8af6

Please sign in to comment.