VVVF Simulator
is the software simulates vvvf inverter sound on a PC.
This program is for the C# wpf app.
You are free to use any of the code in this program for noncommerical use.
If you make a video or a modified program using this program then please leave a link to the program in the description.
We are not responsible for anything you do with this application.
This application can simulate VVVF sound.
You can simulate the actual sound from a motor and gearbox.
Currently this is a work in progress as it is not very accurate.
You can generate the audio in real time and control.
Key assignment in default is W key to deaccelerate and S key to accelerate.
You can passthrough waveform data through USB serial port.
This application can export a .wav
audio file, a .avi
video or a .png
image file in next contents.
You can have code built on your PC or just download .exe
file.
Go to Releases, download VVVF-SIM.zip
.
Extract zip file. You should endup finding VVVF-Simulator.exe
First, download Visual Studio. Then run the installer and make sure you also select the .NET desktop development in the installer. Once it has installed open Visual Studio and click on "Clone a Repository." Now copy the url of the VVVF-Simulator page.
https://github.com/VvvfGeeks/VVVF-Simulator
Paste the url and click clone. Now click on "Solution 'VVVF-Simulator'" and then click on the green arrow to compile and run the program. Now you should see a window open.
To load or save a file click on file and select what you want to do from there. Note that if you load a file and click save the program will save to whatever file you loaded last unless you use save as.
To generate sound in realtime click on the RealTime tab. "VVVF RealTime" is the generated pwm played through the audio where "Train RealTime" simulates the sound on a train.
By clicking on the settings for either of these you can change the audio buffer size, show the controlling variables, show a vector hexagon, show the waveform, enable realtime editting or show FFT. Note that the more of these that are enabled the more processing power is required.
First click on "Settings". Now click on "PWM Level." Here you select how many pwm levels are used for the sound. Note that most trains use 2 levels.
Now click on "Minimum Frequency." This is where you set the lowest possible frequency that is generated for accelerating and braking. If the control frequency is less than this value the output frequency will remain at this value as long as the control frequency is greater than 0 however amplitude can still change. If you want the minimum output frequency to start from 0 then change the value to 0.
Now click on "Jerk Setting." These settings change the amount of time it takes for the output to fully turn on and off. "Max Voltage Frequency" is the output frequency that the output will go to when turning on or off. "Frequency Change Rate" is the number of cycles per second to get to that value. "Power On" means going turning on the output and "Power Off" means turning off the output. This can be set for both accelerating and braking.
Now click on "Accelerate." Here is where you will create the settings for the sound. By clicking the + at the bottom you can add a setting for the sound. You can right click on that setting and click copy or remove if needed.
Now click on the sound and where it says "From" that is the output frequency where the particular setting starts. If it is the first setting then set it to the minimum output frequency you have set or zero.
If you want the setting to be active over a specific frequency range you can use "Rotate From" and "Rotate Below." "Rotate from" is the starting frequency for when the setting will have an output and "Rotate Below" is the end frequency for setting which has no output.
"Keep" determines if the setting is held on to for accelerating to neutral "Power Off" or neutral to accelerating "Power On." If either of these are off then when there is a transition in modes then if the control frequency is low enough then the next setting will be active. "Enable" determines if the setting has an output for "Normal State," "Power On," or "Power Off."
There is a dropdown menu near the top under "Pulse Mode Type" where you set the type of pwm.
Available Pulse Modes are shown on next table.
Mode | Description |
---|---|
Async | Mode to modulate base waveform by carrier frequency |
Sync | Mode to modulate base waveform by multiple of base frequency |
CHM | Meaning of Current Harmonic Minimum |
SHE | Meaning of Selective Harmonic Elimination |
HO | Mode to modulate base waveform by special carrier wave |
If you selected "Async" or "Sync" then the following information applies. Clicking "shifted" inverts the carrier wave. By clicking on "Harmonic Setting" you can add harmonics to the modulated wave. The most commonly used if any are space vector PWM or "SVM" and third harmonic pwm or "THIPWM." The default wave as the reference for each phase is a sinewave which is the setting "sinusoidal." By clicking on "sinusoidal" you can change the wave being modulated if needed. The discrete setting changes how many steps are used for generating the reference wave being modulated.
If you selected "Async" then the following information applies. Under "Carrier Frequency" there are various settings you can set. "Parameter" is where you set the carrier frequency in hertz. Where it says "Random Modulation" you will see "Range" which the amount the carrier frequency can vary from it's default setting. For example, a 700hz carrier frequency with a 50hz range means the carrier frequency can range from 675 to 725. "Interval" specifies how often the carrier frequency can change in seconds. If you want to have a variable carrier frequency over a range then change "Carrier Frequency" from constant to variable. "Start" and "End" mark the starting and ending frequency for the setting and "Start Value" and "End Value" are the endpoint for the actual carrier frequency you want to use. If you are using the "Three Level Setting" you can change the Dipolar bias under "Dipolar Setting."
If you selected "Sync," "SHE," "CHM," or "HO" then the following information applies. "Count" determines the number of PWM pulses. Note that some setting may have an alternate option.
Note that this setting only applies to "Sync." By clicking "Square" the reference wave is changed to a square wave which may be used for some pwm modes.
"Modulation Setting" is where you set the amplitude settings. In most cases you would want to use "Proportional" but there are other options if necessary. The program calculates the amplitude based in a way like calculating a line between two points. The "Start Frequency" is the output frequency where the amplitude setting starts and "Start Amplitude" is the amplitude at that frequency. "End Frequency" is the output frequency where the amplitude setting ends and "End Amplitude" is the amplitude at that frequency. "Max Amplitude" is the maximum allowed amplitude and "Cutoff Amplitude" is the lower limit for amplitude. There are default amplitude range limits in place but you can disable them if needed. This information also applies to "Power On" and "Power Off"
Note that all of these settings covered for "accelerate" can be used in the same way for a brake setting.
I highly suggest looking at the sample VVVF files as messing with those will make it easier to understand how to create you own sounds.
- Join our discord! You can ask frequently about vvvf simulator!
- Sample Files
- Korean
- Simplified Chinese