The comments after each command are helpful. Where can I read more about the different messages I can send to the digitizer?
fwrite(s,[240 125 0 90 0 247]); % send host mode message to digitizer
fwrite(s,[240 125 0 34 247]); % send reset message to digitizer
fwrite(s,[240 125 0 3 0 100 247]); % send interval message to digitizer to set sampling interval to 100 ms
fwrite(s,[240 125 0 2 64 247]); % send resolution message to digitizer to set sampling resolution to 10-bit
pause(3); % wait until the digitizer has sent host mode and reset confirmation messages
b = get(s, 'BytesAvailable'); % find out how many bytes are in the buffer
fread(s,b); % empty buffer
Comment on Matlab
Moderator: Tech
Re: Comment on Matlab
I-CubeX Technical Support