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
1704c3ba
Commit
1704c3ba
authored
Jan 03, 2017
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added forgotten "INP2:LEVEL:AUTO OFF" and some Gate settings
parent
a51a5596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
Keysight_53230A.py
sw/ab_cal_scripts/lib/Keysight_53230A.py
+29
-3
No files found.
sw/ab_cal_scripts/lib/Keysight_53230A.py
View file @
1704c3ba
...
...
@@ -55,6 +55,25 @@ def get_time_interval(freq_cnt, num_meas=1):
file_header
+=
"#measurements:
\n
"
meas_data
=
[]
for
measurement
in
range
(
num_meas
):
measurement
=
freq_cnt
.
ask
(
"READ?"
)
meas_data
.
append
(
measurement
+
"
\n
"
)
...
...
@@ -143,18 +162,24 @@ if __name__ == "__main__":
if
len
(
sys
.
argv
)
>=
2
:
# just IP number
freq_cnt
=
vxi11
.
Instrument
(
sys
.
argv
[
1
])
#freq_cnt = vxi11.Instrument("192.168.32.251")
# Put the device in a known state
freq_cnt
.
write
(
"*RST"
)
freq_cnt
.
write
(
"*CLS"
)
print
(
freq_cnt
.
ask
(
"*IDN?"
))
# Returns 'Agilent Technologies,53230A,MY50001484,02.05-1519.666-1.19-4.15-127-155-35'
if
len
(
sys
.
argv
)
>=
3
:
# There are more arguments...
num_meas
=
int
(
sys
.
argv
[
2
]
.
split
(
'='
)[
1
])
print
(
"num_meas"
,
num_meas
)
# Put the device in a known state
freq_cnt
.
write
(
"*RST"
)
# Setup Time Interval measurment from channel 1 -> 2
freq_cnt
.
write
(
"CONFigure:TINTerval (@1),(@2)"
)
freq_cnt
.
write
(
"SENSe:GATE:STARt:DELAy:SOURce IMMediate"
)
freq_cnt
.
write
(
"SENSE:TINTerval:GATE:SOURce IMMediate"
)
freq_cnt
.
write
(
"SENSE:TINTerval:GATE:POLarity POSitive"
)
# Use external 10MHz reference
freq_cnt
.
write
(
"ROSCillator:SOURce EXTernal"
)
...
...
@@ -185,6 +210,7 @@ if __name__ == "__main__":
freq_cnt
.
write
(
"INP2:COUP DC"
)
freq_cnt
.
write
(
"INP2:RANGE 5"
)
freq_cnt
.
write
(
"INP2:SLOPE POS"
)
freq_cnt
.
write
(
"INP2:LEVEL:AUTO OFF"
)
# A fixed trigger level is important for proper timing measurement
# MiniCircuits Splitters ZFRSC-123+ have ~ 6 + 3,75 dB attenuation (~ factor 3).
...
...
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