The virtual prototypes for debug and analysis during embedded software or algorithm development can make debugging easier, faster and more predictable. By means of this solution, users can set up a virtual prototype model with 3D Experience platform and write control code with some special software. And then, users can build a virtual connection between the model and code based on a specific communication interface. And then, the control code can send the actual demands to the model to control it preview the control situation of complex system automatically. Based on this method, it can significantly reduce the debugging cost and improve the quality of code.