-
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.
feat: Added SourceXpress API support and AWG defects fix.
- Loading branch information
Showing
162 changed files
with
3,589 additions
and
1,594 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
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,29 @@ | ||
"""An example script for AWG70K compiling sine waveform, name the waveform and play it.""" | ||
|
||
from tm_devices import DeviceManager | ||
from tm_devices.drivers import AWG70KB | ||
from tm_devices.helpers import PYVISA_PY_BACKEND | ||
|
||
with DeviceManager(verbose=True) as device_manager: | ||
# Disable resetting the devices when connecting and closing | ||
device_manager.setup_cleanup_enabled = False | ||
device_manager.teardown_cleanup_enabled = False | ||
|
||
# Use the PyVISA-py backend | ||
device_manager.visa_library = PYVISA_PY_BACKEND | ||
|
||
# Creating Scope driver object by providing ip address. | ||
scope: AWG70KB = device_manager.add_awg("127.0.0.1") | ||
|
||
# Sets the Basic Waveform editor plug-in waveform type. | ||
scope.commands.bwaveform.function.write("SINE") | ||
# Sets the peak-to-peak Amplitude value for the waveform created by the Basic Waveform | ||
# editor plug-in. | ||
scope.commands.bwaveform.amplitude.write(250.0e-3) | ||
# Sets the Sample Rate for the waveform created by the Basic Waveform editor plug-in. | ||
scope.commands.bwaveform.srate.write(2.0e9) | ||
# Sets the name of the Basic Waveform editor plug-in compiled waveform. | ||
scope.commands.bwaveform.compile.name.write("Basic_Wfm_sine") | ||
# Enabled the state of the Basic Waveform editor to either immediately play the waveform | ||
# after compile or just compile | ||
scope.commands.bwaveform.compile.play.write("ON") |
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
Oops, something went wrong.