900 views|5 replies

2624

Posts

6

Resources
The OP
 

QSpice (10) -- Quick Operation [Copy link]

 

QSpice (10) -- Quick Operation

Hello uu, happy vacation! Where did you go?
I injured my waist the day before the holiday, and started my return journey today. On the way, I watched some QSpice videos and shared them with you.
First, we build a basic simulation diagram, which can be said to be a simulated Hello World. The basic RC filter circuit is shown below.
Figure 1: Basic RC filter circuit

Use the scroll wheel to adjust parameters

——Simulation code 1——
R1 N01 OUT 464
C1 OUT 0 10n
V2 N01 0 PULSE 0 5 1m 1n 1n 3u 5u
.TRAN 8m
.end
——Simulation code 1——
Sometimes we need to see different values to see how well the RC circuit filters. Usually we can use Step simulation, but QSpice provides a simpler method to use the scroll wheel to adjust the device parameters. The specific steps are as follows:
  1. Double-click the device parameters
  2. Hold down the Alt key
  3. Scroll up or down
  4. Wait for simulation results to change
Figure 2: Basic RC filter circuit and simulation results
Because it's not a Gif, it won't move. Can you recommend me a free tool to record Gif?

Restore drawings using netlist

In the use of Spice, many devices are provided in the form of .sub or .lib library, but it is still a black box for users. We only know how to use it, but we don’t know how to implement the device. It is still difficult to understand the circuit directly by looking at the netlist. The more complex the circuit, the greater the difficulty, so it is best to graph the circuit.
We borrow the code from simulation code 1 and use the built-in functions in QSpice to restore this drawing. The steps are as follows:
Step 1: Create a new drawing
Step 2: Copy the simulation code
Step 3: Hold down Shift and then press Ctrl + V
Figure 3: Drawing after pasting
Using the above method, you can restore the drawing by arranging the connections corresponding to the network labels, and the simulation effect is the same as the original drawing simulation effect. For the Sub circuit library, we can also better understand how it is implemented internally.

Import CSV Analysis

The purpose of simulation is to verify and compare with the actual circuit, and to develop a sense of the circuit. Since I have done the simulation, how do I know if my simulation is correct? Usually the data of the oscilloscope can be exported in CSV format. We can import the data in CSV format into QSpice to see if it corresponds to the simulation.
It should be noted that the data in CSV format should correspond to the simulation data format. The data format exported by QSpice is shown in Figure 4 below.
Figure 4: CSV data exported by Qspice
We create a new data, this data is equal to V(OUT)*2, as shown in Figure 5. After modification, save it, directly use QSpice to open the CSV and add the waveform, as shown in Figure 6, we can see that the voltage amplitude of the waveform is exactly twice.
Figure 5: V(out2) data
Figure 6: Viewing the CSV waveform
That’s all for today, ┏(^0^)┛

Latest reply

Send a little flower to the host~   Details Published on 2024-11-5 10:37
Personal signature

希望做一些大家觉得好用的东西!

 
 

2w

Posts

341

Resources
2
 

ScreenToGif is a free and open source gif recording software that supports Chinese. It can record the screen, camera and drawing board, and has a built-in image editor.

Provides installation version and green free installation version

Comments

Got it, I'll download one and see when the time comes  Details Published on 2024-10-7 14:46
 
 
 

2w

Posts

341

Resources
3
 

LICEcap can also record Gif for free

 
 
 

2624

Posts

6

Resources
4
 
qwqwqw2088 posted on 2024-10-6 09:16 ScreenToGif is a free and open source gif recording software that supports Chinese. It can record the screen, camera and drawing board, and has a built-in image editor...

Got it, I'll download one and see when the time comes

Personal signature

希望做一些大家觉得好用的东西!

 
 
 

149

Posts

0

Resources
5
 

Thank you for sharing~~ This series is great~ The content of QSpice is relatively small. This series of the OP can be used as a tutorial~ Looking forward to more content~~

 
 
 

149

Posts

0

Resources
6
 

Send a little flower to the host~

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Xunwei-IMX6Q development board Android application test-AndroidStudio-recorder test

The supporting materials for this chapter are in the directory of "iTOP-i.MX6 development board data summary (excluding ...

[15th Anniversary] EE DIY--Wireless Multi-channel Serial Port

This post was last edited by RCSN on 2021-6-26 16:28 1. Design Intention Last year, when I was on a business trip, I ne ...

[Runhe Neptune Review] Five PWM

PWM: Pulse Width Modulation It is to periodically control the time (duty cycle) of IO pulling high and low to control th ...

EMC signal integrity test 1---get out of the metaphysics

EMC signal integrity test 1---get out of the metaphysics Whether we enter the industry of electronic engineers from 51 s ...

My own feelings about simulation software

The most annoying thing about using LTspice is that it does not support mixed analog and digital simulation. Although it ...

全志V853 NPU 转换部署 YOLO V5 模型

# NPU conversion and deployment of YOLO V5 model This article takes the YOLO v5s model as an example to detail the conve ...

CUK circuit combined with SEPIC circuit

Dear seniors: It feels like domestic power supply manufacturers are springing up like mushrooms after rain, but most of ...

AD24 Early Access

Automatic equal length effect Before equal length: 764228 Automatic equal length effect: 764229 The new constrain ...

"Electronic Hardware Engineer On-the-job Illustrated Manual Hardware Knowledge" Initial Book 2 Chapter 2

I like the second chapter better after reading the previous ones Let's take a look at the content of this second chapter ...

GPIO lighting in Python on the Allwinner H616 Walnut Pi 1B development board

Introduction Buttons are the simplest and most common input devices. Many products cannot do without buttons, including ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list