Comment on Matlab

Discussion of I-CubeX applications and use. Post here questions about your project, product suggestions, bugs, setup issues, ..

Moderator: Tech

Post Reply
jmgirard
Posts: 1
Joined: Wed Dec 31, 1969 7:00 pm

Comment on Matlab

Post 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
Tech
Posts: 77
Joined: Tue Dec 31, 2002 7:00 pm

Re: Comment on Matlab

Post by Tech »

I-CubeX Technical Support
Post Reply