User`s manual

Events and Callbacks
8-55
Read the data from the input buffer.
out = fscanf(s)
out =
9600;0;0;NONE;LF
5. Disconnect and clean up – When you no longer need s, you should
disconnect it from the instrument, and remove it from memory and from the
MATLAB workspace.
fclose(s)
delete(s)
clear s