SRS-CG635 Synthesized Clock Generator Interface
Interface with a Stanford Research Systems CG635 Synthesized Clock Generator.
Installation
$ pip install cg635-clock-generator
Supported Features
- Frequency control
- Phase control
- CMOS output levels and standards control
- Q/*Q outputs levels and standards control
- RS-232 communication
Usage
from cg635_clock_generator import CG635ClockGenerator, CG635Communication
clock_generator = CG635ClockGenerator(
communication_type=CG635Communication.RS232,
serial_device='/dev/ttyUSB0',
)
print(clock_generator.get_identification())
FREQ = 10e6
PHASE = 90.0
clock_generator.set_frequency(FREQ)
frequency = clock_generator.get_frequency()
print(f"Frequency is {frequency} Hz")
clock_generator.set_phase(PHASE)
phase = clock_generator.get_phase()
print(f"Phase is {phase} degrees")
Running tests on hardware
During normal development and for the CI the unit test suite is executed on a mock device using pyvisa-mock. It is also possible to run tests on real hardware connected to your system. Just call:
$ uv run poe test_hil
By default it will try to connect to /dev/ttyUSB0, but you can specify a different
device using the --hil_serial_device option:
$ uv run poe test_hil --hil_serial_device /dev/ttyUSB1
Status
Currently only the RS-232 communication has been tested on the device.
Documentation
For more details of the module API, check the online documentation.
Feeling like contributing?
Great! Check the Contributing Guide to get started.
Metadata
Release files for cg635-clock-generator 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cg635_clock_generator-1.1.2.tar.gz | 420.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cg635_clock_generator-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 430.8 kB
Release files / cg635_clock_generator-1.1.2.tar.gz
| Download URL | cg635_clock_generator-1.1.2.tar.gz |
|---|---|
| Size | 420.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
054dbafbd43ae3d4eb80867c611052574a10b094e3b9533b58ae048dc0bc90b1
|
|
BLAKE2b-256 checksum How to use checksums |
661324f634cbcdfd872a6cc8836a854afd6da8261ccc6a7dc67c655a6d085657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.
Transparency logRelease files / cg635_clock_generator-1.1.2-py3-none-any.whl
| Download URL | cg635_clock_generator-1.1.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5934cc23989ab30a66891840edb954cbb97f0b7402335e72a6f85ca5c60f5d44
|
|
BLAKE2b-256 checksum How to use checksums |
891ab787b823fb85eb4643bc6a4aff47ed22d8fbcac71495ee7ac82b62a12260
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 20, 2026.
Transparency log