Skip to main content

yaq daemons for SCPI hardware

Project description

yaqd-scpi

PyPI Conda yaq black ver log

yaq daemons for SCPI hardware. This package contains a few very generic daemons for interacting with the SCPI bus from yaq. The generic approach works well for many simple applications, but more complex hardware interaction may require a more hardware-specific daemon.

scpi-sensor

scpi-sensor allows yaq users to treat one or more scalar queries as a standard yaq sensor. Multiple queries are treated as multiple channels. Users can define channel names and units via config. An example config follows:

[rigol]
port = 39999
visa_address = "TCPIP0::128.104.68.66::INSTR"
[rigol.channels]
[rigol.channels.trigger_level]
query = "TRIG:EDGE:LEV?"
units = "V"
[rigol.channels.time_offset]
query = "TIM:MAIN:OFFS?"
units = "s"

scpi-set-continuous

scpi-set-continuous allows yaq users to address a single scalar settable. Limits and units can be provided via config. An example config follows:

[rigol_ch1_freq]
port = 39998
visa_address = "TCPIP0::128.104.68.66::INSTR"
limits = [0.1, 25e9]
scpi_command = "SOUR1:FREQ"

[rigol_ch2_freq]
port = 39999
visa_address = "TCPIP0::128.104.68.66::INSTR"
limits = [0.1, 25e9]
scpi_command = "SOUR1:FREQ"

scpi-set-discrete

scpi-set-discrete allows yaq users to address a single non-scalar settable according to user-friendly names. Identifiers must be provided via config. An example config follows:

[rigol_ch1_func]
port = 39999
visa_address = "TCPIP0::128.104.68.66::INSTR"
scpi_command = "SOUR1:FUNC"
identifiers = {"SIN"=0, "SQU"=1, "RAMP"=2, "PULS"=3, "NOIS"=4, "DC"=5}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaqd-scpi-2021.11.0.tar.gz (11.5 kB view hashes)

Uploaded source

Built Distribution

yaqd_scpi-2021.11.0-py3-none-any.whl (15.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page