.. _api_scpi_pulse_reference: ================================ ``PULSe`` Submodule Reference ================================ Pulse sequencer properties of an OpenSync device can be accessed using the ``PULSe`` root path. Pulse sequencer configuration can be set when the device is idle or aborted. Queries can also be used during device operation. Commands that include ``PULSe`` operate on sequencer ````. Sequencer 0 is the T0 clock, and sequencers 1 through 8 are output channels CHA through CHH. Commands that omit ```` operate on T0. For example, ``:PULSe1:STATe ON`` enables output channel CHA, while ``:PULSe:STATe ON`` enables T0. .. _scpi_pulse_state: ``:STATe`` =========== | :PULSe:STATe? | :PULSe:STATe ON | OFF This command enables or disables sequencer ````. Sequencers that are not enabled will not be processed during program execution. The command accepts `ON` or `1` to enable and `OFF` or `0` to disable. The query returns `1` or `0`. Examples -------- .. code-block:: none :caption: Example SCPI code :PULS1:STAT ON :PULS1:STAT? >>> 1 .. note:: * \*RST resets ``:PULSe:STATe`` to `OFF`. * Configuration commands are not allowed during device operation. .. _scpi_pulse_divider: ``:DIVider`` ============ | :PULSe0:DIVider? | :PULSe:DIVider This command sets the clock divider of sequencer ````. The divider changes the clock resolution and scales the minimum and maximum period or delay that can be configured. .. csv-table:: Divider Data Description :header: "Clock Divider", "Unit Time Scale" :widths: 15, 25 "1", "Clock resolution is 4 ns" "2", "Clock resolution is 8 ns" "5", "Clock resolution is 20 ns" "25", "Clock resolution is 100 ns" "250", "Clock resolution is 1,000 ns (1 us)" Examples -------- .. code-block:: none :caption: Example SCPI code :PULS0:DIV 2 :PULS0:DIV? >>> 2 .. note:: * \*RST resets ``:PULSe:DIVider`` to `1`. * Configuration commands are not allowed during device operation. * Program configuration supports dividers up to `65500` for T0 and output channels. .. _scpi_pulse_period: ``:PERiod`` ============ | :PULSe0:PERiod? | :PULSe0:PERiod