Matlab_KATCP - david-macmahon/wiki_convert_test GitHub Wiki

The katcp class provides a way to interface to a ROACH board from Matlab. It is included as a part of the xps_library package of the CASPER toolflow.

This client requires the Matlab Instrument Control Toolbox for its TCP/IP functions.

To use the client, you first need to create a katcp object whose member functions are used to call KATCP functions:

roach = katcp('myroach.casper.berkeley.edu');

Once the katcp object has been created, most of the KATCP functions are available:

progdev(roach, 'boffile.bof');

write(roach, 'dev_name', 0, uint8([0:127]));

data = read(roach, 'dev_name', 0, 8);

Detailed documentation for each function is available in Matlab:

help katcp/katcp