set_source

Sets the source of Logic Analyzer's input to either digital I/O or analog inputs

Mokus' analog inputs can be utilized as digital signal pins by configuring a threshold voltage. When the signal exceeds the threshold voltage, it is detected as "High"; otherwise, it is considered "Low."

Parameters

string required
Type of input source to configure
allowed values:
Moku:LabAnalogInputs, SlotInput
Moku:GoDigitalIO, AnalogInputs, SlotInput
Moku:ProAnalogInputs, SlotInput
Moku:DeltaDigitalIO1, DigitalIO2, AnalogInputs, SlotInput
boolean
Disable all implicit conversions and coercions.
default: true

Note

Valid source values depend on the mode the instrument is operating in:

Mode            Valid values
Standalone Moku:Go — DigitalIO, AnalogInputs
Moku:Lab / Moku:Pro — AnalogInputs
Moku:Delta — DigitalIO1, DigitalIO2, AnalogInputs
Multi-Instrument All devices — SlotInput

# Examples

# Sample response

{
    "source": "DigitalIO"
}
1
2
3