Here, we will show how to simulate systems with sliding dynamics, also known as Filippov systems. The current simulation techniques have blocks, wrong solutions, and very long times when dealing with Filippov systems. We will study the case of a Wien bridge oscillator with a diode. The piecewise smooth model of the diode generates a sliding dynamics.