How to use the XSCOPE discrete event type