High resolution data acquisition from Oscilloscope Moku:Pro

Hi,

I am working with Moku:Pro Oscilloscope using Python API. I want to get data from oscilloscope with the highest resolution possible, because I need to see small structures in a big pattern. How can I do it? This is what I have tried so far:

  1. There is an option frame_length in i.set_timebase(). By default it is equal to 1024 but I can increase it up to 16384. Is it the right way to increase the resolution of the data? Can I increase it even further?

  2. I tried to use method with a promising name i.save_high_res_buffer() but it didn’t work (I used the code from documentation - see below). How to solve this problem? How many points in this buffer? Does it increase the resolution of the data? How can I navigate in the memory of Moku:Pro (how can I know where my file is saved)?


# Connect to your Moku by its ip address using Oscilloscope('192.168.###.###')
# or by its serial number using Oscilloscope(serial=123)
osc = Oscilloscope(ip='192.168.73.1', force_connect=True)

try:   
    # Get new data
    response = osc.save_high_res_buffer()
    file_name = response["file_name"]
    data = osc.download(target="persist", file_name=file_name, local_path="~/high_res_data.li")
    
except KeyboardInterrupt:
    print('Break!')

# Close the connection to the Moku device
# This ensures network resources and released correctly
finally:
    osc.relinquish_ownership()

FileNotFoundError: [Errno 2] No such file or directory: '~/high_res_data.li' 
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
Input In [139], in <module>
      7     response = osc.save_high_res_buffer()
      8     file_name = response["file_name"]
----> 9     data = osc.download(target="persist", file_name=file_name, local_path="~/high_res_data.li")
     11 except KeyboardInterrupt:
     12     print('Break!')

File ~\AppData\Local\Programs\Python\Python39\lib\site-packages\moku\__init__.py:325, in Moku.download(self, target, file_name, local_path)
    322 target = validate_range(target, list(
    323     ['bitstreams', 'ssd', 'logs', 'persist', 'media']))
    324 operation = f"download/{file_name}"
--> 325 return self.session.get_file(target, operation, local_path)

File ~\AppData\Local\Programs\Python\Python39\lib\site-packages\moku\session.py:87, in RequestSession.get_file(self, group, operation, local_path)
     84 def get_file(self, group, operation, local_path):
     85     with self.rs.get(self.url_for(group, operation),
     86                      stream=True) as r:
---> 87         with open(local_path, 'wb') as f:
     88             for chunk in r.iter_content(chunk_size=8192):
     89                 f.write(chunk)

FileNotFoundError: [Errno 2] No such file or directory: '~/high_res_data.li'