Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
5d51edeb
Commit
5d51edeb
authored
Dec 04, 2014
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improving debugging of multibackup
parent
654058ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
detectSwitchover.m
userspace/host_tools/spll_debug_analyze/detectSwitchover.m
+1
-1
draw3.m
userspace/host_tools/spll_debug_analyze/draw3.m
+30
-4
No files found.
userspace/host_tools/spll_debug_analyze/detectSwitchover.m
View file @
5d51edeb
...
...
@@ -20,6 +20,6 @@ for i=1:size_t(1)
end
end
output
=
0
;
%
output =0;
return
\ No newline at end of file
userspace/host_tools/spll_debug_analyze/draw3.m
View file @
5d51edeb
...
...
@@ -13,7 +13,7 @@ Xaxis = (1:(finish-start+1))*unitScale;
to_ps
=
16000
/(
2
^
14
);
figure
subplot
(
4
,
1
,
1
)
subplot
(
5
,
1
,
1
)
hold
on
plot
(
Xaxis
,
mpll
(
start
:
finish
,
3
)
*
to_ps
,
'b'
);
if
(
option
==
3
)
...
...
@@ -35,7 +35,7 @@ axis tight
clr
=
[
'r'
,
'g'
,
'b'
,
'c'
]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot
(
4
,
1
,
2
)
subplot
(
5
,
1
,
2
)
hold
on
for
nn
=
1
:
backups_n
;
plot
(
Xaxis
,
bpll
(
start
:
finish
,
3
,
nn
)
*
to_ps
,
clr
(
nn
));
...
...
@@ -54,7 +54,7 @@ xlabel('time [s]');
ylabel
(
'phase [ps]'
);
axis
tight
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot
(
4
,
1
,
3
)
subplot
(
5
,
1
,
3
)
hold
on
plot
(
Xaxis
,
bpll
(
start
:
finish
,
3
,
nn
)
*
to_ps
,
'k'
);
for
nn
=
1
:
backups_n
;
...
...
@@ -75,7 +75,7 @@ ylabel('phase [ps]');
axis
tight
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot
(
4
,
1
,
4
)
subplot
(
5
,
1
,
4
)
hold
on
plot
(
Xaxis
,
bpll
(
start
:
finish
,
3
,
nn
)
*
to_ps
,
'k'
);
for
nn
=
1
:
backups_n
;
...
...
@@ -95,4 +95,30 @@ xlabel('time [s]');
ylabel
(
'phase [ps]'
);
axis
tight
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clrDASH
=
[
'r-.'
,
'g-.'
,
'b-.'
,
'c-.'
]
subplot
(
5
,
1
,
5
)
hold
on
plot
(
Xaxis
,
bpll
(
start
:
finish
,
3
,
nn
)
*
to_ps
,
'k'
);
for
nn
=
1
:
backups_n
;
plot
(
Xaxis
,
bpll
(
start
:
finish
,
8
,
nn
)
*
to_ps
,
clr
(
nn
));
plot
(
Xaxis
,
bpll
(
start
:
finish
,
7
,
nn
)
*
to_ps
,
clrDASH
(
nn
));
end
if
backups_n
==
1
legend
(
'err'
,
'bPLL 0 s_avg'
,
'bPLL 0 l_avg'
,
'Location'
,
'northwest'
);
elseif
backups_n
==
2
legend
(
'err'
,
'bPLL 0 s_avg'
,
'bPLL 0 l_avg'
,
'bPLL 1 s_avg'
,
'bPLL 1 l_avg'
,
'Location'
,
'northwest'
);
elseif
backups_n
==
3
legend
(
'err'
,
'bPLL 0 s_avg'
,
'bPLL 0 l_avg'
,
'bPLL 1 s_avg'
,
'bPLL 1 l_avg'
,
'bPLL 2 s_avg'
,
'bPLL 2 l_avg'
,
'Location'
,
'northwest'
);
else
legend
(
'err'
,
'bPLL 0 s_avg'
,
'bPLL 0 l_avg'
,
'bPLL 1 s_avg'
,
'bPLL 1 l_avg'
,
'bPLL 2 s_avg'
,
'bPLL 2 l_avg'
,
'bPLL 3 s_avg'
,
'bPLL 3 l_avg'
,
'Location'
,
'northwest'
);
end
title
(
'bPLLs: short average'
);
xlabel
(
'time [s]'
);
ylabel
(
'phase [ps]'
);
axis
tight
return
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment