| New Reply |
How to simulate Op-Amp in MATLAB |
Share Thread | Thread Tools |
| Oct21-12, 11:25 AM | #1 |
|
|
How to simulate Op-Amp in MATLAB
Good day. Could anyone tell me how to simulate an equivalent Operational Amplifier in Simulink? I read somewhere that I had to do it with 2 adders and a gain block, but I don't know how. Thanks.
|
| Oct21-12, 11:59 AM | #2 |
|
|
---(-ve Input)----
...........................| (- +)SUM | ----|-Gain-> --- |Saturation Block| ---> (output) ---(+ve Input)--- Set gain very high, like 10,000. Saturation Block is used to limit the output to within certain range; for real hardware op-amps the output would saturate at power supply voltage levels. |
| Oct21-12, 12:15 PM | #3 |
|
|
|
| Oct21-12, 12:21 PM | #4 |
|
|
How to simulate Op-Amp in MATLAB
Blocks are very restrictive of what type of signals are input and what types are output.
Resisters and capacitors take 'voltage' signals as input but the 'sum' block needs pure signal (number) as input. 'Voltage Measurement Block' and 'Variable Voltage source' can convert signal of one form to other. In short, the blocks don't connect because the signal types don't match. |
| Oct21-12, 12:51 PM | #5 |
|
|
I'll try to set up the whole model later on and tell you if I need any help. P.S. Does the saturation block require another converter? |
| Oct21-12, 03:24 PM | #6 |
|
|
|
| Oct21-12, 03:28 PM | #7 |
|
|
The simulation gives me an error. This is what I have so far:
http://i1226.photobucket.com/albums/.../Projecto2.jpg How do I fix it? |
| Oct21-12, 10:42 PM | #8 |
|
|
The voltage measurement block measures 'voltage difference between two points' only. So, you need to connect both of its two input.
The saturation block takes in pure number and gives out pure number. To convert it to voltage signal use a 'controlled voltage source' block. http://www.mathworks.com/help/physmo...agesource.html You can learn a great deal about various blocks by opening their configuration panel (double click) and choosing help. |
| Oct22-12, 08:05 AM | #9 |
|
|
http://i1226.photobucket.com/albums/...lo2attempt.jpg |
| New Reply |
| Thread Tools | |
Similar Threads for: How to simulate Op-Amp in MATLAB
|
||||
| Thread | Forum | Replies | ||
| How to simulate a Brushless dc motor drive in MATLAB/SIMULINK? thanks. | Electrical Engineering | 8 | ||
| Simulate Charge Density in Matlab | Classical Physics | 0 | ||
| trying to simulate gas | Atomic, Solid State, Comp. Physics | 1 | ||
| Hi,I want to know about SIMULATE code. how can I get its | Nuclear Engineering | 1 | ||
| Simulate Into Future? | Cosmology | 3 | ||