Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-calibration
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-calibration
Commits
7262caac
Commit
7262caac
authored
Dec 09, 2016
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed out-commented scope init statements
parent
68cf7dc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
edge_edge.py
sw/ab_cal_scripts/edge_edge.py
+0
-28
No files found.
sw/ab_cal_scripts/edge_edge.py
View file @
7262caac
...
...
@@ -156,34 +156,6 @@ if __name__ == "__main__":
# use Channel 3-4 Ethernet Frame input
DSO
.
osc_init
(
scope
,
time_base
)
"""
scope.write(":TRIGger:EDGE:SOURce CHANnel1")
scope.write(":TRIGger:SWEep TRIGgered")
use_power_splitter = True
if use_power_splitter:
scope.write(":TRIGger:LEVel CHANnel1, 0.05")
scope.write(":CHANnel1:RANGe 0.8") # 100 mV/div
else:
scope.write(":TRIGger:LEVel CHANnel1, 0.1")
scope.write(":CHANnel1:RANGe 1.6") # 200 mV/div
scope.write(":CHANnel1:INPut DCFifty")
scope.write(":CHANnel1:OFFSet 0.0")
scope.write(":CHANnel3:INPut DCFifty")
scope.write(":CHANnel3:OFFSet 0.0")
scope.write(":CHANnel3:RANGe 0.8") # 100 mV/div
# Trigger in the centre of the screen; important for maximum estimations
# forwarded to function average_meas
scope.write(":TIMebase:DELay 0")
scope.write(":TIMebase:RANGe "+str(time_base)) # set 50 ns/div
scope.write(":TIMebase:REFClock ON") # set external refrence clock
"""
meas
,
samples
,
sample_period
,
first_filename
,
last_filename
=
average_edge_to_edge
(
scope
,
num_meas
,
expect_max
,
estimated_delay
,
tolerance
)
print
(
"Samples:"
,
samples
)
print
(
"Sample Period:"
,
sample_period
)
...
...
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