Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Calibration
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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 Calibration
Commits
a666c56e
Commit
a666c56e
authored
Jun 28, 2016
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edge_edge use DSO init function instead of private DSO settings.
parent
0a7c2eb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
edge_edge.py
sw/ab_cal_scripts/edge_edge.py
+5
-7
No files found.
sw/ab_cal_scripts/edge_edge.py
View file @
a666c56e
...
...
@@ -150,15 +150,13 @@ if __name__ == "__main__":
scope
=
vxi11
.
Instrument
(
sys
.
argv
[
1
])
#scope = vxi11.Instrument("192.168.32.248")
print
(
scope
.
ask
(
"*IDN?"
))
# Returns 'KEYSIGHT TECHNOLOGIES,DSOS254A,MY55160101,05.50.0004'
# Initialize oscilloscope
# Use Channel 1 pulse input
# use Channel 3 Ethernet Frame input
# use Channel 3-4 Ethernet Frame input
DSO
.
osc_init
(
scope
,
time_base
)
# A fixed trigger level is important for proper timing measurement
# Choose 100 mV for a direct signal but 50 mV Volt when the signal
# is split by a power splitter
"""
scope.write(":TRIGger:EDGE:SOURce CHANnel1")
scope.write(":TRIGger:SWEep TRIGgered")
...
...
@@ -184,7 +182,7 @@ if __name__ == "__main__":
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
)
...
...
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