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.