-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6219fe2
commit 13f716b
Showing
8 changed files
with
5,318 additions
and
920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from zhinst.toolkit.driver.devices.quantum_system_hub import QuantumSystemHub | ||
|
||
|
||
class QHub(QuantumSystemHub): | ||
"""High-level driver for the Zurich Instruments QHub.""" | ||
|
||
def arm(self, *, deep=True, repetitions: int = None, holdoff: float = None) -> None: | ||
"""Prepare QHub for triggering the instruments. | ||
This method configures the execution engine of QHub. | ||
Optionally, the *number of triggers* | ||
and *hold-off time* can be set when specified as keyword | ||
arguments. If they are not specified, they are not changed. | ||
Note that the QHub is disabled at the end of the hold-off time | ||
after sending out the last trigger. | ||
Args: | ||
deep: A flag that specifies if a synchronization | ||
should be performed between the device and the data | ||
server after stopping QHub (default: True). | ||
repetitions: If specified, the number of triggers sent | ||
over ZSync ports will be set (default: None). | ||
holdoff: If specified, the time between repeated | ||
triggers sent over ZSync ports will be set. It has a | ||
minimum value and a granularity of 100 ns | ||
(default: None). | ||
""" | ||
# Stop QHub if it is already running | ||
self.stop(deep=deep) | ||
if repetitions is not None: | ||
self.execution.repetitions(repetitions) | ||
if holdoff is not None: | ||
self.execution.holdoff(holdoff) |
Oops, something went wrong.