What is Simulink: Definition and 115 Discussions

Simulink is a MATLAB-based graphical programming environment for modeling, simulating and analyzing multidomain dynamical systems. Its primary interface is a graphical block diagramming tool and a customizable set of block libraries. It offers tight integration with the rest of the MATLAB environment and can either drive MATLAB or be scripted from it. Simulink is widely used in automatic control and digital signal processing for multidomain simulation and model-based design.

View More On Wikipedia.org
  1. A

    Double pendulum - solving with energy and Simulink

    Hi everyone, I am trying to familiarize myself with Simulink by graphically drawing out differential equations, but ran into a snag with a double pendulum on a cart. Anyways, I neglect friction or other damping effects and say that From there I simply just sum the energies, which ends up...
  2. A

    Simulink: warning Log in zero in one function

    Hello, I have this problem (warning: log of zero in one function) when i try to simulate one system which apparentely doesn't have any problem. in order to follow with my project i need to know how to change something parameters or whatever that is doing that my equation give me this mistake...
  3. Z

    Motion level forward kinematics on Simulink

    I have built a Forward kinematic block with s-function on simulink. This FK is for a pantograph. Input is two angles of the motors and output is the position and 4 angles, which are the inputed motor angles along with angles of two elbows. Now, I need a motion level FK which will output the...
  4. cherylt

    Help Needed! Drawing a Half-Wave Sinusoid in Simulink

    Dear all, I am pretty bad at Simulink and I want to draw out a half wave sinusoid with the equation: I(t)=360sin(pi*t/0.4), 0<=t<=0.4 I(t)= 0 , 0.4<t<=1 Any help or suggestions? I've tried using the Sine block with amp=360 and freq=7.85 but the graph looks weird. I want to...
  5. T

    Help solving Simulink numerical oscillation

    Hi! I posted a new thread about a week ago, but so far no one was able to help me: https://www.physicsforums.com/showthread.php?t=761892 I wasn't sure if I posted in the right forum, so I'm posting it here hoping to reach a wider audience :) Any help is greatly appreciated! -Tusike
  6. T

    Simulink help solving numerical oscillation

    Hi! I'm trying to compute air flow between chambers for a project. I'm having a numerical oscillation problem, and I've created an example Simulink program that highlights the cause. Please see the attached Simulink model for a clear understanding; in the following I will do my best to give...
  7. A

    MATLAB Entering simulink 3D look-up table data from MATLAB

    I have created a contour plot in MATLAB using the following code: >> NP=40; >> [RP TP]=meshgrid(linspace(min(RPM),max(RPM),NP),linspace(min(BMEP),max(BMEP),NP)); >> BSFC_IT=griddata(RPM,BMEP,BSFC,RP,TP); >> NC=12; >> Fig1=figure; >> [CT...
  8. A

    Hybrid bus simulink motor generator

    Hi, I am making a Simulink model for the drive cycle of a hybrid bus. My bus is using a gas turbine engine to power a generator which then charges the batteries. I have a motor model which I have attached a screenshot of, and I know I can use this as a generator also. I just have no idea...
  9. G

    How can I draw a basic differential equation in Simulink?

    Homework Statement Hi, I was wondering if someone could help me create a basic differential equation in Simulink. I'm trying to create the following equations http://imageshack.com/a/img197/1379/cic.PNG I tried using this as an example...
  10. A

    Use Simulink to check the step response of a control system

    1. I have to use Simulink to check the step response of a state feed-back design (controller) and state estimator (observer). I did the problem and got matrices that I need for the desired poles but I'm not sure how to use Simulink to do them.3. I really don't want to post the exact vales to my...
  11. I

    MATLAB How Can You Handle Unassigned Outputs in Simulink's Embedded MATLAB Function?

    Hello everyone! In Simulink , I use the Embedded MATLAB Function function out = fcn(meas) if meas>10 out = 4; elseif meas<=0 out=2; end And I get this message: Output argument 'out' is not assigned on some execution paths. I would like the variable 'out' to change its...
  12. C

    How to Create a Step Load in Simulink for Frequency Observation?

    Hi Would anyone be able to give me some guidance on creating a step load in Simulink, I need this type of loading to observe frequency (slew rate) when a diesel engine with voltage control drives a asynchronous motor. I have most of the circuit built and am using Sim power systems mat lab v12...
  13. E

    Van der pol Equation Simulation in Simulink

    Homework Statement As the title says, I am trying to implement two differential equations into Simulink. I don't know how to start. How do I know what to start with, which block goes where? when do I add something and when do I know to subtract something using the sum block. When I got my...
  14. J

    How to measure the transfer function in Simulink?

    Let's say I simulate a simple filter in simulink and I want to see the transfer function graph (bode plot) of it. What do I do to get Vout/ Vin? I tried using the "PS Divide" Block and divide the output voltage and the input voltage, but that didn't work. Could anyone help me out here? This...
  15. J

    MATLAB Troubleshooting MATLAB Simulink Circuits for Sinusoidal Wave

    Hey guys. I am trying to simulate some circuits in MATLAB's Simulink, and I always get some weird graph which is not sinusoidal at all. I wanted to know if anyone could tell me which block am I missing if I want to get a good sinusoidal wave. Here are the pictures of the circuit and the...
  16. M

    Simulation of a GSHP system in Simulink

    Hello kind people of PF, I'm working on a project and attempting to simulate a ground source heat pump system in simulink. I have no experience what so ever with MATLAB or simulink, which isn't helping. Does anybody here have any experience of modelling such systems in this environment...
  17. M

    Simulink USS block - probability analysis

    Here are the basics - I've got a model with a computed distance between 2 objects. The likelihood that object A will detect object B is a probability dependent on distance (and its a cumulative lognormal curve). I want to include a probability function based on that computed distance. So that...
  18. M

    Probability analysis in Simulink model

    Here are the basics - I've got a model with a computed distance between 2 objects. The likelihood that object A will detect object B is a probability dependent on distance (and its a cumulative lognormal curve). I want to include a probability function based on that computed distance. So that...
  19. S

    How to display a real time graph in the Matlab GUI from simulink block

    I want to display a real time signal from ECG I use simulink block -scope and want it to be display in gui axes This is a code from some other guy function Command1_Callback(hObject, eventdata, handles) button_state = get(hObject,'Value'); if...
  20. S

    Simulink Simulation of Inverted Pendulum: Help Needed

    I hope this is the right place to post. I am trying to simulate an inverted pendulum as seen in the picture using simulink, it is supposed to balance by applying momentum with a DC-motor. I have used the equation in the picture to make the block diagram and the result of the running the...
  21. H

    S-function simulink for serial communication

    I'm trying to read data from a serial port in simulink. The serial configuration blocks and query instrument are not working properly for the device I try to read over COM port. In matlab, I can easily read out data from the device using fopen() and fscanf(). Using the MATLAB function...
  22. H

    How to Receive Data from Electronic Compass using Simulink Serial Connection

    I'm trying to receive data from a electronic compass in simulink. The compass sends data using the NMEA protocol through USB using a serial connection. The serial output format is: 4800 baud, 8 data bits, 1 stop bit, no parity and uses the following sentences...
  23. H

    MATLAB Matlab simulink + control systems + 3D model how?

    I am fairly new with simulink and only went through a couple of tutorials on how to use it. but i am looking to do some control system design with a 3D model. I know i have lots to learn so i would like to get some directions as to where i should go to reach my goal. I am looking to...
  24. B

    Why Does Simulink's Integrator Block Show Error with Laser Rate Equations?

    Hi, I am trying to solve the laser rate equations in Simulink using the integrator block. But it gives an error message each time I run the simulation: 'Derivative input 1 of 'rate_equation_15_2_2012/Phy1-eq./Integrator3' at time 0 is Inf or NaN. Stopping simulation. There may be a...
  25. E

    Implementing a function in simulink simulation

    Homework Statement The problem statement essentially has me inputing a signal into simulink manipulating it and then looking at the output. My output function is defined as $$y(n)=0.8x(n)+0.5x(n-1)+0.2x(n-2)$$ Homework Equations N/A The Attempt at a Solution In my simulink...
  26. N

    Circuits, State-Space Equations, MATLAB Simulink

    SOLVED. Just making the post showed me the answer. Sorry!
  27. Twinflower

    Problem creating a statespace in Simulink

    Homework Statement The problem describes a two tank system where liquid is put into tank 1 and is flowing through a pipe from the bottom of tank 1 into the bottom of tank 2 where it is pumped out from the other side of the tank. The liquid level of the tanks are described like this...
  28. Y

    Extended Kalman Filter(EKF) concept (SIMULINK)

    Hi all, I am currently designing a Extended Kalman Filter, estimating temperature in a permanent magnetic synchronize motor, in the Matlab Simulink. Attached pdf is the paper i am referring for my covariance matrix and state vector matrices. I have built the system in Simulink but the...
  29. S

    MATLAB MATLAB Simulink: Incomplete plot in scope

    Often, after running a model in Simulink, the graph displayed in Scope is incomplete.. ie the initial portion of the graph is missing and only a part of the final portion remains. If I open the scope window as soon as the model starts running then I can see the graph being plotted but after a...
  30. C

    Simulink: read parameter from Matlab workspace

    Beginner's Simulink problem: I have made a Simulink model of a motor-reduction gear-conveyor belt system which outputs velocity (v) and acceleration (a) of the conveyor belt. The reduction gear ratio (i) is a value in a Constant block. My next task is to make a simple optimization of the gear...
  31. H

    Errors with s-function level 1 in simulink

    Hi all, I am modeling a separator model with pressure and water level as 2 variables. I first made an m-file(hamda.m) with ode23tb, which is working( 4 plots: pressure, water level, flow of liq output and flow of gas output. then I used an level 1 s-function( gabileh) applying the...
  32. R

    How to Model Complex Equations in Simulink?

    [b]1. I am working on a project to achieve maximum power output from a motor using the MEPT (MAximum Energy Power Point) algorithm for a small scale compressed air energy storage system. In the equation to attain efficiency, I am using simulink. I am not able to form the equation for this part...
  33. I_am_learning

    MATLAB Matlab Simulink Simulation very slow

    I tried to solve a simple transmision line circuit using MATLAB simpower system In this image, Ac source is 132 kv. I want to read rms value at the load. But unfortunately, the simulation is running very slow, and it is taking forever to even comple the one ac cycle. Any help please.
  34. T

    Where to start? Modeling a UAV Control System in Simulink

    Hi, I have a small project coming up, based around modeling (and perhaps building) a small Micro UAV system. Its a small device with contra-rotating blades (for stability), and I want to perhaps model the control system using simulink but I really don't know where to start! The aim is for the...
  35. B

    Simulating a custom discrete-time PI controller and plant in SIMULINK

    Hi! I've been looking to simulate a PI controller in SIMULINK without much success. You will be able to find a description of the above in the images located here: https://picasaweb.google.com/102197309611185157885/PIControlWithMatlabAndSIMULINK?authkey=Gv1sRgCOCnzvbm5PuNJA&feat=directlink. I...
  36. 1

    How to Implement Dynamic Max/Min Control in a Simulink 2 D.O.F System?

    I am modelling the vibration of a 2 D.O.F system with damping in Simulink. I want to set up control such that if the control value is between two values (max and min) then it sets the control value to the specified input but if it is outside the max and min interval then the control value is...
  37. 1

    Simulink Max/Min Control

    I am modelling the vibration of a 2 D.O.F system with damping in Simulink. I want to set up control such that if the control value is between two values (max and min) then it sets the control value to the specified input but if it is outside the max and min interval then the control value is...
  38. V

    Creating 4x4 Matrix Block in Simulink

    Hello everyone, I need to create 4x4 matrix in simulink. Not like writing in "Constant" block, i mean 4x4 form of the "Create 3x3 Matrix". I look everywhere but i couldn't see that block, so i thought; "am i searching wrong thing?", only you can tell me that:smile: For example; what...
  39. J

    Fortran Data analysis with fortran/c or simulink

    Hello, Lately i had my XPS measurements from my collegue. data files are .txt files and contains two column and thousends of rows of consequent measurements of same region. i mean 81.510 aa.bbb ... ... 91.870 cc.ddd 81.510 ee.fff ... ... 91.870 gg.hhh the reason of...
  40. E

    Hartley Receiver and MATLAB Simulink

    Homework Statement I am totally new to MATLAB. My lecturer wasn't aware of that and just gave us an assignment about explaining the phenomena Hartley Receiver using Simulink.Homework Equations The diagram is attached as first picture. Using Simulink, prove that the image signal is alleviated at...
  41. Z

    Three Tank Control System on Simulink

    I am doing Control on Three Tank System using Simulink and I am newbie in Simulink. I am having a problem in the Simulation of Simulink. I am having the equation as below: az1×Sn×sign(h1-h2)√(2g|h1-h2|) where az1, Sn and g is constant. h1 and h2 is the input of the system. This...
  42. J

    Simulink model of Active Suspension

    Hi, I've created the model for an active suspension, however my suspension working space, body accel and tyre load graphs, I'm not sure if they're correct. If anyone could look at the model and tell me if I have gone wrong, I'd be grateful. Thanks. http://cl.ly/251C3e0y3d0Y1z1j0K1W...
  43. P

    Simulink Design Help: Active Suspension on Full Car Model

    hi guys, new to the simulink environment so wondering if anyone could help. i have a project to do where i am asked to do a design of an active suspension on a full car model. seeing i am totally new to this i am not sure on how to start this. i have done my background research and seen the 7Dof...
  44. L

    Simulating a Ring Oscillator in Simulink - Help Needed!

    i am a last year EE student and I am creating a library in simulink. and at 1 stage i need to simulate a ring oscillator . i ve done it but with a lil bit of problems in the simulations. I am using spice parameters for simulink . that's why i asked if any of you guys have done it before. how do...
  45. J

    How Do I Customize Parameters in a Simulink Engine Model?

    Homework Statement I am modelling an engine, I have attached a picture of my model. It is the basic engine model that comes with Simulink, with my attachments included. My question is, how and where do I enter my own values? I'm pretty new to using Simulink, so I don't really know where...
  46. M

    MATLAB Need help in matlab simulink ?

    need help in MATLAB simulink ? when i try to connect display block with error calculator block then this red line appears instead of black...it shows that no connection between them...can u please tell me how to conect them ... thanks ...see the attachment please...
  47. S

    Frequency Plot(or bode plot) in SIMULINK

    Dear all, Can anyone describe as to how we can plot frequency response in SIMULINK-MATLAB. One way is to use spectrum analyzer but it does not give accurate results for continuous time systems...another way could off course be to use commands but I need something which can compute bode plots...
  48. H

    Hybrid Powertrain design in simulink

    i am a msc automotive student looking for simulink tutorials related to the hybrid electric powertrains.
  49. M

    Help Needed! Simulating PID Controller in Simulink - Mark's Project

    Hello I'm a student working on a project in temperature control. I have to investigate some of the properties of a standard PID controller. Sadly my project supervisor is not very helpful and I was hoping somebody here could offer me a litte guidance. I would like to simulate my controller in...
  50. S

    Pid controller for position control in amb simulink help

    hi ! basically i need help in simulink plotting the output can anyone help i have attached the output desireed for my model in pic below below pleasez help me out guys thnx in advance
Back
Top