Many times we may already have a rough idea of the circuit results and need to perform some basic operations on the circuit waveform, but it still takes some time to continue building the circuit, so we can directly use the SIMTERIX waveform operation function.
First, build a basic circuit as shown below
Figure 1: AC and DC
The parameters of the DC power supply are DC 5V, and the parameters of the AC power supply are as shown in Figure 2
Figure 2: AC power supply parameters
Select transient simulation and look at Figure 3 to see what the waveform looks like.
Figure 4: Simulation results
When using the waveform operation function, you must first name the line. The shortcut key: Y quickly calls the network name. If you don’t know the network name, you can check the upper left sidebar. See design.net as shown below
Figure 5: design.net column
Figure 6: Simulated Netlist
Because we have one end connected to the ground and the other end connected to the probe, it is easy to see the network name here, but I have used the shortcut key Y to rename the network, so it looks more intuitive. It is VOUT and VOUTB.
When using a laptop, if you are looking at the netlist at a distance and the font size is not large enough, you can just use CTRL+scroll wheel. When using a Mac for remote control, you can also use "Control + swipe up". By the way, MAC does not have a delete button, so you need to use fn+backspace to simulate the delete operation.
Now that we have some basic stuff, we can do some calculations on the waveform directly. First, we create a new grid and right-click on the existing grid to get the following picture:
Figure 7: New grid
Figure 8: Add curve
Figure 9: Fill in the expression field with what you want Y to display
Figure 10: Results after waveform calculation
From the above picture, the waveform operation is basically completed, but V1-pos is still not clear enough. We can change its color so that we can see it more clearly. Double-click the waveform of v1-pos and the waveform properties will pop up as shown in Figure 11. Find color.
Figure 11: Double-click the v1-pos property
Figure 12: RGB Color
Of course, you have to choose the most sexy purple color. The final waveform effect is as follows.
Figure 13: V1-Position after color adjustment
Sometimes we may want to calculate the power. Like LTspice, we can directly multiply the voltage and current to get the result so that we can see how much power is used. Here we still use the old routine and draw the circuit diagram first, as shown in Figure 14
Figure 14: Applying a 1K load to V1
Figure 15: Selecting a filter based on current only
Figure 16: Write the expression to calculate power
R1#P*VOUT
Figure 17: Final waveform calculation result
Modify the circuit to make it more difficult. When the current changes, what is its power? We can add a capacitor to see what its average power is.
Figure 18: RC circuit
Figure 19: Curves of the RC circuit
Figure 20: Curve label
As shown in Figure 20, using avg average or RMS, you can observe the average value and effective value in the Curve label. Using waveform operation can save our time. In circuits without feedback, it is recommended to use the waveform operation function to directly obtain the result to avoid unnecessary waste of time.
That’s all for today, bye~