$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
The VR experiment system presented provides users with the capability to engage in immersive experiments using VR devices, thereby enhancing the interaction between users and the experimental equipment. Furthermore, the system is web-based, eliminating the need for users to configure local environments. This design allows for the system's scalability, making it suitable for large-scale applications and training and educational purposes.
In traditional laboratory environments, users are required to personally configure and install software and hardware devices, which can consume a significant amount of time and resources26. However, virtual laboratories leverage cloud computing and virtualization technologies to move the laboratory environments to the cloud. Users can simply access the corresponding website through a web browser to utilize the functionalities and resources offered by the laboratories.
Figure 3 demonstrates that users can engage in WebVR experiments using different approaches. Users who do not have readily available VR devices can quickly conduct experiments through browser extensions. Users who have access to VR devices can immerse themselves in the experiments and interact directly with the experimental equipment, enhancing realism when exploring the experimental process. These two different ways of conducting WebVR experiments provide users with more options and enable a wider range of users to utilize the proposed system.
The double inverted pendulum examples demonstrate that the proposed WebVR-based virtual laboratory can run directly in a web browser without the need for additional software installations or configurations. This approach not only reduces user inconvenience but also greatly enhances the system's scalability. Additionally, users have the option to use VR devices for immersive interaction with the experimental equipment. By using handle controllers to adjust system parameters, users not only enhance their hands-on experience but also improve their theoretical knowledge and practical skills.
A total of 21 students participated in the experiment, where a questionnaire was conducted to further validate the applicability and effectiveness of the proposed system. We included students with backgrounds in automation and control engineering, and all of these students had previously participated in virtual experiments in NCSLab and had some basic knowledge of virtual experiments but had not participated in VR experiments in WebVR-based NCSLab. By adopting anonymous statistical data, we guarantee the privacy and security of the participants when filling out the questionnaire, thus ensuring the reliability of the questionnaire data.
The results of the questionnaire are shown in Figure 5, and the data indicate that the system proposed in this paper performs well in terms of realism and interaction with the device and achieves significant improvement compared to the traditional mouse-keyboard virtual experiment. In addition, participant feedback showed that the system not only increased students' interest and experimental skills in learning but also helped them better understand the experimental content, thus enhancing learning outcomes.
It is worth noting that most of the students believed that this type of experimentation is not only applicable to the current course and experiment but also has the potential to be applied in other courses and experiments.
The system proposed in this paper uses 3DS Max software for modeling the experimental equipment, which renders the experimental scenes using Unity engine software27 and allows users to interact with the equipment using VR devices. Finally, the experimental scenes are packaged into Web Graphics Library (WebGL) format and seamlessly integrated into the online laboratory system in the form of modularized components to construct a WebVR-based virtual laboratory system.

Figure 1: Control algorithm design for the double inverted pendulum system. Users can select different modules from the module library on the left to build the control algorithm for the double-inverted pendulum system. The selection and connection of modules are similar to those in MATLAB/Simulink. In the realm of double-inverted pendulum systems, a plethora of control methods abound. For the present system, the chosen strategy is the Linear Quadratic Regulator (LQR) control approach, and the figure illustrates the feedback matrix fashioned in accordance with the LQR controller. Please click here to view a larger version of this figure.

Figure 2: Configuration design for monitoring the double-inverted pendulum system. Users can select components from the component library above to design the monitoring configuration. If a VR experiment is desired, the 3D Model component must be selected. Users have the flexibility to opt for the Chart component to visually track alterations in the angular orientation and position of the double inverted pendulum or the input component for making adjustments to controller parameters. The double-click on the component permits users to establish associations between system variables for parameter configuration. Within the double-inverted pendulum system, the parameters of the chart are configured to encompass both the set and actual positions of the cart, along with the angles of the first order and double pendulums. After the completion of the monitoring configuration design, users should first activate the experiment by clicking the Start Experiment button. Following this, they can initiate the VR experiment by clicking the VR button located in the lower right corner of the 3D Model component. Please click here to view a larger version of this figure.

Figure 3: Conducting the double inverted pendulum system experiment using VR headset and the WebVR emulator extension. Users can conduct WebVR experiments through VR devices or the WebVR emulator extension. The cube is controlled to set the setpoint for the double inverted pendulum using a handle. Once the position of the cube is determined, the double inverted pendulum will steadily move towards the setpoint direction until it eventually stabilizes at the set position. On the right side of the 3D model is a chart that records the cart position and the angles of the first order and double pendulums. The chart also allows for the observation of the trend of changes in key system parameters. Please click here to view a larger version of this figure.

Figure 4: Structure of the double inverted pendulum system. There is a cube above the base, and the position of the cube is the setpoint of the cart. Users can pick up the cube and adjust the position by the handle. Once the alternating current (AC) servo motor propels the belt into rotation, the cart will proceed along the guide rail under the impetus of the belt. In concert with this motion, the first-order pendulum and the double pendulum will also undergo corresponding displacement and rotation. Please click here to view a larger version of this figure.

Figure 5: Data results of the survey questionnaire. The questionnaire comprised six questions, each meticulously detailed here. Each question had five options, roughly meaning strongly disagree, disagree, neutral, agree, and strongly agree, on a scale of 1 to 5. A total of 21 valid responses were collected. The mean values and standard deviation were calculated from these scores and graphically presented in the figure for clarity and interpretation. Please click here to view a larger version of this figure.