The "VISA Discard Events Function" VI, according to documentation, and also its default value, should accept the "all enabled" event type. This should be a valid input because it is valid to want all events to be flushed. But when given this input the error -1073807322 is output.