MATLAB Moku Appi Oscilloscope

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!

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.