RB-620 with MatLab

I’ve tried CedrusResponseBox.m and cedrusxid.m (from this forum) with no luck. I tried downloading Cogent2000 but it isn’t compatible with MatLab 7.5 yet.

I got quite close with opening and closing the box with CedusResponseBox.m but line 452

response=fread(dev.link,bytes);

is suppose to generate a single number but for me generated this matrix:

99
49
48
13
95
100
50
13

where bytes = 8.

Thanks in advance for any ideas.

Wakefield