CN113593337A - Antenna virtual simulation experiment platform - Google Patents

Antenna virtual simulation experiment platform Download PDF

Info

Publication number
CN113593337A
CN113593337A CN202110791238.0A CN202110791238A CN113593337A CN 113593337 A CN113593337 A CN 113593337A CN 202110791238 A CN202110791238 A CN 202110791238A CN 113593337 A CN113593337 A CN 113593337A
Authority
CN
China
Prior art keywords
antenna
data
scene
interaction
experimental
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110791238.0A
Other languages
Chinese (zh)
Inventor
李大庆
于昌伟
朱宣冰
周文贺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202110791238.0A priority Critical patent/CN113593337A/en
Publication of CN113593337A publication Critical patent/CN113593337A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of electronic information, and discloses an antenna virtual simulation experiment platform which comprises an instrument library, a scene simulation module, a virtual interaction module, a data storage and processing module, a function and drawing module and an assessment and scoring module, wherein the instrument library comprises experiment instruments, experiment antennas and other experiment equipment, the data storage and processing module comprises global data storage and field intensity calculation, and the function and drawing module comprises normal antenna directivity diagrams and axial antenna directivity diagrams drawn under a rectangular coordinate system and a polar coordinate system; the virtual simulation test platform can reduce the investment of colleges and universities on expensive test equipment, is not bound by an experimental field during experiments, and can enable students to be in a first-person immersion experience state like games through the virtual simulation test platform in the teaching process, so that the students can be better taught, and the students can be better familiar with the steps of antenna parameter measurement.

Description

Antenna virtual simulation experiment platform
Technical Field
The invention relates to the technical field of electronic information, in particular to an antenna virtual simulation experiment platform.
Background
In recent years, with the progress of science and technology and the rapid development of economic construction, advanced education in China enters a brand-new rapid development period, the high-speed development of technology and the innovation target of an education mode provide new requirements and challenges for teaching work in colleges and universities, in the teaching field of multiple major, the interdisciplines and the disciplines are more and more frequently fused, the research results are more and more rapidly updated, and meanwhile, the culture of engineering technical talents is more emphasized. Under the current situation, the teaching form based on the traditional teaching materials and courseware can not meet the requirement of modern teaching gradually. The proportion of experimental teaching in professional course teaching of colleges and universities is increased, and the method becomes the direction of many colleges and universities for education reform, however, for most domestic colleges and universities, due to the constraint of funds, fields and the like, for some laboratory environments and experimental equipment which are expensive and high in maintenance and construction cost, many schools cannot be comprehensively constructed in a matched manner; on the other hand, experiments requiring relatively harsh measurement environments and operations such as strong current experiments or chemical experiments have certain dangerousness, and it cannot be guaranteed that each student can fully perform experimental operations and learning. Therefore, for many current experimental courses, the teaching effect is relatively poor, students cannot fully learn and feel experimental instruments and experimental operations, and meanwhile teachers cannot effectively assess the learning effect of the experimental operations of the students, score the students reasonably and fairly, and cannot timely receive experimental teaching feedback of the students. The existence of the problems restricts the development of experimental teaching in colleges and universities from multiple aspects.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides an antenna virtual simulation experiment platform, which solves the problems in the background technology.
(II) technical scheme
In order to achieve the purpose, the invention provides the following technical scheme: the antenna virtual simulation experiment platform comprises an instrument library, a scene simulation module, a virtual interaction module, a data storage and processing module, a function and drawing module and an examination and scoring module, wherein the instrument library comprises experiment instruments, experiment antennas and other experiment equipment, the data storage and processing module comprises global data storage and field intensity calculation, the function and drawing module comprises normal antenna directivity diagrams and axial antenna directivity diagrams drawn under a rectangular coordinate system and a polar coordinate system, and the examination and scoring module comprises examination and scoring of experiment data and examination and scoring of experiment operation.
Preferably, the experimental apparatus comprises a field intensity meter, a signal source and a power meter, the experimental antenna comprises a helical antenna, a yagi antenna and a horn antenna, and the other experimental devices comprise an antenna frame, an antenna turntable, a coaxial line and a power meter probe.
Preferably, the virtual interaction module controls interaction between the user and the experiment platform, and is also responsible for controlling the whole experiment logic, and the virtual interaction module mainly divides the interaction mode into three types for management, wherein the first type is click, input and output based on a UGUI interface, the second type is operation control for controlling the first human-person controller to move in a virtual experiment scene through a mouse and a keyboard, and the last type is interaction control between the user and an experiment instrument in the scene.
Preferably, the global data stored in the data storage and processing module includes an antenna erection distance, a power value, a rotation angle and a field strength value, the global data does not disappear along with the updating of the operation and the replacement of the scene, and the data storage and processing module is also responsible for calculating all numerical values of the whole experimental platform.
Preferably, the function And drawing module is a main module for automatically drawing the antenna directivity pattern according to data input by a user in the data processing panel, the module includes an antenna directivity function value calculation part for the normal helical antenna And the axial helical antenna, And is capable of calculating a corresponding directivity value according to an input angle value, storing data for drawing points And lines, And the drawing part draws plug-in development based on a Chart And Graph visualization Chart, thereby realizing drawing of the antenna directivity pattern in a rectangular coordinate system And a polar coordinate system.
Preferably, the assessment and scoring module is responsible for monitoring the error operation of the user in the experimental process, and triggering the scoring module to deduct corresponding scores according to the error operation of the experimental operation part, and after the final data is submitted, the assessment and scoring module compares the data submitted by the user with theoretical calculation data, and deducts corresponding scores for data errors, wherein the experimental operation part comprises a power meter zero setting operation, a calibration factor operation and a mode selection operation, and the data comprises main lobe opening angle data and gain coefficient data.
Preferably, the operation method of the antenna virtual simulation experiment platform includes the following steps:
s1, entering an experimental environment: after entering an antenna virtual simulation platform, inputting information such as a school number, a name, a professional class, a machine number and the like, entering an experiment selection interface, clicking a simulation measurement experiment for selecting an antenna directional diagram and gain thereof, then entering an antenna erection interval selection interface, inputting and recording an erection distance R, clicking to determine, and entering a left-side roof 3D virtual scene;
s2, measuring the output power of the signal source:
s21, clicking an instrument column to form an instrument library, then placing a signal source and a power meter, clicking a probe of the power meter and clicking to connect the signal source;
s22, pressing a power switch of the signal source, and adjusting a frequency knob of the signal source according to the central frequency of the antenna to be measured;
s23, a black probe on the motor signal source panel shows an amplified picture of the probe, and a calibration factor on the frequency meter is selected according to the relationship between the frequency marked on the probe and the calibration factor;
s24, turning on a power switch of the power meter to zero;
s25, setting the working mode of the signal source to be equal-amplitude or square wave, and adjusting the power knob to enable the meter head of the power meter to display power with a certain numerical value, wherein the numerical value can be 5-10 mW;
s26, processing click data, analyzing and processing a table entry when test data appear, and adding the power value P and the two-antenna frame set distance R into the data table entry;
s27, externally modulating the working mode of the signal source, turning off the power supply of the power meter, and detaching the probe of the power meter;
s3, mounting an antenna and measuring field strength:
s31, placing a manual turntable of the antenna to be tested, installing the antenna to be tested and clicking to determine;
s32, placing a standard antenna frame, selecting and installing a proper standard antenna according to the center frequency of the antenna to be tested;
s33, placing a field intensity meter, clicking a coaxial line to connect the signal source and the standard antenna and connect the field intensity meter and the antenna to be tested, and placing the working mode of the signal source with equal amplitude;
s34, measuring the field intensity by using a field intensity meter:
s341, clicking the field intensity meter to display an amplified panel picture, after starting the motor on key, firstly pressing an end key, then pressing a mode key to enter a measurement mode selection interface, selecting frequency spectrum analysis through an upper arrow and a lower arrow, and pressing the end key to determine;
s342, clicking the center frequency, inputting the center frequency value of the antenna to be measured, and defaulting the measurement bandwidth to 100 MHz;
s343, clicking a meas/disp test/display key, sequentially clicking a measurement key, a field intensity key, a switch-off key and a selection antenna key, selecting a standard antenna type through an upper arrow and a lower arrow, and pressing an end key to determine;
s344, rotating the antenna turntable, finding out a maximum value and a minimum value in one circle, recording the angle theta and the field intensity E, reasonably selecting the measured density according to the main lobe opening angle, measuring 30 groups of data in one circle, recording the angle and the field intensity, and filling the data into a table;
s4, data processing and drawing:
s41, clicking a data processing menu to enter a data processing section, and filling the measured data into a form;
s42, clicking a sorting button, sorting the measured data according to theta from small to large, clicking to calculate E (mV/m) and calculating E EmaxA button for automatically calculating the field intensity and the normalization value;
s43, calculating the main lobe opening angle 2 theta and filling in a table, and adding EmaxFilling the values and the calculated gain value G into a table;
s44, clicking the buttons of the rectangular coordinate system and the polar coordinate system to draw the directional diagram respectively, and writing the drawn diagram into a report;
and S45, clicking a scoring menu to check the experiment results.
Preferably, the erection distance R in step S1 is a distance between two buildings, and the default value is 50 m; before a signal source power switch is pressed in the step S22, the left-handed power knob is adjusted to a smaller value, the working mode is externally adjusted, and the specific mode of adjusting the frequency knob of the signal source is to press the left mouse button to rotate; the specific way of selecting the calibration factor on the frequency meter in the step S23 is to press the calibration factor knob on the mouse left button rotary power meter; when the power switch of the power meter is turned on in the step S24, the signal source is set to an external modulation state; in the step S32, the yagi type standard antenna 1 is suitable for frequencies less than 1GHz, and the horn type standard antenna 2 is suitable for frequencies of 2-10 GHz.
Preferably, the method for developing the antenna virtual simulation experiment platform includes the following steps:
s1, modeling of an instrument in 3D:
the antenna model, the field intensity meter, the power meter, the signal source and other instruments used in the experiment are all built in the Cinema4D software, parts of the instruments needing triggering interactive operation, such as switches, knobs, keys, indicator lamps, pointers and the like, are independently modeled, are assembled together through an assembly body, a UV surface of the model is unfolded through a UVEdit tool, a mapping of a three-dimensional model is drawn in photoshop, and finally the mapping is led into the Cinema4D, the material of the model is manufactured through a material editor built in the Cinema4D, the material is edited in a related manner so as to achieve a relatively real rendering effect, the antenna turntable, the horn antenna, the helical antenna and the yagi antenna are built through the Cinema4D software, when the horn antenna is modeled, a lofting generator tool built in the Cinema4D is mainly used, a pen tool is used for drawing a spline of a waveguide part of the horn antenna, the spline is placed under the lofting generator, copying and dragging a new spline, adjusting parameters such as the size and the rotation of the new spline, generating a 3d model part from an initial spline to the copied new spline, completing modeling of a horn antenna waveguide part through continuous lofting operation and parameter adjustment, drawing a spiral spline profile of a metal spiral line shape of the spiral antenna through a scan generator, and then drawing a length spline to control the length generated by scanning. Placing the contour spline and the length spline under the scan generator side by side, and adjusting the parameters of the scan generator: generating a progress, ending shrinkage, ending rotation, end point scaling and the like to generate an ideal metal spiral line three-dimensional model;
s2, development of a user interaction interface based on UGUI:
the method comprises the steps of systematically designing elements such as UI (user interface) and graphic icons required by an experimental platform through a program prototype design platform and Photoshop manufacturing, wherein the blue science and technology sensing theme is consistent with the dominant hue of an experimental scene and is concise and uniform in overall style, finally orderly arranging and exporting the elements, strictly standardizing the naming of picture materials, importing UI (user interface) picture resources into UGUI (user generated content), converting all pictures into sprites after importing the UI picture resources, and packaging and synthesizing the sprites into an image set;
s3, experimental scene construction and optimization:
the experimental scene mainly comprises two high buildings at a certain distance, when the distance between the buildings is selected by a third person called visual angle, the camera shoots side pictures of the two buildings in an orthogonal mode, and renders the pictures on a screen in real time, the main scene for experimental development is mainly two balcony scenes, on the scene construction, on one hand, two roof scenes are distinguished by arranging different roof objects, on the other hand, a required desktop, an antenna frame and an antenna turntable are arranged in advance, so as to avoid the situation that a user falls down due to error operation in the experimental operation, the free moving range of the user is limited during the scene setting, BoxColder is additionally arranged around the scene, a player can not enter other non-interactive scenery areas, a slope is arranged at the middle edge of the antennas at two sides, and the user can move to the slope to observe the situation of the balcony at the opposite roof, the transmission button is triggered by a collision trigger arranged on the slope to realize the jump between the two balcony scenes, creating a plurality of empty objects in the Hierarchy manager at a scene editing window, and naming the empty object weight according to the grouping, dragging the corresponding scene 1 instrument, scene 2 instrument, antenna and antenna turntable, different UI interfaces, user controller and overall scene set model to the lower part of the corresponding empty object, the whole Hierarchy looks more concise and convenient for unified management by folding the corresponding sceneModels, in the aspect of scene optimization, a scene object model is clicked, a Static button in an aspect of an aspect option card is clicked, and a Static button is clicked, setting and applying the Lighting management Window to all sub-objects under the object, conveniently and uniformly Lighting and baking the objects in the scene, clicking a Window bar, opening a Lighting management Window, checking a Baked GI option in the Lighting management Window, and then changing a GPU use option from a default value to a Medium; s4, development of an experimental logic control script:
writing Mgr.cs script, defining several methods of callable public property in the script, defining a series of methods of switching interface in the script in UI management aspect, calling open source DoTween animation plug-in Unity shop in OpenPanel and closePanel two methods, implementing dynamic switching animation of UI interface by writing program, in scene jump aspect, Mgr management script uniformly numbering the final packaged published scene by Unity project setting, transferring corresponding scene serial number by LoadScreen method under scene manager to implement scene jump, in user management control, after entering experimental operation scene, Mgr management script firstly obtaining a first person role controller respectively positioned on the top of building and an orthogonal camera for shooting and displaying the picture between two sides of building, loading the scene, closing two role controllers, opening the orthogonal camera, displaying a picture shot by the orthogonal camera as a background picture selected by the inter-floor distance, closing the orthogonal camera after entering the experimental operation, opening the role controller of the balcony 1, and similarly after the scene jumps to the balcony 2;
s5, development of an object interaction script:
in the requirement design of the experiment, a user needs to operate instruments such as a signal source, a power meter, a field intensity meter and the like, the Interaction types to be completed in the experiment operation mainly comprise clicking of buttons of each instrument, rotation of a knob of the instrument, triggering of an event function through clicking of a Mouse and the like, the Interaction types are mainly realized through a Mouse Interaction script, the Mouse Interaction script is hung on an object needing to be interacted, in order to enable the object to realize an Interaction function, a collision device needs to be added to the object so as to realize Interaction triggering, in the first part of the script, besides the Interaction form is selected, the distance of Interaction triggering, the response speed of Interaction triggering, whether animation is added to an Interaction process or not can be modified through adjustment of parameters, color change and highlight display can be set for the object needing Interaction triggering, the second function part of the script needs to select a Show Tooltip option for activation, the main function is to trigger a prompt panel while interacting, the third functional part of the script is an Event use part, and a Using Event option is selected, so that two types of events can be added for object interaction: the calling of the function Event of the Event interaction Enter and the Event interaction Exit is basically consistent with the trigger mechanism of the Button Event OnClick method in the UGUI, the trigger functions are ingeniously utilized, different trigger functions are compiled aiming at different interaction function requirements, and a plurality of interaction functions can be realized;
s6, controlling and switching the visual angle of the first-person user:
in the design of the first-person controller, the platform adopts a design method of a Player of a first-person shooting game common in game development. The position movement of a player is controlled through a WASD key on a keyboard, the rotation and the orientation of a visual angle are controlled through a mouse, in the operation process, a user can press a space key at any time, when the space key is detected to be pressed, the visual angle of a camera of a first-person controller is locked, the mouse is released and displayed, mouse click interaction can be carried out on an object in front of the surface, in a data recording part, when the user clicks a data recording panel, in addition to opening the data recording panel, a method of OpenOrCloseFollowCamera is also triggered at the same time, after the method is triggered, the position and the rotation value of the camera of the first-person controller used by the current user are obtained, a Transform value is given to a new camera with a fixed visual angle, the visual angle is ensured to be synchronous with the visual angle before the data recording panel is opened, and simultaneously, the first-person controller is closed, so that the gravity center of experimental interaction is released from a three-dimensional virtual scene, carrying out a series of operations based on UGUI on a UI interface;
s7, development of functions of experimental instruments:
the field intensity meter, the signal source and the power meter are three experimental instruments which are the core in the experiment, each experimental instrument has own function and characteristic and corresponds to the interactive development of the experiment, namely different interactive development requirements, therefore, for each instrument, a script is independently written for the management of the function and the interaction when a platform is developed, the scripts corresponding to the field intensity meter, the signal source and the power meter are respectively DBMetgr.cs, SignalSourceMgcs and PowerMeterMgcs, the scripts are hung on the corresponding instruments by defining public attribute Gameobject variables on the scripts under the environment of an editor, sub-objects such as a knob, a switch, a pointer and the like under the instruments are assigned to corresponding interfaces, the scripts are obtained and controlled through codes, meanwhile, the public attribute text variables are defined, and data required to be displayed by the instruments are updated and displayed in real time in an Update function;
s8, data input acquisition and global storage:
the platform defines static type StaticData used for storing data recorded in each link, a data recording form is a collection of a plurality of InputField components, in order to reasonably and conveniently manage a plurality of InputFields, a DataGroup type is defined during development according to a program for orderly writing, reading, storing and updating synchronization of groups, four variables of InputField attributes are defined in a script, angles, two field strength values and E/Emax values in different units are respectively stored, four InputField components corresponding to a group of data are placed under the same empty object, the renamed empty object is a 'data group', a DataGroup script is hung, the four InputField objects are correspondingly assigned to the script, the object is stored, and the script is dragged into project engineering to be made into a Prefabs prefabricated body;
s9, data processing and calculation:
the data processing part is an important component of the whole experiment platform, the experiment principle of the simulation measurement experiment of the antenna directional diagram and the gain is based on a rotating antenna method, the field intensity data received by the antenna to be measured in all directions between 0 and 360 degrees is measured, the directional diagram of the antenna is drawn according to the field intensity data, and then the gain parameter of the antenna is calculated, firstly, the calculation of the field intensity E is programmed and simulated in matlab, then, codes are transplanted to Unity through C # programming, a CalE function for calculating the field intensity value is compiled, an input variable is an angle value of a floating point value, a return value is a field intensity value calculated, then, data test is carried out, the correctness of data calculation is ensured, when the antenna to be measured is selected, the antenna type is selected, and then, the antenna parameter selection interface is entered, wherein the determined known parameters comprise: the number n of the spiral antenna coils, the center frequency f, the spiral spacing s, the perimeter c and the height h are stored, corresponding parameter data are stored after the selection is finished, the power P is input by combining the floor spacing R updated in the static data script, the gain coefficient G is calculated on the basis of the parameters, and the gain coefficient G is calculated according to a formula:
Figure BDA0003161151830000091
calculating the maximum value of the radiation field intensity, further calculating the radiation field intensity values of the antenna at different angles, and obtaining the far field directivity of the normal mode helical antenna according to the qualified directivity function relationship of the electric field, wherein the function formula is a formula II:
Figure BDA0003161151830000092
wherein, beta0=2π/λ0,β=2π/λg,S=λg0The directional diagram of the single-turn helical antenna is approximate to cos theta, and the normalized directional diagram of the single-turn axial mode helical antenna is obtained by replacing a point source with the single-turn helixFormula (c):
Figure BDA0003161151830000101
wherein,
Figure BDA0003161151830000102
in addition, aiming at the sorting function of the data processing interface, based on the construction of the DataGroup class, the bubble sorting is carried out on the angle values of different data groups, the field intensity values corresponding to the angle values are updated in real time in the sorting process, the updated data are stored and displayed on the table in real time through the storage button, and the same principle is developed for the button for automatically calculating partial data in the data processing toolbar;
s10, development of a drawing module:
during development, the experiment platform selects a Chart And Graph visual icon drawing plug-in unit Asset Store, performs programming development on the basis of the Chart And Graph visual icon drawing plug-in unit Asset Store, And realizes that the antenna directivity diagrams of the axial spiral antenna And the normal spiral antenna are respectively drawn under a rectangular coordinate system And a polar coordinate system;
s11, development of a scoring system:
the scoring system is mainly divided into two parts, the first part is a process part, namely, whether error operation and missing operation steps exist in the whole process of user experiment operation is judged, the second part is a data part, namely, whether data errors exist in the calculation of key parameters is judged, error judging modules are respectively developed aiming at the two major errors, the default value of a score variable in static data is correspondingly modified to be 100, scoring is generated at the end of an experiment and displayed on an experiment scoring interface, and for the error judgment of the experiment operation part, an independent trigger function is provided for each important step interaction in interactive development, so that a platform respectively introduces a global static variable into the trigger function, records the called times of the function, finally judges whether the operation is missing and repeated according to the called times, further deducts corresponding scores, and judges the errors of data calculation, only the input value is compared with the theoretical calculation value after the data are submitted, and if the corresponding fraction is deducted by mistake
(1) And deduction points of data errors:
g, calculation error;
a main lobe opening angle error;
(2) and point of deduction of experimental operation:
adjustment error/non-adjustment of calibration factor;
the power meter is not zeroed;
the switch is opened when the signal source is not connected;
no outer modulation is pressed.
S12, releasing to a WebGL platform:
and clicking File-Build Settings, then clicking Player Settings on a publishing interface, setting a panel construction option on the popped data, and then clicking Build to complete publishing, wherein if IIS needs to be deployed to realize network connection sharing, the WebGL File published by Unity is published to the IIS through Visual Studio.
(III) advantageous effects
The invention provides an antenna virtual simulation experiment platform, which has the following beneficial effects:
the virtual simulation test platform can reduce the investment of colleges and universities on expensive test equipment, is not bound by an experimental field during experiments, can enable students to be in a first-person immersion experience state like games in the teaching process, can enable the students to better teach the students, can enable the students to be better familiar with the steps of antenna parameter measurement, and can be familiar with and master the use of an antenna parameter measuring instrument, and can conduct examination and grading on the experiment operation and the obtained data of the students, so that the burden of teachers on examination and grading on the site can be greatly reduced.
Drawings
FIG. 1 is a general framework of the present invention;
FIG. 2 is a schematic diagram of the development process of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1-2, the present invention provides a technical solution: the virtual simulation experiment platform of the antenna comprises an instrument library, a scene simulation module, a virtual interaction module, a data storage and processing module, a function and drawing module and an assessment and grading module, wherein the instrument library comprises experimental instruments, experimental antennas and other experimental equipment, the experimental instruments comprise field intensity meters, signal sources and power meters, the experimental antennas comprise spiral antennas, yagi antennas and horn antennas, the other experimental equipment comprises antenna frames, antenna turntables, coaxial lines and power meter probes, the virtual interaction module controls interaction operation between a user and the experimental platform and is also responsible for control of the whole experimental logic, the interaction mode is mainly divided into three types for management, the first type is clicking, inputting and outputting based on a UGUI interface, the first type mainly comprises clicking operation of the user on a top navigation bar, each group of measurement data and important parameters input in a data processing table, The data processing and calculating module feeds back data display to a user, the second type is operation control that the user controls the first human-person controller to move in a virtual experiment scene through a mouse and a keyboard, the user can freely roam in a limited range of the virtual experiment scene to carry out various experiment operations, the last type is interaction control of the user and an experiment instrument in the scene, the interaction control mainly comprises basic operations of instruments such as a field intensity meter, a signal source, a power meter and the like, rotation of an antenna turntable and the like, the data storage and processing module comprises storage of global data and calculation of field intensity, the field intensity parameter displayed in real time by the field intensity meter, realization of an automatic parameter calculating function on a data processing panel and the like, wherein the stored global data comprises antenna erection distance, power value, rotation angle and field intensity value, and the global data cannot disappear along with the update of the operation and the replacement of the scene, the independent storage of important data is also convenient for reading various calculation functions And data of a subsequent drawing module, the data storage And processing module is also responsible for calculating all numerical values of the whole experiment platform, the function And drawing module comprises a rectangular coordinate system And drawing of a normal antenna directional diagram And an axial antenna directional diagram under a polar coordinate system, the function And drawing module is a main module for automatically drawing the antenna directional diagram function according to data input by a user in a data processing panel, the module comprises an antenna directional function value calculation part of a normal spiral antenna And an axial spiral antenna, the corresponding directional numerical values can be calculated according to an input angle value, data is stored for drawing points And lines, the drawing part draws And develops a plug-in based on a Chart And Graph visualization Chart, drawing of the antenna directional diagrams under the rectangular coordinate system And the polar coordinate system is realized, And the examination And scoring module comprises examination And scoring of experiment data And examination And scoring of experiment operation, the system is responsible for monitoring the error operation of a user in the experimental process, and according to the error operation of an experimental operation part, a scoring module is triggered to deduct corresponding scores, in addition, after the final data are submitted, the assessment and scoring module can compare the data submitted by the user with theoretical calculation data, and the corresponding scores are deducted due to the data error, wherein the experimental operation part comprises a power meter zero setting operation, a calibration factor operation and a mode selection operation, and the data comprise main lobe opening angle data and gain coefficient data.
The operation method of the antenna virtual simulation experiment platform comprises the following steps:
s1, entering an experimental environment: after entering an antenna virtual simulation platform, inputting information such as a school number, a name, a professional class, a machine number and the like, entering an experiment selection interface, clicking a simulation measurement experiment for selecting an antenna directional diagram and gain thereof, then entering an antenna erection interval selection interface, inputting an erection distance R and recording the erection distance R, wherein the R is the distance between two buildings, the default value is 50m, clicking and determining, and entering a left-side roof 3D virtual scene;
s2, measuring the output power of the signal source:
s21, clicking an instrument column to form an instrument library, then placing a signal source and a power meter, clicking a probe of the power meter and clicking to connect the signal source;
s22, before a signal source power switch is pressed down, a left-handed power knob is adjusted to a small value, the working mode is externally adjusted, the signal source power switch is pressed down, and a left mouse button is pressed to rotate a frequency knob of a signal source according to the central frequency of an antenna to be measured;
s23, a black probe on the motor signal source panel shows an amplified picture of the probe, and a calibration factor knob on the mouse left key rotary power meter is pressed to select a calibration factor on the frequency meter according to the relationship between the frequency marked on the probe and the calibration factor;
s24, turning on a power switch of the power meter to zero, and at the moment, putting the signal source in an external modulation state;
s25, setting the working mode of the signal source to be equal-amplitude or square wave, and adjusting the power knob to enable the meter head of the power meter to display power with a certain numerical value, wherein the numerical value can be 5-10 mW;
s26, processing click data, analyzing and processing a table entry when test data appear, and adding the power value P and the two-antenna frame set distance R into the data table entry;
s27, externally modulating the working mode of the signal source, turning off the power supply of the power meter, and detaching the probe of the power meter;
s3, mounting an antenna and measuring field strength:
s31, placing a manual turntable of the antenna to be tested, installing the antenna to be tested and clicking to determine;
s32, placing a standard antenna frame, selecting and installing a proper standard antenna according to the center frequency of the antenna to be measured, wherein the yagi type standard antenna 1 is suitable for the frequency less than 1GHz, and the horn type standard antenna 2 is suitable for the frequency of 2-10 GHz;
s33, placing a field intensity meter, clicking a coaxial line to connect the signal source and the standard antenna and connect the field intensity meter and the antenna to be tested, and placing the working mode of the signal source with equal amplitude;
s34, measuring the field intensity by using a field intensity meter:
s341, clicking the field intensity meter to display an amplified panel picture, after starting the motor on key, firstly pressing an end key, then pressing a mode key to enter a measurement mode selection interface, selecting frequency spectrum analysis through an upper arrow and a lower arrow, and pressing the end key to determine;
s342, clicking the center frequency, inputting the center frequency value of the antenna to be measured, and defaulting the measurement bandwidth to 100 MHz;
s343, clicking a meas/disp test/display key, sequentially clicking a measurement key, a field intensity key, a switch-off key and a selection antenna key, selecting a standard antenna type through an upper arrow and a lower arrow, and pressing an end key to determine;
s344, rotating the antenna turntable, finding out a maximum value and a minimum value in one circle, recording the angle theta and the field intensity E, reasonably selecting the measured density according to the main lobe opening angle, measuring 30 groups of data in one circle, recording the angle and the field intensity, and filling the data into a table;
s4, data processing and drawing:
s41, clicking a data processing menu to enter a data processing section, and filling the measured data into a form;
s42, clicking a sorting button, sorting the measured data according to theta from small to large, clicking to calculate E (mV/m) and calculating E EmaxA button for automatically calculating the field intensity and the normalization value;
s43, calculating the main lobe opening angle 2 theta and filling in a table, and adding EmaxFilling the values and the calculated gain value G into a table;
s44, clicking the buttons of the rectangular coordinate system and the polar coordinate system to draw the directional diagram respectively, and writing the drawn diagram into a report;
and S45, clicking a scoring menu to check the experiment results.
The development method of the antenna virtual simulation experiment platform comprises the following steps:
s1, modeling of an instrument in 3D:
the antenna model, the field intensity meter, the power meter, the signal source and other instruments used in the experiment are all built in the Cinema4D software, parts of the instruments needing triggering interactive operation, such as switches, knobs, keys, indicator lamps, pointers and the like, are independently modeled, are assembled together through an assembly body, a UV surface of the model is unfolded through a UVEdit tool, a mapping of a three-dimensional model is drawn in photoshop, and finally the mapping is led into the Cinema4D, the material of the model is manufactured through a material editor built in the Cinema4D, the material is edited in a related manner so as to achieve a relatively real rendering effect, the antenna turntable, the horn antenna, the helical antenna and the yagi antenna are built through the Cinema4D software, when the horn antenna is modeled, a lofting generator tool built in the Cinema4D is mainly used, a pen tool is used for drawing a spline of a waveguide part of the horn antenna, the spline is placed under the lofting generator, copying and dragging a new spline, adjusting parameters such as the size and the rotation of the new spline, generating a 3d model part from an initial spline to the copied new spline, completing modeling of a horn antenna waveguide part through continuous lofting operation and parameter adjustment, drawing a spiral spline profile of a metal spiral line shape of the spiral antenna through a scan generator, and then drawing a length spline to control the length generated by scanning. Placing the contour spline and the length spline under the scan generator side by side, and adjusting the parameters of the scan generator: generating a progress, ending shrinkage, ending rotation, end point scaling and the like to generate an ideal metal spiral line three-dimensional model;
s2, development of a user interaction interface based on UGUI:
the method comprises the steps of systematically designing elements such as UI (user interface) and graphic icons required by an experimental platform through a program prototype design platform and Photoshop manufacturing, wherein the blue science and technology sensing theme is consistent with the dominant hue of an experimental scene and is concise and uniform in overall style, finally orderly arranging and exporting the elements, strictly standardizing the naming of picture materials, importing UI (user interface) picture resources into UGUI (user generated content), converting all pictures into sprites after importing the UI picture resources, and packaging and synthesizing the sprites into an image set;
s3, experimental scene construction and optimization:
the experimental scene mainly comprises two high buildings at a certain distance, when the distance between the buildings is selected by a third person called visual angle, the camera shoots side pictures of the two buildings in an orthogonal mode, and renders the pictures on a screen in real time, the main scene for experimental development is mainly two balcony scenes, on the scene construction, on one hand, two roof scenes are distinguished by arranging different roof objects, on the other hand, a required desktop, an antenna frame and an antenna turntable are arranged in advance, so as to avoid the situation that a user falls down due to error operation in the experimental operation, the free moving range of the user is limited during the scene setting, BoxColder is additionally arranged around the scene, a player can not enter other non-interactive scenery areas, a slope is arranged at the middle edge of the antennas at two sides, and the user can move to the slope to observe the situation of the balcony at the opposite roof, the transmission button is triggered by a collision trigger arranged on the slope to realize the jump between the two balcony scenes, creating a plurality of empty objects in the Hierarchy manager at a scene editing window, and naming the empty object weight according to the grouping, dragging the corresponding scene 1 instrument, scene 2 instrument, antenna and antenna turntable, different UI interfaces, user controller and overall scene set model to the lower part of the corresponding empty object, the whole Hierarchy looks more concise and convenient for unified management by folding the corresponding sceneModels, in the aspect of scene optimization, a scene object model is clicked, a Static button in an aspect of an aspect option card is clicked, and a Static button is clicked, setting and applying the Lighting management Window to all sub-objects under the object, conveniently and uniformly Lighting and baking the objects in the scene, clicking a Window bar, opening a Lighting management Window, checking a Baked GI option in the Lighting management Window, and then changing a GPU use option from a default value to a Medium; s4, development of an experimental logic control script:
writing Mgr.cs script, defining several methods of callable public property in the script, defining a series of methods of switching interface in the script in UI management aspect, calling open source DoTween animation plug-in Unity shop in OpenPanel and closePanel two methods, implementing dynamic switching animation of UI interface by writing program, in scene jump aspect, Mgr management script uniformly numbering the final packaged published scene by Unity project setting, transferring corresponding scene serial number by LoadScreen method under scene manager to implement scene jump, in user management control, after entering experimental operation scene, Mgr management script firstly obtaining a first person role controller respectively positioned on the top of building and an orthogonal camera for shooting and displaying the picture between two sides of building, loading the scene, closing two role controllers, opening the orthogonal camera, displaying a picture shot by the orthogonal camera as a background picture selected by the inter-floor distance, closing the orthogonal camera after entering the experimental operation, opening the role controller of the balcony 1, and similarly after the scene jumps to the balcony 2;
s5, development of an object interaction script:
in the requirement design of the experiment, a user needs to operate instruments such as a signal source, a power meter, a field intensity meter and the like, the Interaction types to be completed in the experiment operation mainly comprise clicking of buttons of each instrument, rotation of a knob of the instrument, triggering of an event function through clicking of a Mouse and the like, the Interaction types are mainly realized through a Mouse Interaction script, the Mouse Interaction script is hung on an object needing to be interacted, in order to enable the object to realize an Interaction function, a collision device needs to be added to the object so as to realize Interaction triggering, in the first part of the script, besides the Interaction form is selected, the distance of Interaction triggering, the response speed of Interaction triggering, whether animation is added to an Interaction process or not can be modified through adjustment of parameters, color change and highlight display can be set for the object needing Interaction triggering, the second function part of the script needs to select a Show Tooltip option for activation, the main function is to trigger a prompt panel while interacting, the third functional part of the script is an Event use part, and a Using Event option is selected, so that two types of events can be added for object interaction: the calling of the function Event of the Event interaction Enter and the Event interaction Exit is basically consistent with the trigger mechanism of the Button Event OnClick method in the UGUI, the trigger functions are ingeniously utilized, different trigger functions are compiled aiming at different interaction function requirements, and a plurality of interaction functions can be realized;
s6, controlling and switching the visual angle of the first-person user:
in the design of the first-person controller, the platform adopts a design method of a Player of a first-person shooting game common in game development. The position movement of a player is controlled through a WASD key on a keyboard, the rotation and the orientation of a visual angle are controlled through a mouse, in the operation process, a user can press a space key at any time, when the space key is detected to be pressed, the visual angle of a camera of a first-person controller is locked, the mouse is released and displayed, mouse click interaction can be carried out on an object in front of the surface, in a data recording part, when the user clicks a data recording panel, in addition to opening the data recording panel, a method of OpenOrCloseFollowCamera is also triggered at the same time, after the method is triggered, the position and the rotation value of the camera of the first-person controller used by the current user are obtained, a Transform value is given to a new camera with a fixed visual angle, the visual angle is ensured to be synchronous with the visual angle before the data recording panel is opened, and simultaneously, the first-person controller is closed, so that the gravity center of experimental interaction is released from a three-dimensional virtual scene, carrying out a series of operations based on UGUI on a UI interface;
s7, development of functions of experimental instruments:
the field intensity meter, the signal source and the power meter are three experimental instruments which are the core in the experiment, each experimental instrument has own function and characteristic and corresponds to the interactive development of the experiment, namely different interactive development requirements, therefore, for each instrument, a script is independently written for the management of the function and the interaction when a platform is developed, the scripts corresponding to the field intensity meter, the signal source and the power meter are respectively DBMetgr.cs, SignalSourceMgcs and PowerMeterMgcs, the scripts are hung on the corresponding instruments by defining public attribute Gameobject variables on the scripts under the environment of an editor, sub-objects such as a knob, a switch, a pointer and the like under the instruments are assigned to corresponding interfaces, the scripts are obtained and controlled through codes, meanwhile, the public attribute text variables are defined, and data required to be displayed by the instruments are updated and displayed in real time in an Update function;
s8, data input acquisition and global storage:
the platform defines static type StaticData used for storing data recorded in each link, a data recording form is a collection of a plurality of InputField components, in order to reasonably and conveniently manage a plurality of InputFields, a DataGroup type is defined during development according to a program for orderly writing, reading, storing and updating synchronization of groups, four variables of InputField attributes are defined in a script, angles, two field strength values and E/Emax values in different units are respectively stored, four InputField components corresponding to a group of data are placed under the same empty object, the renamed empty object is a 'data group', a DataGroup script is hung, the four InputField objects are correspondingly assigned to the script, the object is stored, and the script is dragged into project engineering to be made into a Prefabs prefabricated body;
s9, data processing and calculation:
the data processing part is an important component of the whole experiment platform, the experiment principle of the simulation measurement experiment of the antenna directional diagram and the gain is based on a rotating antenna method, the field intensity data received by the antenna to be measured in all directions between 0 and 360 degrees is measured, the directional diagram of the antenna is drawn according to the field intensity data, and then the gain parameter of the antenna is calculated, firstly, the calculation of the field intensity E is programmed and simulated in matlab, then, codes are transplanted to Unity through C # programming, a CalE function for calculating the field intensity value is compiled, an input variable is an angle value of a floating point value, a return value is a field intensity value calculated, then, data test is carried out, the correctness of data calculation is ensured, when the antenna to be measured is selected, the antenna type is selected, and then, the antenna parameter selection interface is entered, wherein the determined known parameters comprise: the number n of the spiral antenna coils, the center frequency f, the spiral spacing s, the perimeter c and the height h are stored, corresponding parameter data are stored after the selection is finished, the power P is input by combining the floor spacing R updated in the static data script, the gain coefficient G is calculated on the basis of the parameters, and the gain coefficient G is calculated according to a formula:
Figure BDA0003161151830000191
calculating the maximum value of the radiation field intensity, further calculating the radiation field intensity values of the antenna at different angles, and obtaining the far field directivity of the normal mode helical antenna according to the qualified directivity function relationship of the electric field, wherein the function formula is a formula II:
Figure BDA0003161151830000192
wherein, beta0=2π/λ0,β=2π/λg,S=λg0The directional diagram of the single-turn helical antenna is approximate to cos theta, and the normalized directional diagram of the single-winding axial mode helical antenna obtained by replacing a point source with the single-turn helix is a formula (III):
Figure BDA0003161151830000201
wherein,
Figure BDA0003161151830000202
in addition, aiming at the sorting function of the data processing interface, based on the construction of the DataGroup class, the bubble sorting is carried out on the angle values of different data groups, the field intensity values corresponding to the angle values are updated in real time in the sorting process, the updated data are stored and displayed on the table in real time through the storage button, and the same principle is developed for the button for automatically calculating partial data in the data processing toolbar;
s10, development of a drawing module:
during development, the experiment platform selects a Chart And Graph visual icon drawing plug-in unit Asset Store, performs programming development on the basis of the Chart And Graph visual icon drawing plug-in unit Asset Store, And realizes that the antenna directivity diagrams of the axial spiral antenna And the normal spiral antenna are respectively drawn under a rectangular coordinate system And a polar coordinate system;
s11, development of a scoring system:
the scoring system is mainly divided into two parts, the first part is a process part, namely, whether error operation and missing operation steps exist in the whole process of user experiment operation is judged, the second part is a data part, namely, whether data errors exist in the calculation of key parameters is judged, error judging modules are respectively developed aiming at the two major errors, the default value of a score variable in static data is correspondingly modified to be 100, scoring is generated at the end of an experiment and displayed on an experiment scoring interface, and for the error judgment of the experiment operation part, an independent trigger function is provided for each important step interaction in interactive development, so that a platform respectively introduces a global static variable into the trigger function, records the called times of the function, finally judges whether the operation is missing and repeated according to the called times, further deducts corresponding scores, and judges the errors of data calculation, only the input value is compared with the theoretical calculation value after the data are submitted, and if the corresponding fraction is deducted by mistake
(1) And deduction points of data errors:
g, calculation error;
a main lobe opening angle error;
(2) and point of deduction of experimental operation:
adjustment error/non-adjustment of calibration factor;
the power meter is not zeroed;
the switch is opened when the signal source is not connected;
no outer modulation is pressed.
S12, releasing to a WebGL platform:
and clicking File-Build Settings, then clicking Player Settings on a publishing interface, setting a panel construction option on the popped data, and then clicking Build to complete publishing, wherein if IIS needs to be deployed to realize network connection sharing, the WebGL File published by Unity is published to the IIS through Visual Studio.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (9)

1. Antenna virtual simulation experiment platform, its characterized in that: the system comprises an instrument library, a scene simulation module, a virtual interaction module, a data storage and processing module, a function and drawing module and an assessment and scoring module, wherein the instrument library comprises experimental instruments, experimental antennas and other experimental equipment, the data storage and processing module comprises global data storage and field intensity calculation, the function and drawing module comprises a rectangular coordinate system and drawing of a normal antenna directivity pattern and an axial antenna directivity pattern under a polar coordinate system, and the assessment and scoring module comprises assessment and scoring of experimental data and assessment and scoring of experimental operation.
2. The antenna virtual simulation experiment platform according to claim 1, wherein: the experimental instrument comprises a field intensity meter, a signal source and a power meter, the experimental antenna comprises a spiral antenna, a yagi antenna and a horn antenna, and other experimental equipment comprises an antenna frame, an antenna rotary table, a coaxial line and a power meter probe.
3. The antenna virtual simulation experiment platform according to claim 1, wherein: the virtual interaction module controls interaction operation between a user and an experiment platform and is also responsible for controlling the whole experiment logic, the interaction mode is mainly divided into three types for management, the first type is click, input and output based on a UGUI (user generated user interface), the second type is operation control for controlling the first human-person controller to move in a virtual experiment scene through a mouse and a keyboard, and the last type is interaction control between the user and an experiment instrument in the scene.
4. The antenna virtual simulation experiment platform according to claim 1, wherein: the data storage and processing module stores global data including antenna erection distance, power value, rotation angle and field intensity value, the global data cannot disappear along with operation updating and scene changing, and the data storage and processing module is also responsible for calculating all numerical values of the whole experiment platform.
5. The antenna virtual simulation experiment platform according to claim 1, wherein: the function And drawing module is a main module for automatically drawing the antenna directivity diagram in the data processing panel according to data input by a user, the module comprises an antenna directivity function value calculation part of a normal spiral antenna And an axial spiral antenna, corresponding directivity numerical values can be calculated according to an input angle value, data are stored for drawing points And lines, the drawing part is used for drawing plug-in development based on a Chart And Graph visualization Chart, And drawing of the antenna directivity diagram under a rectangular coordinate system And a polar coordinate system is realized.
6. The antenna virtual simulation experiment platform according to claim 1, wherein: the assessment and scoring module is responsible for monitoring the error operation of a user in the experimental process, and triggering the scoring module to deduct corresponding scores according to the error operation of the experimental operation part, and in addition, after the final data is submitted, the assessment and scoring module can compare the data submitted by the user with theoretical calculation data, and deduct corresponding scores of data errors, wherein the experimental operation part comprises power meter zero setting operation, calibration factor operation and mode selection operation, and the data comprises main lobe opening angle data and gain coefficient data.
7. The operation method of the antenna virtual simulation experiment platform is characterized in that: the method comprises the following steps:
s1, entering an experimental environment: after entering an antenna virtual simulation platform, inputting information such as a school number, a name, a professional class, a machine number and the like, entering an experiment selection interface, clicking a simulation measurement experiment for selecting an antenna directional diagram and gain thereof, then entering an antenna erection interval selection interface, inputting and recording an erection distance R, clicking to determine, and entering a left-side roof 3D virtual scene;
s2, measuring the output power of the signal source:
s21, clicking an instrument column to form an instrument library, then placing a signal source and a power meter, clicking a probe of the power meter and clicking to connect the signal source;
s22, pressing a power switch of the signal source, and adjusting a frequency knob of the signal source according to the central frequency of the antenna to be measured;
s23, a black probe on the motor signal source panel shows an amplified picture of the probe, and a calibration factor on the frequency meter is selected according to the relationship between the frequency marked on the probe and the calibration factor;
s24, turning on a power switch of the power meter to zero;
s25, setting the working mode of the signal source to be equal-amplitude or square wave, and adjusting the power knob to enable the meter head of the power meter to display power with a certain numerical value, wherein the numerical value can be 5-10 mW;
s26, processing click data, analyzing and processing a table entry when test data appear, and adding the power value P and the two-antenna frame set distance R into the data table entry;
s27, externally modulating the working mode of the signal source, turning off the power supply of the power meter, and detaching the probe of the power meter;
s3, mounting an antenna and measuring field strength:
s31, placing a manual turntable of the antenna to be tested, installing the antenna to be tested and clicking to determine;
s32, placing a standard antenna frame, selecting and installing a proper standard antenna according to the center frequency of the antenna to be tested;
s33, placing a field intensity meter, clicking a coaxial line to connect the signal source and the standard antenna and connect the field intensity meter and the antenna to be tested, and placing the working mode of the signal source with equal amplitude;
s34, measuring the field intensity by using a field intensity meter:
s341, clicking the field intensity meter to display an amplified panel picture, after starting the motor on key, firstly pressing an end key, then pressing a mode key to enter a measurement mode selection interface, selecting frequency spectrum analysis through an upper arrow and a lower arrow, and pressing the end key to determine;
s342, clicking the center frequency, inputting the center frequency value of the antenna to be measured, and defaulting the measurement bandwidth to 100 MHz;
s343, clicking a meas/disp test/display key, sequentially clicking a measurement key, a field intensity key, a switch-off key and a selection antenna key, selecting a standard antenna type through an upper arrow and a lower arrow, and pressing an end key to determine;
s344, rotating the antenna turntable, finding out a maximum value and a minimum value in one circle, recording the angle theta and the field intensity E, reasonably selecting the measured density according to the main lobe opening angle, measuring 30 groups of data in one circle, recording the angle and the field intensity, and filling the data into a table;
s4, data processing and drawing:
s41, clicking a data processing menu to enter a data processing section, and filling the measured data into a form;
s42, clicking a sorting button, sorting the measured data according to theta from small to large, clicking to calculate E (mV/m) and calculating E EmaxA button for automatically calculating the field intensity and the normalization value;
s43, calculating the main lobe opening angle 2 theta and filling in a table, and adding EmaxFilling the values and the calculated gain value G into a table;
s44, clicking the buttons of the rectangular coordinate system and the polar coordinate system to draw the directional diagram respectively, and writing the drawn diagram into a report;
and S45, clicking a scoring menu to check the experiment results.
8. The method of claim 7, wherein the method comprises: the erection distance R in the step S1 is a distance between two buildings, and the default value is 50 m; before a signal source power switch is pressed in the step S22, the left-handed power knob is adjusted to a smaller value, the working mode is externally adjusted, and the specific mode of adjusting the frequency knob of the signal source is to press the left mouse button to rotate; the specific way of selecting the calibration factor on the frequency meter in the step S23 is to press the calibration factor knob on the mouse left button rotary power meter; when the power switch of the power meter is turned on in the step S24, the signal source is set to an external modulation state; in the step S32, the yagi type standard antenna 1 is suitable for frequencies less than 1GHz, and the horn type standard antenna 2 is suitable for frequencies of 2-10 GHz.
9. The development method of the antenna virtual simulation experiment platform is characterized in that: the method comprises the following steps:
s1, modeling of an instrument in 3D:
the antenna model, the field intensity meter, the power meter, the signal source and other instruments used in the experiment are all built in the Cinema4D software, parts of the instruments needing triggering interactive operation, such as switches, knobs, keys, indicator lamps, pointers and the like, are independently modeled, are assembled together through an assembly body, a UV surface of the model is unfolded through a UVEdit tool, a mapping of a three-dimensional model is drawn in photoshop, and finally the mapping is led into the Cinema4D, the material of the model is manufactured through a material editor built in the Cinema4D, the material is edited in a related manner so as to achieve a relatively real rendering effect, the antenna turntable, the horn antenna, the helical antenna and the yagi antenna are built through the Cinema4D software, when the horn antenna is modeled, a lofting generator tool built in the Cinema4D is mainly used, a pen tool is used for drawing a spline of a waveguide part of the horn antenna, the spline is placed under the lofting generator, copying and dragging a new spline, adjusting parameters such as the size and the rotation of the new spline, generating a 3d model part from an initial spline to the copied new spline, completing modeling of a horn antenna waveguide part through continuous lofting operation and parameter adjustment, drawing a spiral spline profile of a metal spiral line shape of a spiral antenna through a scan generator, then drawing a length spline to control the length generated by scanning, placing the profile spline and the length spline under the scan generator in parallel, and adjusting the parameters of the scan generator: generating a progress, ending shrinkage, ending rotation, end point scaling and the like to generate an ideal metal spiral line three-dimensional model;
s2, development of a user interaction interface based on UGUI:
the method comprises the steps of systematically designing elements such as UI (user interface) and graphic icons required by an experimental platform through a program prototype design platform and Photoshop manufacturing, wherein the blue science and technology sensing theme is consistent with the dominant hue of an experimental scene and is concise and uniform in overall style, finally orderly arranging and exporting the elements, strictly standardizing the naming of picture materials, importing UI (user interface) picture resources into UGUI (user generated content), converting all pictures into sprites after importing the UI picture resources, and packaging and synthesizing the sprites into an image set;
s3, experimental scene construction and optimization:
the experimental scene mainly comprises two high buildings at a certain distance, when the distance between the buildings is selected by a third person called visual angle, the camera shoots side pictures of the two buildings in an orthogonal mode, and renders the pictures on a screen in real time, the main scene for experimental development is mainly two balcony scenes, on the scene construction, on one hand, two roof scenes are distinguished by arranging different roof objects, on the other hand, a required desktop, an antenna frame and an antenna turntable are arranged in advance, so as to avoid the situation that a user falls down due to error operation in the experimental operation, the free moving range of the user is limited during the scene setting, BoxColder is additionally arranged around the scene, a player can not enter other non-interactive scenery areas, a slope is arranged at the middle edge of the antennas at two sides, and the user can move to the slope to observe the situation of the balcony at the opposite roof, the transmission button is triggered by a collision trigger arranged on the slope to realize the jump between the two balcony scenes, creating a plurality of empty objects in the Hierarchy manager at a scene editing window, and naming the empty object weight according to the grouping, dragging the corresponding scene 1 instrument, scene 2 instrument, antenna and antenna turntable, different UI interfaces, user controller and overall scene set model to the lower part of the corresponding empty object, the whole Hierarchy looks more concise and convenient for unified management by folding the corresponding sceneModels, in the aspect of scene optimization, a scene object model is clicked, a Static button in an aspect of an aspect option card is clicked, and a Static button is clicked, setting and applying the Lighting management Window to all sub-objects under the object, conveniently and uniformly Lighting and baking the objects in the scene, clicking a Window bar, opening a Lighting management Window, checking a Baked GI option in the Lighting management Window, and then changing a GPU use option from a default value to a Medium;
s4, development of an experimental logic control script:
writing Mgr.cs script, defining several methods of callable public property in the script, defining a series of methods of switching interface in the script in UI management aspect, calling open source DoTween animation plug-in Unity shop in OpenPanel and closePanel two methods, implementing dynamic switching animation of UI interface by writing program, in scene jump aspect, Mgr management script uniformly numbering the final packaged published scene by Unity project setting, transferring corresponding scene serial number by LoadScreen method under scene manager to implement scene jump, in user management control, after entering experimental operation scene, Mgr management script firstly obtaining a first person role controller respectively positioned on the top of building and an orthogonal camera for shooting and displaying the picture between two sides of building, loading the scene, closing two role controllers, opening the orthogonal camera, displaying a picture shot by the orthogonal camera as a background picture selected by the inter-floor distance, closing the orthogonal camera after entering the experimental operation, opening the role controller of the balcony 1, and similarly after the scene jumps to the balcony 2;
s5, development of an object interaction script:
in the requirement design of the experiment, a user needs to operate instruments such as a signal source, a power meter, a field intensity meter and the like, the Interaction types to be completed in the experiment operation mainly comprise clicking of buttons of each instrument, rotation of a knob of the instrument, triggering of an event function through clicking of a Mouse and the like, the Interaction types are mainly realized through a Mouse Interaction script, the Mouse Interaction script is hung on an object needing to be interacted, in order to enable the object to realize an Interaction function, a collision device needs to be added to the object so as to realize Interaction triggering, in the first part of the script, besides the Interaction form is selected, the distance of Interaction triggering, the response speed of Interaction triggering, whether animation is added to an Interaction process or not can be modified through adjustment of parameters, color change and highlight display can be set for the object needing Interaction triggering, the second function part of the script needs to select a Show Tooltip option for activation, the main function is to trigger a prompt panel while interacting, the third functional part of the script is an Event use part, and a Using Event option is selected, so that two types of events can be added for object interaction: the calling of the function Event of the Event interaction Enter and the Event interaction Exit is basically consistent with the trigger mechanism of the Button Event OnClick method in the UGUI, the trigger functions are ingeniously utilized, different trigger functions are compiled aiming at different interaction function requirements, and a plurality of interaction functions can be realized;
s6, controlling and switching the visual angle of the first-person user:
in the design of a first-person controller, a platform adopts a design method of a Player of a first-person shooting game commonly used in game development, the position movement of the Player is controlled by a WASD key on a keyboard, the rotation and the direction of a visual angle are controlled by a mouse, during the operation process, a user can press a space key at any time, when the space key is detected to be pressed, the visual angle of a camera of the first-person controller is locked, the mouse is released and displayed, the mouse click interaction can be carried out on an object in front of the face, in a data recording part, when the user clicks a data recording panel, besides opening the data recording panel, an OpenOrCloseFollowCamera method can be triggered at the same time, after the triggering, the position and the rotation value of the camera of the first-person controller used by the current user can be obtained, a Transform value is assigned to a new camera with a fixed visual angle, the visual angle is ensured to be kept synchronous with the visual angle before the data recording panel is opened, meanwhile, closing the first-person controller, releasing the gravity center of experimental interaction from the three-dimensional virtual scene, and performing a series of UGUI-based operations on a UI interface;
s7, development of functions of experimental instruments:
the field intensity meter, the signal source and the power meter are three experimental instruments which are the core in the experiment, each experimental instrument has own function and characteristic and corresponds to the interactive development of the experiment, namely different interactive development requirements, therefore, for each instrument, a script is independently written for the management of the function and the interaction when a platform is developed, the scripts corresponding to the field intensity meter, the signal source and the power meter are respectively DBMetgr.cs, SignalSourceMgcs and PowerMeterMgcs, the scripts are hung on the corresponding instruments by defining public attribute Gameobject variables on the scripts under the environment of an editor, sub-objects such as a knob, a switch, a pointer and the like under the instruments are assigned to corresponding interfaces, the scripts are obtained and controlled through codes, meanwhile, the public attribute text variables are defined, and data required to be displayed by the instruments are updated and displayed in real time in an Update function;
s8, data input acquisition and global storage:
the platform defines static type StaticData used for storing data recorded in each link, a data recording form is a collection of a plurality of InputField components, in order to reasonably and conveniently manage a plurality of InputFields, a DataGroup type is defined during development according to a program for orderly writing, reading, storing and updating synchronization of groups, four variables of InputField attributes are defined in a script, angles, two field strength values and E/Emax values in different units are respectively stored, four InputField components corresponding to a group of data are placed under the same empty object, the renamed empty object is a 'data group', a DataGroup script is hung, the four InputField objects are correspondingly assigned to the script, the object is stored, and the script is dragged into project engineering to be made into a Prefabs prefabricated body;
s9, data processing and calculation:
the data processing part is an important component of the whole experiment platform, the experiment principle of the simulation measurement experiment of the antenna directional diagram and the gain is based on a rotating antenna method, the field intensity data received by the antenna to be measured in all directions between 0 and 360 degrees is measured, the directional diagram of the antenna is drawn according to the field intensity data, and then the gain parameter of the antenna is calculated, firstly, the calculation of the field intensity E is programmed and simulated in matlab, then, codes are transplanted to Unity through C # programming, a CalE function for calculating the field intensity value is compiled, an input variable is an angle value of a floating point value, a return value is a field intensity value calculated, then, data test is carried out, the correctness of data calculation is ensured, when the antenna to be measured is selected, the antenna type is selected, and then, the antenna parameter selection interface is entered, wherein the determined known parameters comprise: the number n of the spiral antenna coils, the center frequency f, the spiral spacing s, the perimeter c and the height h are stored, corresponding parameter data are stored after the selection is finished, the power P is input by combining the floor spacing R updated in the static data script, the gain coefficient G is calculated on the basis of the parameters, and the gain coefficient G is calculated according to a formula:
Figure FDA0003161151820000081
calculating the maximum value of the radiation field intensity, further calculating the radiation field intensity values of the antenna at different angles, and obtaining the far field directivity of the normal mode helical antenna according to the qualified directivity function relationship of the electric field, wherein the function formula is a formula II:
Figure FDA0003161151820000091
wherein, beta0=2π/λ0,β=2π/λg,S=λg0The directional diagram of the single-turn helical antenna is approximate to cos theta, and the normalized directional diagram of the single-winding axial mode helical antenna obtained by replacing a point source with the single-turn helix is a formula (III):
Figure FDA0003161151820000092
wherein,
Figure FDA0003161151820000093
in addition, aiming at the sorting function of the data processing interface, based on the construction of the DataGroup class, the bubble sorting is carried out on the angle values of different data groups, the field intensity values corresponding to the angle values are updated in real time in the sorting process, the updated data are stored and displayed on the table in real time through the storage button, and the same principle is developed for the button for automatically calculating partial data in the data processing toolbar;
s10, development of a drawing module:
during development, the experiment platform selects a Chart And Graph visual icon drawing plug-in unit Asset Store, performs programming development on the basis of the Chart And Graph visual icon drawing plug-in unit Asset Store, And realizes that the antenna directivity diagrams of the axial spiral antenna And the normal spiral antenna are respectively drawn under a rectangular coordinate system And a polar coordinate system;
s11, development of a scoring system:
the scoring system is mainly divided into two parts, the first part is a process part, namely, whether error operation and missing operation steps exist in the whole process of user experiment operation is judged, the second part is a data part, namely, whether data errors exist in the calculation of key parameters is judged, error judging modules are respectively developed aiming at the two major errors, the default value of a score variable in static data is correspondingly modified to be 100, scoring is generated at the end of an experiment and displayed on an experiment scoring interface, and for the error judgment of the experiment operation part, an independent trigger function is provided for each important step interaction in interactive development, so that a platform respectively introduces a global static variable into the trigger function, records the called times of the function, finally judges whether the operation is missing and repeated according to the called times, further deducts corresponding scores, and judges the errors of data calculation, only the input value is compared with the theoretical calculation value after the data are submitted, and if the corresponding fraction is deducted by mistake
(1) And deduction points of data errors:
g, calculation error;
a main lobe opening angle error;
(2) and point of deduction of experimental operation:
adjustment error/non-adjustment of calibration factor;
the power meter is not zeroed;
the switch is opened when the signal source is not connected;
no external modulation is pressed;
s12, releasing to a WebGL platform:
and clicking File-Build Settings, then clicking Player Settings on a publishing interface, setting a panel construction option on the popped data, and then clicking Build to complete publishing, wherein if IIS needs to be deployed to realize network connection sharing, the WebGL File published by Unity is published to the IIS through Visual Studio.
CN202110791238.0A 2021-07-13 2021-07-13 Antenna virtual simulation experiment platform Pending CN113593337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110791238.0A CN113593337A (en) 2021-07-13 2021-07-13 Antenna virtual simulation experiment platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110791238.0A CN113593337A (en) 2021-07-13 2021-07-13 Antenna virtual simulation experiment platform

Publications (1)

Publication Number Publication Date
CN113593337A true CN113593337A (en) 2021-11-02

Family

ID=78247169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110791238.0A Pending CN113593337A (en) 2021-07-13 2021-07-13 Antenna virtual simulation experiment platform

Country Status (1)

Country Link
CN (1) CN113593337A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495772A (en) * 2021-07-01 2021-10-12 电子科技大学 Experiment operation information display method, device, equipment and readable storage medium
CN114038269A (en) * 2021-11-05 2022-02-11 成都工业学院 Training management method based on simulated flight of unmanned aerial vehicle and electronic equipment
CN117973024A (en) * 2024-01-29 2024-05-03 中国地质大学(北京) Gravity meter online simulation experiment teaching method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107543979A (en) * 2016-06-24 2018-01-05 中兴通讯股份有限公司 A kind of antenna parameter measuring method and device
CN108987894A (en) * 2017-06-05 2018-12-11 中兴通讯股份有限公司 A kind of method of controlling antenna and antenna assembly
CN111597709A (en) * 2020-05-15 2020-08-28 四川大学 Total station virtual simulation teaching system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107543979A (en) * 2016-06-24 2018-01-05 中兴通讯股份有限公司 A kind of antenna parameter measuring method and device
CN108987894A (en) * 2017-06-05 2018-12-11 中兴通讯股份有限公司 A kind of method of controlling antenna and antenna assembly
CN111597709A (en) * 2020-05-15 2020-08-28 四川大学 Total station virtual simulation teaching system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
房少军等: "天线实验教学仿真系统的研究", 《实验室研究与探索》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495772A (en) * 2021-07-01 2021-10-12 电子科技大学 Experiment operation information display method, device, equipment and readable storage medium
CN114038269A (en) * 2021-11-05 2022-02-11 成都工业学院 Training management method based on simulated flight of unmanned aerial vehicle and electronic equipment
CN117973024A (en) * 2024-01-29 2024-05-03 中国地质大学(北京) Gravity meter online simulation experiment teaching method and system

Similar Documents

Publication Publication Date Title
CN113593337A (en) Antenna virtual simulation experiment platform
Eastman The use of computers instead of drawings in building design
Celani et al. CAD scripting and visual programming languages for implementing computational design concepts: A comparison from a pedagogical point of view
CN105264474B (en) The NI Vision Builder for Automated Inspection program editing environment with paste feature is replicated including operation context-aware
JP4996366B2 (en) 3D structure data creation device
US20080255818A1 (en) Test System Design Tool With Model-Based Tool Support
JPS63184104A (en) Instrumentation control method and apparatus
Cook et al. Danesh: Interactive tools for understanding procedural content generators
CN111597709A (en) Total station virtual simulation teaching system
US8151218B2 (en) Evaluation of graphical program nodes
CN109102730A (en) Military generating set simulation training method and device
CN108959682A (en) Circuit virtual experimental method for building up
Cui et al. Design and implementation of electronic circuit virtual laboratory based on virtual reality technology
CN118313563B (en) Building full life cycle carbon emission calculation method, calculation interaction method and system
CN115828633A (en) Power distribution scene modeling method based on Unity3D
Swaby et al. An interactive 3D fracture-modeling environment
CN201910181U (en) RLC (resistor-inductor-capacitor) circuit transient process tester
CN107067897A (en) Virtual physics experiment system and its building method
Altabtabai et al. A user interface for parametric architectural design reviews
CN116129057A (en) Virtual system for dynamically displaying three-dimensional fine flow field structure and flow field generation method
Barbour EwaldSphere: an interactive approach to teaching the Ewald sphere construction
Baranov Students' project developments of wave optics virtual labs
Eriksson et al. Automating the CAD to Virtual Reality Pipeline for Assembly Simulation
Gubsky et al. Computer model of bandpass waveguide filter for virtual laboratory
Zaimoviæ-Uzunoviæ et al. Virtual instruments–a chance to teach engineering at a distance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20211102

WD01 Invention patent application deemed withdrawn after publication