# Moku Delta MATLAB API

**URL:** <https://forum.liquidinstruments.com/t/moku-delta-matlab-api/1292>\
**Category:** Software & APIs\
**Created:** [September 14, 2026, 5:34pm UTC](https://forum.liquidinstruments.com/t/moku-delta-matlab-api/1292 "2026-09-14T17:34:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alkmbozkurt](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@alkmbozkurt](https://forum.liquidinstruments.com/u/alkmbozkurt)\
**Post date:** [September 14, 2026, 5:34pm UTC](https://forum.liquidinstruments.com/t/moku-delta-matlab-api/1292/1 "2026-09-14T17:34:28Z")

</div>

Hi,

I am trying to capture the frequency measurement of the Phasemeter from MATLAB API. But problem is for some random intervals acquistions slow down and the polling freezes, this leaves unequal and randomized sampling intervals in my data. I attached the code below, and I would appreciate any help on this. Is there a more efficient way to sample a measurement of an instrument into MATLAB?

I am usıng the instrument “pm” as Phasemeter and in a while loop acquire the measuremen tby .get\_data()

while True

…

try

```auto
        pmData = pm.get_data();

```

end

end

---

<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:** [October 8, 2026, 8:35pm UTC](https://forum.liquidinstruments.com/t/moku-delta-matlab-api/1292/2 "2026-10-08T20:35:44Z")

</div>

Hello @alkmbozkurt ,

Thank you for reaching out to Liquid Instruments! I would recommend to stream the data live, rather than use `get_data()`. The streamer uses a buffer to ensure that no points are missed and that they have consistent timing between samples. I have attached a basic MATLAB example to this reply. This should be a good starting point for configuring the system. I hope this helps!

-Dylan

[phasemeter\_streaming.m](https://forum.liquidinstruments.com/uploads/short-url/xyXhJZ1FsG0yFk75c2tLho1KV8e.m) (3.3 KB)
