start_streaming

Start a streaming session

Returns the streaming interface id which holds the data stream.

Data streaming requires mokucli (opens new window).

Parameters

integer
The duration to stream for. If this is not given then the maximum possible duration will be used.
default: undefined
units: Seconds
number
Target samples per second (For Moku:Pro, the maximum sampling rate is limited to 5MSa/s for 2 channel logging and 1.25MSa/s for 3 and 4 channel logging)
default: undefined
allowed values:
Moku:Lab10 to 1e6
Moku:Go10 to 1e6
Moku:Pro10 to 10e6
Moku:Delta10 to 10e6
Trigger Source
default: undefined
allowed values:
Moku:LabInput1, Input2, External
Moku:GoInput1, Input2
Moku:ProInput1, Input2, Input3, Input4, External
Moku:DeltaInput1, Input2, Input3, Input4, Input5, Input6, Input7, Input8, External
Trigger level
default: 0
allowed values:-5 to 5
units: V
boolean
Disable all implicit conversions and coercions.
default: true

TIP

The sample_rate parameter here does exactly the same thing as set_samplerate, just in a more convenient way.

# Examples

# Sample response

{
    "sample_rate": 100000.0,
    "stream_id": "logsink0"
}
1
2
3
4