I use moku:lab and get data from the oscilloscope using
data = i.get_data()
I plot the data using matplotlib. I search for the mean and max value of my sinusoidal signal. for this I use numpy np.max(data[‘ch1’]) and np.mean(data[‘ch1’].
. I want to set a cursor at these values using python code. I found i.set_ycursor() or i.set_xcursor(). But it seems to be the wrong code for cursors. The error say’s:
Oscilloscope has no attribute set_ycursor().
My question is asking for a correct way to call cursor or asking if there is any possibility to set cursors in moku API.
best
Saman
Hi Saman @Saman ,
The cursors are visualization tools. You will need to use Python and matplotlib to plot the cursors on the figure. Moku will only return the captured frames.
Our API reference page provides the full list of supported commands: https://apis.liquidinstruments.com/reference/oscilloscope/
Thanks,
Hank