Electrical automation technology is one of the essential skills that electrical students must master. This article focuses on building virtual simulation scenarios for practical electrical courses. Firstly, based on the current shortage of practical training equipment, insufficient expansion and updating capabilities of practical training equipment, and the explosive demand for virtual simulation training platforms in universities, a survey and analysis were conducted on the actual needs of electrical system courses, and the framework of the electrical teaching platform was built with a demand-oriented approach. Virtual simulation training is a functional link in the teaching platform. Then, based on specific training projects, the process of building virtual simulation experimental scenes was introduced, and models and data processing schemes between models were completed; Finally, based on the constructed course platform, the course tasks were completed in real classrooms and positive feedback was received.