This may sound very weird, but I have a need to read the last few bytes from the output queue and leave the others intact. Is this possible at all?
To elaborate, if I do a ibwrt "*IDN?; *ESR?", is there a way by which I can get the output of "*ESR?" alone?
Or can it be done in some other indirect way - read everything, but put back a portion of the read buffer? Is there any way to manipulate the output queue of any 488.2 device?
Any help is appreciated.
Thanks,
Raj