I've just encountered a problem with both the command-line caget and
camonitor when you try to read waveforms in conjunction with other data.
If you try to read a single value followed by a waveform then you only
get the first point of the waveform. Similarly if you try to read a
shorter waveform followed by a longer waveform then you only get part of
the longer waveform.
Both of these are to do with how the maximum size is determined. To fix
these I have altered how these function calculate this size. If a
specified number of points is requested (using -# N) then that becomes
the maximum returned. Otherwise the whole array is read back always.
I hope this doesn't break any expected behaviour. The patches are
attached.
Malcolm
Malcolm Walters
01235 778557
Diamond Light Source Ltd.
Rutherford Appleton Laboratory,
Chilton, Didcot, Oxfordshire OX11 0QX
[email protected]