# Logic Analyzer

The Logic Analyzer / Pattern Generator can measure or generate up to 16 channels of digital signal. The output digital signal can be programmed to Low, High, or a custom pattern.

If you are directly using the RESTful API (e.g. using cURL), the instrument name as used in the URL is logicanalyzer.

# Available states for a pin are

State Description
I Input
PG1 PatternGenerator1
PG2 PatternGenerator2
X Removes Pin

# Available output overrides for a pin are

State Description
H High
L Low
X Off

Functions

Core

  • Multi-instrument: Logic Analyzer in multi-instrument context
  • disable_pattern_generator: Disables the given Pattern Generator
  • enable_rollmode: Enables and disables Roll Mode X-axis behaviour
  • get_data: Get current sweep data.
  • get_pin: Get current state of a Digital I/O pin
  • get_pins: Get current state of all Digital I/O pins
  • getters: Logic Analyzer - getter functions
  • restart_pattern: Restart patterns on the given Pattern Generator
  • load_settings: Load a previously saved `.mokuconf` settings file into the instrument. To create a `.mokuconf` file, either use `save_settings` or the desktop app.
  • save_high_res_buffer: Save the high resolution channel buffer data to a file on the Moku's internal storage
  • save_settings: Save instrument settings to a file. The file name should have a `.mokuconf` extension to be compatible with other tools.
  • set_can_decoder: Configure CAN decoder on a given channel
  • set_analog_mode: Sets the threshold voltages of analog inputs
  • set_decoder: Configure decoder on the given channel
  • set_defaults: Set the Logic Analyzer to its default state
  • set_i2c_decoder: Configure decoder on the given channel
  • set_i2s_decoder: Configure decoder on the given channel
  • set_pattern_generator: Generate pattern on a single channel
  • set_parallel_bus_decoder: Configure ParallelBus decoder on a given channel
  • set_pin_mode: Sets the state of Moku:Go and MokuLDelta digital IO to either input or output
  • set_pin: Set the state of a single digital I/O pin
  • set_source: Sets the source of Logic Analyzer's input to either digital I/O or analog inputs
  • set_pins: Set the state of the digital I/O pins
  • set_spi_decoder: Configure decoder on the given channel
  • set_timebase: Sets the left- and right-hand span for the time axis. Units are seconds relative to the trigger point.
  • set_trigger: Configures the trigger on pin(s).
  • set_uart_decoder: Configure decoder on the given channel
  • summary: Returns a short summary of current instrument state