# MATLAB Moku Appi Oscilloscope

**URL:** <https://forum.liquidinstruments.com/t/matlab-moku-appi-oscilloscope/1196>\
**Category:** Software & APIs\
**Created:** [May 27, 2025, 9:24am UTC](https://forum.liquidinstruments.com/t/matlab-moku-appi-oscilloscope/1196 "2025-05-27T09:24:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alejandromarjim](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@alejandromarjim](https://forum.liquidinstruments.com/u/alejandromarjim)\
**Post date:** [May 27, 2025, 9:24am UTC](https://forum.liquidinstruments.com/t/matlab-moku-appi-oscilloscope/1196/1 "2025-05-27T09:24:32Z")

</div>

Hi peeps,

I’m using the oscilloscope through the MATLAB API. The thing is, there are commands to set up the time scale. However, I cannot find a way to set up the sampling rate properly (to force Moku to stick to a sampling rate). I know that the desktop app has the same issue; however, I’m experiencing some differences. In the desktop app, I can record at 1.25 GSa/s for a time span of 10 us, but in the MATLAB API, I can only do that for a time span below 3 us. As well, using the MATLAB API, the electronic bandwidth is reduced even though you are sampling at 1.25 GSa/s. Has anyone seen this issue before? Is there any way to force the sampling rate through any command on MATLAB?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Dylan](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dylan](https://forum.liquidinstruments.com/u/Dylan)\
**Post date:** [May 28, 2025, 6:25pm UTC](https://forum.liquidinstruments.com/t/matlab-moku-appi-oscilloscope/1196/2 "2025-05-28T18:25:19Z")

</div>

Hello @alejandromarjim ,  
How are you determining the sample rate of the oscilloscope in the script? You can use `i.get_samplerate()` to verify that you have the correct rate. I did a quick test with a 9 µs timespan and used `i.get_samplerate()` to verify that I was getting 1.25 GSa/s. If you are able to send over your exact configuration, I can see if your script gives a different sample rate than expected. Also, the bandwidth shouldn’t be affected.

 ![Screenshot 2025-05-28 at 11.24.49 AM](https://canada1.discourse-cdn.com/flex035/uploads/liquidinstruments/original/1X/f8dfa094b593553cb5dede9a0b62612b73cc5ee2.png)
