So the device at the other end of the wire will see ‘\0’ characters? That doesn’t seem right to me. I think that the existing behaviour is correct. stringout records send strings — and no trailing ‘\0’. waveform records send blocks of arbitrary bytes.
So writing a string to a waveform record with Channel Access or dbpf also sets NORD to include the nil byte.
So my conclusion is that the stringout behavior in devAsynOctet is incorrect, it is not including the nil byte in the call to writeIt, but it should be.
Mark
|