3.2.7 Sound Output
As shown in Figure 12, open the program block
diagram of the sound sub VI, copy and paste the
path where the sound wav file is located, and get the
result of pasting the path into the path constant of
the file constant. Based on the status of each switch
Boolean in the switch state control, combine the
while loop, play the sound file, sound output
information, unbind by name, non-comparison
control, compound arithmetic control and sound
make to sound output.
Sound output is a sub virtual instrument (VI),
which consists of two parts, one is the path, and the
other is the program for writing and output; the
sound path is variable. The left figure in Figure 12 is
a schematic diagram of the sound path of a
computer. After changing the computer login
program, first open the sound sub VI, write the path
of the sound in the path string, and then open the
main program to start the operation. The output
sound is the sound of the disconnector closing.
When the switch is closed or separated, the sound
will be emitted first, which can better simulate the
opening and closing of the circuit. This output is
reflected in VI. put the sound in the file. Because the
path of the sound is different in each computer, the
VI should be heard first when running the program.
Enter the path text into the path, and then run the
program.
Figure 12: Flow diagram of sound sub VI.
3.3 Storage Devices and Media
The feeder automation simulation system is
developed based on LabVIEW software and requires
a computer-readable storage medium, in which a
computer program is stored. When the program is
executed by the processor, the steps in a simulation
method for the three types of feeder automation
described above are realized. There is also a need for
a computer device, including a memory, a processor,
and a computer program stored on the memory and
executable on the processor. When the processor
executes the program, it realizes the steps in a feeder
automation simulation method as described above.
4 DESCRIPTION
The system is divided into three steps:
Step 1: in response to the user's main interface
selection instruction, after entering the main
interface, in response to the user's mode click
instruction, obtain and display the stored operation
state diagram of the corresponding mode. Figure 2
shows the main interface corresponding to the main
module of the feeder automation simulation training
system of the present invention. The right side of the
main interface is composed of three determination
buttons, namely "voltage time type", "current
concentration type" and "intelligent distribution".
User can obtain the mode selection instruction by
clicking the corresponding determination button.
The system stores the operation state diagram
corresponding to each mode, as shown in the left
side of Figure 2.
Step 2: in response to the selected feeder
automation mode (voltage time type, current
concentration type or intelligent distribution), return
to the graphical interactive interface (intelligent
distributed interface, voltage time type interface or
current concentration type interface) corresponding
to the selected feeder automation mode with the
connection relationship between the switch Boolean
lamp and the fault Boolean lamp; Obtain the user's
click instruction for each fault Boolean lamp in the
graphical interactive interface and return to the
interactive interface for display to obtain the status
(fault information) of all fault Boolean lamps.
Step 3: input the states of all fault Boolean lights
into the composite operation control for addition and
summation, and judge whether the states of all fault
Boolean lights meet the requirements according to
the summation results. If the requirements are not
met, a prompt message is returned. If the
requirements are met, based on the status of all fault
Boolean lamps, the switch status control under the
corresponding mode is carried out to obtain the
status of each switch Boolean lamp and the feeder
automation simulation process to display the feeder
automation simulation results.
5 CONCLUSIONS
A feeder automation simulation method and system
based on LabVIEW software are proposed, and the
functions of the software platform are given. Based
on the simulation system, three modes of feeder
automation can be simulated, and the purpose of