Example code for HBM daq stream protocol