Page 1 of 1

Comment on Matlab

Posted: Sun May 15, 2016 3:08 pm
by jmgirard
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

Re: Comment on Matlab

Posted: Mon Nov 28, 2016 11:18 am
by Tech