scietex.hal.signal-generator 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. scietex_hal_signal_generator-0.1.0/LICENSE +21 -0
  2. scietex_hal_signal_generator-0.1.0/PKG-INFO +172 -0
  3. scietex_hal_signal_generator-0.1.0/README.md +127 -0
  4. scietex_hal_signal_generator-0.1.0/pyproject.toml +79 -0
  5. scietex_hal_signal_generator-0.1.0/setup.cfg +4 -0
  6. scietex_hal_signal_generator-0.1.0/src/scietex/__init__.py +0 -0
  7. scietex_hal_signal_generator-0.1.0/src/scietex/hal/__init__.py +0 -0
  8. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/__init__.py +56 -0
  9. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/base/__init__.py +128 -0
  10. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/base/capabilities.py +405 -0
  11. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/base/data.py +177 -0
  12. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/base/errors.py +80 -0
  13. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/base/parsing.py +135 -0
  14. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/base/protocol.py +948 -0
  15. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/py.typed +0 -0
  16. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/registry.py +229 -0
  17. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/transport/__init__.py +59 -0
  18. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/transport/protocol.py +37 -0
  19. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/transport/scpi.py +168 -0
  20. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/transport/socket.py +123 -0
  21. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/transport/visa.py +149 -0
  22. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/transport/vxi11.py +116 -0
  23. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/unit_technologies/__init__.py +9 -0
  24. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/unit_technologies/utg4000a/__init__.py +32 -0
  25. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/unit_technologies/utg4000a/commands.py +578 -0
  26. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/unit_technologies/utg4000a/driver.py +1093 -0
  27. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/unit_technologies/utg4000a/models.py +239 -0
  28. scietex_hal_signal_generator-0.1.0/src/scietex/hal/signal_generator/version.py +1 -0
  29. scietex_hal_signal_generator-0.1.0/src/scietex.hal.signal_generator.egg-info/PKG-INFO +172 -0
  30. scietex_hal_signal_generator-0.1.0/src/scietex.hal.signal_generator.egg-info/SOURCES.txt +34 -0
  31. scietex_hal_signal_generator-0.1.0/src/scietex.hal.signal_generator.egg-info/dependency_links.txt +1 -0
  32. scietex_hal_signal_generator-0.1.0/src/scietex.hal.signal_generator.egg-info/entry_points.txt +2 -0
  33. scietex_hal_signal_generator-0.1.0/src/scietex.hal.signal_generator.egg-info/requires.txt +26 -0
  34. scietex_hal_signal_generator-0.1.0/src/scietex.hal.signal_generator.egg-info/top_level.txt +1 -0
  35. scietex_hal_signal_generator-0.1.0/tests/test_registry.py +210 -0
  36. scietex_hal_signal_generator-0.1.0/tests/test_version.py +14 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Anton Bondarenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,172 @@
1
+ Metadata-Version: 2.4
2
+ Name: scietex.hal.signal_generator
3
+ Version: 0.1.0
4
+ Summary: Async HAL driver for signal generators: Uni-T UTG4162A over VXI-11 (SCPI)
5
+ Author-email: Anton Bondarenko <bond.anton@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/bond-anton/scietex.hal.signal_generator
8
+ Project-URL: Repository, https://github.com/bond-anton/scietex.hal.signal_generator
9
+ Project-URL: Bug Tracker, https://github.com/bond-anton/scietex.hal.signal_generator/issues
10
+ Keywords: signal generator,scpi,vxi-11,hal,instrumentation,uni-t
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Scientific/Engineering
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Framework :: AsyncIO
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: msgspec~=0.20.0
27
+ Provides-Extra: vxi11
28
+ Requires-Dist: python-vxi11>=0.9; extra == "vxi11"
29
+ Requires-Dist: standard-xdrlib; python_version >= "3.13" and extra == "vxi11"
30
+ Provides-Extra: visa
31
+ Requires-Dist: pyvisa>=1.13; extra == "visa"
32
+ Provides-Extra: dev
33
+ Requires-Dist: tox; extra == "dev"
34
+ Provides-Extra: test
35
+ Requires-Dist: pytest; extra == "test"
36
+ Requires-Dist: pytest-asyncio; extra == "test"
37
+ Requires-Dist: pytest-xdist; extra == "test"
38
+ Provides-Extra: lint
39
+ Requires-Dist: ruff; extra == "lint"
40
+ Requires-Dist: ty; extra == "lint"
41
+ Provides-Extra: release
42
+ Requires-Dist: build>=1.2; extra == "release"
43
+ Requires-Dist: twine>=5; extra == "release"
44
+ Dynamic: license-file
45
+
46
+ # scietex.hal.signal_generator
47
+
48
+ An asynchronous Python HAL for signal generators, driven over VXI-11 (LAN). The
49
+ first supported model is the Uni-T UTG4162A.
50
+
51
+ ## Supported devices
52
+
53
+ | Model | Channels | Sine range | Transport | Firmware verified |
54
+ | --- | --- | --- | --- | --- |
55
+ | Uni-T UTG4162A | 2 | 160 MHz | VXI-11 (LAN) | V2.00.0013 |
56
+
57
+ ## Install
58
+
59
+ ```bash
60
+ pip install scietex.hal.signal_generator[vxi11]
61
+ ```
62
+
63
+ The `vxi11` extra pulls `python-vxi11` and, on Python 3.13 and later,
64
+ `standard-xdrlib`, which the library needs because `xdrlib` left the standard
65
+ library.
66
+
67
+ For development, install everything editable:
68
+
69
+ ```bash
70
+ pip install -e ".[dev,test,lint,vxi11]"
71
+ ```
72
+
73
+ ## Quickstart
74
+
75
+ Configure channel 1 as a 1 kHz, 1 Vpp sine and enable its output:
76
+
77
+ ```python
78
+ import asyncio
79
+
80
+ from scietex.hal.signal_generator.base import AmplitudeUnit, Waveform
81
+ from scietex.hal.signal_generator.unit_technologies.utg4000a import UTG4162A
82
+
83
+
84
+ async def main() -> None:
85
+ async with UTG4162A("192.168.0.134") as generator:
86
+ identity = await generator.identify()
87
+ print(f"identity: {identity.raw}")
88
+
89
+ await generator.set_waveform(1, Waveform.SINE)
90
+ await generator.set_frequency_hz(1, 1_000.0)
91
+ await generator.set_amplitude_unit(1, AmplitudeUnit.VPP)
92
+ await generator.set_amplitude(1, 1.0)
93
+ await generator.set_offset_v(1, 0.0)
94
+ await generator.set_output_enabled(1, True)
95
+
96
+ state = await generator.read_state(1)
97
+ print(state)
98
+
99
+
100
+ asyncio.run(main())
101
+ ```
102
+
103
+ The driver can also be resolved by name through the registry, which is the path
104
+ a caller uses when the concrete model is not known at import time:
105
+
106
+ ```python
107
+ import asyncio
108
+
109
+ from scietex.hal.signal_generator.registry import (
110
+ open_signal_generator,
111
+ resolve_driver,
112
+ )
113
+
114
+
115
+ async def main() -> None:
116
+ async with open_signal_generator("192.168.0.134") as gen:
117
+ state = await gen.read_state()
118
+ for channel in state.channels:
119
+ print(channel.channel, channel.carrier.frequency_hz, channel.output.enabled)
120
+
121
+ driver_cls = resolve_driver("utg4162a") # the UTG4162A class
122
+ generator = driver_cls("192.168.0.134")
123
+ print(generator.host)
124
+
125
+
126
+ asyncio.run(main())
127
+ ```
128
+
129
+ `resolve_driver` looks drivers up through the package entry points, so it needs
130
+ the package installed, not just the source tree on `sys.path`.
131
+
132
+ ## SCPI dialect
133
+
134
+ The UTG4000A family does not follow the common `:SOURce` tree: the carrier lives
135
+ under `:CHANnel<n>:BASE:*`, so a frequency is `:CHANnel1:BASE:FREQuency?`, not
136
+ `:SOUR1:FREQ?`. The full command map, the rejected spellings and the
137
+ write-verification evidence are in
138
+ [docs/utg4000a-scpi-reference.md](docs/utg4000a-scpi-reference.md).
139
+
140
+ ## Documentation
141
+
142
+ - [docs/utg4000a-scpi-reference.md](docs/utg4000a-scpi-reference.md) — accepted
143
+ commands, dialect notes, error handling.
144
+ - [docs/transport.md](docs/transport.md) — transport backends and the SCPI
145
+ client.
146
+ - [docs/write-verification.md](docs/write-verification.md) — live write
147
+ verification on the bench unit.
148
+ - [examples/configure_channel.py](examples/configure_channel.py) — configure a
149
+ channel.
150
+ - [examples/monitor_state.py](examples/monitor_state.py) — read-only state dump.
151
+
152
+ ## Testing
153
+
154
+ ```bash
155
+ pytest
156
+ ```
157
+
158
+ Hardware tests are gated by `RUN_HARDWARE_TESTS=1`; without the variable they
159
+ skip, so a plain `pytest` run needs no instrument.
160
+
161
+ Lint, formatting and type checks:
162
+
163
+ ```bash
164
+ tox -e format,lint,type
165
+ ```
166
+
167
+ `format` and `lint` run `ruff`, `type` runs `ty`.
168
+
169
+ ## License
170
+
171
+ MIT — see [LICENSE](LICENSE). Source:
172
+ <https://github.com/bond-anton/scietex.hal.signal_generator>.
@@ -0,0 +1,127 @@
1
+ # scietex.hal.signal_generator
2
+
3
+ An asynchronous Python HAL for signal generators, driven over VXI-11 (LAN). The
4
+ first supported model is the Uni-T UTG4162A.
5
+
6
+ ## Supported devices
7
+
8
+ | Model | Channels | Sine range | Transport | Firmware verified |
9
+ | --- | --- | --- | --- | --- |
10
+ | Uni-T UTG4162A | 2 | 160 MHz | VXI-11 (LAN) | V2.00.0013 |
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ pip install scietex.hal.signal_generator[vxi11]
16
+ ```
17
+
18
+ The `vxi11` extra pulls `python-vxi11` and, on Python 3.13 and later,
19
+ `standard-xdrlib`, which the library needs because `xdrlib` left the standard
20
+ library.
21
+
22
+ For development, install everything editable:
23
+
24
+ ```bash
25
+ pip install -e ".[dev,test,lint,vxi11]"
26
+ ```
27
+
28
+ ## Quickstart
29
+
30
+ Configure channel 1 as a 1 kHz, 1 Vpp sine and enable its output:
31
+
32
+ ```python
33
+ import asyncio
34
+
35
+ from scietex.hal.signal_generator.base import AmplitudeUnit, Waveform
36
+ from scietex.hal.signal_generator.unit_technologies.utg4000a import UTG4162A
37
+
38
+
39
+ async def main() -> None:
40
+ async with UTG4162A("192.168.0.134") as generator:
41
+ identity = await generator.identify()
42
+ print(f"identity: {identity.raw}")
43
+
44
+ await generator.set_waveform(1, Waveform.SINE)
45
+ await generator.set_frequency_hz(1, 1_000.0)
46
+ await generator.set_amplitude_unit(1, AmplitudeUnit.VPP)
47
+ await generator.set_amplitude(1, 1.0)
48
+ await generator.set_offset_v(1, 0.0)
49
+ await generator.set_output_enabled(1, True)
50
+
51
+ state = await generator.read_state(1)
52
+ print(state)
53
+
54
+
55
+ asyncio.run(main())
56
+ ```
57
+
58
+ The driver can also be resolved by name through the registry, which is the path
59
+ a caller uses when the concrete model is not known at import time:
60
+
61
+ ```python
62
+ import asyncio
63
+
64
+ from scietex.hal.signal_generator.registry import (
65
+ open_signal_generator,
66
+ resolve_driver,
67
+ )
68
+
69
+
70
+ async def main() -> None:
71
+ async with open_signal_generator("192.168.0.134") as gen:
72
+ state = await gen.read_state()
73
+ for channel in state.channels:
74
+ print(channel.channel, channel.carrier.frequency_hz, channel.output.enabled)
75
+
76
+ driver_cls = resolve_driver("utg4162a") # the UTG4162A class
77
+ generator = driver_cls("192.168.0.134")
78
+ print(generator.host)
79
+
80
+
81
+ asyncio.run(main())
82
+ ```
83
+
84
+ `resolve_driver` looks drivers up through the package entry points, so it needs
85
+ the package installed, not just the source tree on `sys.path`.
86
+
87
+ ## SCPI dialect
88
+
89
+ The UTG4000A family does not follow the common `:SOURce` tree: the carrier lives
90
+ under `:CHANnel<n>:BASE:*`, so a frequency is `:CHANnel1:BASE:FREQuency?`, not
91
+ `:SOUR1:FREQ?`. The full command map, the rejected spellings and the
92
+ write-verification evidence are in
93
+ [docs/utg4000a-scpi-reference.md](docs/utg4000a-scpi-reference.md).
94
+
95
+ ## Documentation
96
+
97
+ - [docs/utg4000a-scpi-reference.md](docs/utg4000a-scpi-reference.md) — accepted
98
+ commands, dialect notes, error handling.
99
+ - [docs/transport.md](docs/transport.md) — transport backends and the SCPI
100
+ client.
101
+ - [docs/write-verification.md](docs/write-verification.md) — live write
102
+ verification on the bench unit.
103
+ - [examples/configure_channel.py](examples/configure_channel.py) — configure a
104
+ channel.
105
+ - [examples/monitor_state.py](examples/monitor_state.py) — read-only state dump.
106
+
107
+ ## Testing
108
+
109
+ ```bash
110
+ pytest
111
+ ```
112
+
113
+ Hardware tests are gated by `RUN_HARDWARE_TESTS=1`; without the variable they
114
+ skip, so a plain `pytest` run needs no instrument.
115
+
116
+ Lint, formatting and type checks:
117
+
118
+ ```bash
119
+ tox -e format,lint,type
120
+ ```
121
+
122
+ `format` and `lint` run `ruff`, `type` runs `ty`.
123
+
124
+ ## License
125
+
126
+ MIT — see [LICENSE](LICENSE). Source:
127
+ <https://github.com/bond-anton/scietex.hal.signal_generator>.
@@ -0,0 +1,79 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "scietex.hal.signal_generator"
7
+ dynamic = ["version"]
8
+ description = "Async HAL driver for signal generators: Uni-T UTG4162A over VXI-11 (SCPI)"
9
+ keywords = ["signal generator", "scpi", "vxi-11", "hal", "instrumentation", "uni-t"]
10
+ authors = [{ name = "Anton Bondarenko", email = "bond.anton@gmail.com" }]
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ readme = "README.md"
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "Intended Audience :: Developers",
17
+ "Operating System :: OS Independent",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Topic :: Scientific/Engineering",
24
+ "Topic :: Software Development :: Libraries :: Python Modules",
25
+ "Framework :: AsyncIO",
26
+ "Typing :: Typed",
27
+ ]
28
+ requires-python = ">=3.10"
29
+ dependencies = [
30
+ "msgspec ~= 0.20.0",
31
+ ]
32
+
33
+ [project.urls]
34
+ "Homepage" = "https://github.com/bond-anton/scietex.hal.signal_generator"
35
+ "Repository" = "https://github.com/bond-anton/scietex.hal.signal_generator"
36
+ "Bug Tracker" = "https://github.com/bond-anton/scietex.hal.signal_generator/issues"
37
+
38
+ [project.entry-points."scietex.hal.signal_generator.drivers"]
39
+ utg4162a = "scietex.hal.signal_generator.unit_technologies.utg4000a:UTG4162A"
40
+
41
+ [project.optional-dependencies]
42
+ vxi11 = [
43
+ "python-vxi11 >= 0.9",
44
+ "standard-xdrlib; python_version >= '3.13'",
45
+ ]
46
+ visa = ["pyvisa >= 1.13"]
47
+ dev = ["tox"]
48
+ test = ["pytest", "pytest-asyncio", "pytest-xdist"]
49
+ lint = ["ruff", "ty"]
50
+ release = ["build>=1.2", "twine>=5"]
51
+
52
+ [tool.setuptools.dynamic]
53
+ version = { attr = "scietex.hal.signal_generator.version.__version__" }
54
+
55
+ [tool.setuptools.package-data]
56
+ "scietex.hal.signal_generator" = ["py.typed"]
57
+
58
+ [tool.setuptools.packages.find]
59
+ where = ["src"]
60
+
61
+ [tool.pytest.ini_options]
62
+ pythonpath = ["src"]
63
+ testpaths = ["tests"]
64
+ asyncio_mode = "auto"
65
+ asyncio_default_fixture_loop_scope = "session"
66
+
67
+ [tool.ruff]
68
+ line-length = 88
69
+ target-version = "py310"
70
+
71
+ [tool.ruff.lint]
72
+ select = ["E4", "E7", "E9", "F", "W", "I", "B", "C4", "SIM", "UP", "PLC0415", "PLR0913", "PLR0917"]
73
+ ignore = ["E501"]
74
+
75
+ [tool.ruff.format]
76
+ quote-style = "double"
77
+
78
+ [tool.ty.environment]
79
+ python-version = "3.10"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,56 @@
1
+ """Scietex signal generator HAL package.
2
+
3
+ A signal generator driver exposes its capability set, its state snapshot, and
4
+ the transport-agnostic control contract that concrete drivers implement. The
5
+ registry resolves drivers through installed entry points so callers can stay
6
+ independent of a concrete model class.
7
+ """
8
+
9
+ from .base import (
10
+ BaseSignalGenerator,
11
+ GeneratorState,
12
+ ScpiCommandError,
13
+ ScpiError,
14
+ ScpiParseError,
15
+ SignalGeneratorCapabilities,
16
+ SignalGeneratorError,
17
+ SignalGeneratorProtocol,
18
+ SignalGeneratorState,
19
+ TransportError,
20
+ UnsupportedCapabilityError,
21
+ )
22
+ from .registry import (
23
+ DEFAULT_DRIVER,
24
+ DRIVER_ENTRY_POINT_GROUP,
25
+ UnknownDriverError,
26
+ discover_drivers,
27
+ driver_for_identity,
28
+ open_signal_generator,
29
+ resolve_driver,
30
+ )
31
+ from .unit_technologies import UTG4162A, UTG4000AFamily
32
+ from .version import __version__
33
+
34
+ __all__ = [
35
+ "DEFAULT_DRIVER",
36
+ "DRIVER_ENTRY_POINT_GROUP",
37
+ "UTG4000AFamily",
38
+ "UTG4162A",
39
+ "BaseSignalGenerator",
40
+ "GeneratorState",
41
+ "ScpiCommandError",
42
+ "ScpiError",
43
+ "ScpiParseError",
44
+ "SignalGeneratorCapabilities",
45
+ "SignalGeneratorError",
46
+ "SignalGeneratorProtocol",
47
+ "SignalGeneratorState",
48
+ "TransportError",
49
+ "UnknownDriverError",
50
+ "UnsupportedCapabilityError",
51
+ "__version__",
52
+ "discover_drivers",
53
+ "driver_for_identity",
54
+ "open_signal_generator",
55
+ "resolve_driver",
56
+ ]
@@ -0,0 +1,128 @@
1
+ """Base package for the signal generator HAL.
2
+
3
+ This phase provides the exception hierarchy, the pure response-parsing helpers,
4
+ the capability model, the state snapshots and the driver contract.
5
+ """
6
+
7
+ from .capabilities import (
8
+ Access,
9
+ AmplitudeCapabilities,
10
+ AmplitudeUnit,
11
+ ArbCapabilities,
12
+ ArbMode,
13
+ BurstCapabilities,
14
+ BurstType,
15
+ CarrierCapabilities,
16
+ ChannelMode,
17
+ FrequencyLimits,
18
+ HarmonicCapabilities,
19
+ HarmonicType,
20
+ LoadCapabilities,
21
+ LoadMode,
22
+ ModulationCapabilities,
23
+ ModulationSource,
24
+ ModulationType,
25
+ ModulationWave,
26
+ OffsetCapabilities,
27
+ OutputCapabilities,
28
+ SignalGeneratorCapabilities,
29
+ SweepCapabilities,
30
+ SweepType,
31
+ TriggerCapabilities,
32
+ TriggerSource,
33
+ Waveform,
34
+ )
35
+ from .data import (
36
+ BurstState,
37
+ CarrierState,
38
+ ChannelState,
39
+ DeviceIdentity,
40
+ GeneratorState,
41
+ HarmonicState,
42
+ ModulationState,
43
+ OutputLoad,
44
+ OutputState,
45
+ SignalGeneratorState,
46
+ SweepState,
47
+ SystemInfo,
48
+ SystemState,
49
+ )
50
+ from .errors import (
51
+ ScpiCommandError,
52
+ ScpiError,
53
+ ScpiParseError,
54
+ SignalGeneratorError,
55
+ TransportError,
56
+ UnsupportedCapabilityError,
57
+ )
58
+ from .parsing import (
59
+ format_scpi,
60
+ normalize,
61
+ parse_bool,
62
+ parse_enum,
63
+ parse_float,
64
+ parse_int,
65
+ parse_scpi_error,
66
+ split_csv,
67
+ unquote,
68
+ )
69
+ from .protocol import BaseSignalGenerator, SignalGeneratorProtocol
70
+
71
+ __all__ = [
72
+ "Access",
73
+ "AmplitudeCapabilities",
74
+ "AmplitudeUnit",
75
+ "ArbCapabilities",
76
+ "ArbMode",
77
+ "BaseSignalGenerator",
78
+ "BurstCapabilities",
79
+ "BurstState",
80
+ "BurstType",
81
+ "CarrierCapabilities",
82
+ "CarrierState",
83
+ "ChannelMode",
84
+ "ChannelState",
85
+ "DeviceIdentity",
86
+ "FrequencyLimits",
87
+ "GeneratorState",
88
+ "HarmonicCapabilities",
89
+ "HarmonicState",
90
+ "HarmonicType",
91
+ "LoadCapabilities",
92
+ "LoadMode",
93
+ "ModulationCapabilities",
94
+ "ModulationSource",
95
+ "ModulationState",
96
+ "ModulationType",
97
+ "ModulationWave",
98
+ "OffsetCapabilities",
99
+ "OutputCapabilities",
100
+ "OutputLoad",
101
+ "OutputState",
102
+ "ScpiCommandError",
103
+ "ScpiError",
104
+ "ScpiParseError",
105
+ "SignalGeneratorCapabilities",
106
+ "SignalGeneratorError",
107
+ "SignalGeneratorProtocol",
108
+ "SignalGeneratorState",
109
+ "SweepCapabilities",
110
+ "SweepState",
111
+ "SweepType",
112
+ "SystemInfo",
113
+ "SystemState",
114
+ "TransportError",
115
+ "TriggerCapabilities",
116
+ "TriggerSource",
117
+ "UnsupportedCapabilityError",
118
+ "Waveform",
119
+ "format_scpi",
120
+ "normalize",
121
+ "parse_bool",
122
+ "parse_enum",
123
+ "parse_float",
124
+ "parse_int",
125
+ "parse_scpi_error",
126
+ "split_csv",
127
+ "unquote",
128
+ ]