j123b567 / scpi-parser

Open Source SCPI device library
BSD 2-Clause "Simplified" License
463 stars 194 forks source link

SCPI-99:21.8.1 Correct handling of error queue overflow #67

Closed j123b567 closed 8 years ago

j123b567 commented 8 years ago

Reported in #66

If the queue overflows, scpi-parser doesn't behaves according to the SCPI specification which says (paragraph 21.8.1 The Error/Event Queue):

As errors and events are detected, they are placed in a queue. This queue is first in, first out. If the queue overflows, the last error/event in the queue is replaced with error -350,"Queue overflow" Any time the queue overflows, the least recent errors/events remain in the queue, and the most recent error/event is discarded.