MATLAB

A simple MATLAB example can be found below.

cam = tof.KeaCamera("202001a");
cam.setOutputFrameTypes([tof.FrameType.Z]);
cam.start();

for i = 0:100
  frames = cam.getFrames();
  z = frames(1);

  % Data returns a MATLAB matrix, can only be called once
  z_mat = z.data();
end

cam.stop()

As can be seen in the example, a tof.Data class can be converted to a MATLAB matrix. Errors are reported through the error function.