this was working well for a while, but now i'm getting all the same errors report by others (specifically the header error when i try to connect, and the wd error when i try to read a waveform). i'm not sure what changed in my setup that caused these problems to arise. very frustrating though.
using the waverunner 204MXi and instrument control toolbox version 2.5
I have been using this driver for the Wavesurfer 104Xs-A. At apparently random times we could not connect to it. The problem was in the wrong buffersize for TCPIP at connect time. This is calculated dynamicaly, and is dependent on the settings of the scope. Our solution was to fix the TCP buffersize to 10 Mbytes in the connect function in the initialization and cleanup.
set(interface, 'InputBufferSize', bufferSize);
set(interface, 'OutputBufferSize', bufferSize);
set(interface, 'InputBufferSize', 1000000);
set(interface, 'OutputBufferSize', 1000000);
Depending on your hardware you may even need larger buffers.
This is a nice item, however I notice the max InputBufferSize is less than the largest scope waveform size (48MS). Hence I can't seem to download largest files possible. Is this hardware limitation or due to Matlab driver code?
BTW, would be nice to step through drive code in debug mode to see where fails occur, and not have so much "Private Evaluation" when I can clearly see the code anyway in Instr.Driver.Editor (or just by opening .mdd file in text editor).