For most of the X-series cards, the number of differential AI channels is half the number of physical channels. (I assume this is related to the fact that the 6374 is a simultaneous sampling card, which most of the X-series cards are not.) But for that card, it seems the number of differential channels is equal to the number of physical channels.
For a quick-and-dirty fix, assuming the PCIe-6374 is the only card you need to use, I would suggest removing the "/2" on line 4 of the file
+ws/getNumberOfDifferentialAITerminalsFromDevice.m
I'm afraid my time commitments don't allow me to do much more right now. In any case, I'm *very* reluctant to provide bug-fixes for older versions of WaveSurfer.
Hope this helps,
Adam Taylor
HHMI Janelia