Simulink Instructor
Simulink Instructor
  • 15
  • 200 150
Simulink Errors, Troubleshooting, and Diagnostics
This lesson will help give you an understanding of what to do when things go wrong. It is frustrating, when learning to use new software, to encounter errors and warnings. This lesson introduces you to some common error, warning, and diagnostic messages, shows you how to control those messages, and explains what causes (and how to prevent) some of the more common error and warning messages, so that you can effectively accomplish your work without issues.
*Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at work and am posting the material to UA-cam in hopes that you will find it helpful. A couple of the original introductory videos contained material specific to Udemy, so I elected to remove them. They cover installation of Simulink and give an overview of the course, so you’ll want to install Matlab with Simulink before you start following along. If you watch the full playlist here on UA-cam, you will still learn 95% of the material in the original course.
The full playlist is less than 2 hours, won’t require a large investment of your time, and should give you enough information to get started with Simulink. A little of the material is now dated, but nearly all of it is fully applicable to the latest Simulink releases. If you find any deficiencies, I apologize in advance. I would continue to update all of these videos, but I simply lack time.
If you’re interested in Simulink, I can already tell that you’re an amazing person. Learn the tool, be a better engineer (or just a better-educated person) and accomplish great things!
Переглядів: 12 165

Відео

Simulink Outputs
Переглядів 4,9 тис.2 роки тому
This lesson will give you a brief introduction to Simulink's output blocks, with a simple simulation to highlight a few features of one of my favorite output blocks, the scope. I'll also talk through use cases for some other common outputs. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at work...
Simulink Masks
Переглядів 3,1 тис.2 роки тому
This lesson introduces masks, which you can use to make your logic more aesthetically appealing, user-friendly, and re-usable. Masks help make your models look more professional, and create a level of abstraction between the user and the underlying logic, so that users can easily treat some (or all) of your model as a black box. *Originally part of a Udemy course which I removed a few years ago...
Matlab Scripting for Simulink
Переглядів 16 тис.2 роки тому
This lesson will introduce you to Matlab scripting for Simulink, using m-files for model callbacks and mask callbacks, and using Matlab scripting in Matlab function blocks. Integrating m-file scripting with Simulink can help you make your models more scalable, and Matlab function blocks are often helpful for quick, proof-of-concept work in simulation. *Originally part of a Udemy course which I ...
Simulink Libraries
Переглядів 3,6 тис.2 роки тому
This lesson will give you a brief introduction to Simulink's output blocks, with a simple simulation to highlight a few features of one of my favorite output blocks, the scope. I'll also talk through use cases for some other common outputs. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at work...
Solutions to Common Simulink Modeling Challenges
Переглядів 1,1 тис.2 роки тому
In this lesson, I'll show you how to deal with some common Simulink modeling challenges by walking you through a set of example models with extended explanations. Specifically, this lecture will help you work with memory and signal management. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at w...
Simulink Inputs
Переглядів 13 тис.2 роки тому
In this lesson, I will introduce you to input blocks in Simulink. I will also create a slightly more sophisticated model using a couple of kinds of inputs to demonstrate how certain input blocks (and a few common blocks) can be put to good use. The example model will demonstrate, among other things, how to use switches, clocks, and conditional logic, how to create a simple memory element, and h...
Simulink Datatypes, Inheritance, Sample Rates, & Selected Subsystems
Переглядів 3,2 тис.2 роки тому
In this lesson, you'll be introduced to using datatypes in Simulink, the basics of datatype inheritance, sample rates and times and how to transition between them, and triggered and enabled subsystems. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at work and am posting the material to UA-cam ...
Simulink for Embedded Systems
Переглядів 1,6 тис.2 роки тому
In this lesson, you'll learn to use Simulink to create code that you can then run on hardware. Simulink's visual approach to algorithm development will allow you to create high-quality code for your hardware while focusing on your software strategies, rather than on coding syntax. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still l...
Simulink Solvers
Переглядів 6 тис.2 роки тому
After this session, you'll know how to select and configure a solver that will give you a good balance between simulation speed and fidelity. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at work and am posting the material to UA-cam in hopes that you will find it helpful. A couple of the orig...
Simulink Introduction to Common Logic Blocks
Переглядів 4,1 тис.2 роки тому
This lesson introduces some really common logic blocks that nearly everyone will end up using on a regular basis when creating Simulink models. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at work and am posting the material to UA-cam in hopes that you will find it helpful. A couple of the or...
Creating & Simulating Your First Simulink Model
Переглядів 1,7 тис.2 роки тому
This lecture will help you get started with Simulink by creating and simulating a very simple model. If you already have some experience with Simulink, never fear! Later videos will soon delve into more advanced material for you. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it regularly at work and am pos...
Simulink Signal Routing, Naming, & Logging
Переглядів 8 тис.2 роки тому
In this session, you'll learn some tips and tricks for signal routing to make your model more human-readable. You'll also learn how to name signals, how to log signals during simulation for plotting afterward, and how to add testpoints for embedded software. *Originally part of a Udemy course which I removed a few years ago, as I no longer had time to update it. I still love Simulink and use it...
Stateflow
Переглядів 22 тис.8 років тому
Ready to learn to use Stateflow? You'll learn how to use Stateflow in this video, with a simple Stateflow example compared against if-else logic and switching logic from another video of mine. Stateflow is a fantastic tool for state-based logic within the Simulink environment, and once you've completed this lesson, you'll be well equipped to be productive with Stateflow.
Simulink Switches & If Statements
Переглядів 100 тис.8 років тому
This lecture will help you use if-statements, boolean logic, and switches to execute logic based on different circumstances or strategies of your choosing.

КОМЕНТАРІ

  • @macksoneh
    @macksoneh 18 днів тому

    For a short 6 minutes video, please get right into the subject without spending the first two minutes justifying your methods.

  • @omarsalem5832
    @omarsalem5832 Місяць тому

    Thank you

  • @josemoreno9397
    @josemoreno9397 2 місяці тому

    my model doesnt recocgnize the script variables

  • @stevenhaney1715
    @stevenhaney1715 6 місяців тому

    I spent the whole night looking for the solution to a problem with logging, thanks to your video I was able to solve it, whoever it is, thank you, greetings from a Colombian <3

  • @alikadhim1784
    @alikadhim1784 7 місяців тому

    Thank you

  • @sinan4174
    @sinan4174 8 місяців тому

    Teşekkürler.

  • @salemmola80
    @salemmola80 10 місяців тому

    my scope is not showing any value .....even when i give it a constant value: what to do?

  • @ahmedal-turkmani5620
    @ahmedal-turkmani5620 10 місяців тому

    Error in pushbutton1 (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)encryptionimge('pushbutton4_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback how to fix this error ?

  • @سلمىعوض-ح1ه
    @سلمىعوض-ح1ه Рік тому

    How dawnload it its not in program

  • @mansijesani5966
    @mansijesani5966 Рік тому

    Hi, I have a doubt in simulink, how can I reach out to you

  • @Rupali_2kidos_Lifestyle
    @Rupali_2kidos_Lifestyle Рік тому

    Nice session waiting for new simulink sessions with new logics.Thank you

  • @baggid6257
    @baggid6257 Рік тому

    Thank you so much for coming back and uploading content here!

  • @sowji__5
    @sowji__5 2 роки тому

    Plz 🙏 upload the all the simulink tutorials sir or else if u possible continue the course from starting sir it is more useful to me u r preaching also good to listen carefully sir now matlab simulink is I needed I searching loat of channels but those are not given a full description to about the vedio sir. Plz 🙏 if u possible Plz upload the the all tutorials sir it is more helpful to me

    • @simulinkinstructor7470
      @simulinkinstructor7470 2 роки тому

      Ok, you've convinced me! I saw your comment a couple of months ago but I haven't had time to upload the rest of the course. I am working on getting the rest of the course uploaded now and scheduled. It should all be public on UA-cam in a couple of days' time. I'm glad you found this video useful and hope that the rest of the material is helpful to you as well.

  • @kajalilavya1801
    @kajalilavya1801 4 роки тому

    Thank you!

  • @oestmoestm1295
    @oestmoestm1295 4 роки тому

    Thank you for the tutorial! But the course is no longer available on Udemy :/ would you please provide me the working link?

    • @simulinkinstructor7470
      @simulinkinstructor7470 4 роки тому

      I hope you found the tutorial useful. I ran out of time to keep the Udemy course up-to-date, so I unpublished it. Unfortunately, I forgot to update the UA-cam video descriptions at the same time. Thank you for the reminder - I will go ahead and update the description for this video to remove the Udemy link.

    • @oestmoestm1295
      @oestmoestm1295 4 роки тому

      It is of course useful, I wish I had acccess to the course before it get unpublished. I don't know if there is any possibility to get access to the course again. Thank you again for the content ;)

  • @abdouproof6915
    @abdouproof6915 4 роки тому

    Idk why you stopped doing tutorials 😕 this is the best Simulink tutorial I’ve seen, so clear for beginners

  • @invisible-fm6lz
    @invisible-fm6lz 4 роки тому

    Hi you saved my job

  • @aminaimen78
    @aminaimen78 4 роки тому

    👍👍

  • @REDSLibrary
    @REDSLibrary 5 років тому

    Nice and clear explanation

  • @Tetrapak1234
    @Tetrapak1234 6 років тому

    Hi, you helped me a lot :D I have one question for you. In your video you send your output to scope, but i want to have one exact value as my output and i want to store it in a variable (lets say when time in simulation is 6.2 i want to put lane number into variable x, and x will be constant till the end of simulation, and in this case x will be 1) Can you help me and tell me how to do this?

    • @simulinkinstructor7470
      @simulinkinstructor7470 6 років тому

      I don't usually give technical advice on my UA-cam videos, but I'll try to help you out with this question. Here's one way to do this, although I haven't actually tried this before typing my reply: feed the output of a discrete clock into a 'compare to constant' block. with a value set equal to or greater than '6.2.' When the simulation time exceeds 6.2 seconds, the output of this block should be a logical '1.' Feed the output of the 'compare to constant' block into the trigger of a triggered subsystem. The trigger should be setup to execute on a rising edge. Feed the current lane number (the variable whose value you want to save at t = 6.2 seconds) as an input into the triggered subsystem, and within the triggered subsystem, connect the input to a 'To Workspace' block, which should be set up to output an array. After running the simulation, the array will be populated with zeros until 6.2 seconds, and then populated with the lane number after that. This isn't going to put a variable with constant value into your workspace, but you could always setup a model callback to execute when the simulation is done. Your callback code could simply take the max of the array. Now, when you run the simulation, the output will be a variable in your Matlab base workspace with a value equal to the lane number at t = 6.2 sec, which I think is what you are wanting. Hope that helps!

    • @Tetrapak1234
      @Tetrapak1234 6 років тому

      Thats exactly what i needed :D , thanks a lot

    • @Tetrapak1234
      @Tetrapak1234 6 років тому

      Thanks a lot :D

  • @mohammedabdelwahabsharafel2515
    @mohammedabdelwahabsharafel2515 6 років тому

    www.redslibrary.com

  • @erickoehler7851
    @erickoehler7851 7 років тому

    Thanks for the tutorial, it helped me find my error.

  • @valerioxu6509
    @valerioxu6509 7 років тому

    Nice tutorial. Thanks so much. I have a question. Say I have to model the states of the machine ,such as idle fault good and slow down .the input is a message from a user interface to select the actual state of the machine and then the output could be the velocity or energy consumption or other parameter. This if logic seems only can do numerical comparison . Could you give me a suggestion?thanks

    • @simulinkinstructor7470
      @simulinkinstructor7470 7 років тому

      Valerio, I'm glad to hear the video was helpful for you. If you have fairly simple logic in each state, then the approach taken in this video should work for you. An if-statement created in the way shown in this video is capable of far more than mere numerical comparison. It is possible to have multiple outputs in the triggered subsystems feeding into multiple merge blocks, so multiple I/O are supported, and you can have sophisticated logic within each triggered subsystem, if you choose to. In your case, however, since you have a number of states and need to transition between states based on conditions and change multiple outputs based on the states, using Stateflow within your Simulink model is probably a better choice for you. You should be able to implement all of the logic that you need to without using Stateflow, but Stateflow will likely make your state-based logic easier to create and (importantly) easier to debug.

    • @valerioxu6509
      @valerioxu6509 7 років тому

      Thanks for the answer. Well my case is actually not that complicate. the idea is that here is a user interface and the user enter the state of the Machine ,say (I,F,G,S which represent the actual state of the machine) and this generate a massage as a input and gives an output such as a fixed number. So it's a SIMO case. It doesn't concern state transition(in my point of view). So I wanted to know is it better to use Switch or if statement. thanks.

    • @valerioxu6509
      @valerioxu6509 7 років тому

      I also wanted to know how to generate this message input

  • @noeliasanchezderojasfernan6497
    @noeliasanchezderojasfernan6497 8 років тому

    Thank you sooo much!! You help me with an important job

  • @LvtLoshi
    @LvtLoshi 8 років тому

    Your voice sounds pretty similar to aftrotechmods

    • @simulinkinstructor7470
      @simulinkinstructor7470 8 років тому

      Interesting observation. You're right - his voice does sound rather similar.

    • @QRobotix
      @QRobotix 8 років тому

      Exactly my thought as well

  • @nahlashannan
    @nahlashannan 8 років тому

    very clear and useful video Thank you for sharing

  • @retselisitsoemaphephe8969
    @retselisitsoemaphephe8969 8 років тому

    Thanks for the video, very useful to Simulink beginners

  • @gulrukh1386
    @gulrukh1386 8 років тому

    I like your very good video, Sir, I have one question, I have one problem in my PID Controller with my Simulink Model, I tried a lot but I failed badly, I want to send my Model at your end and after Tuning send back to me with many thanks. I will be very grateful to you and obliged. Thanks again. Best Regards Gul Rukh Khan email: grkhan@hec.gov.pk

    • @simulinkinstructor7470
      @simulinkinstructor7470 8 років тому

      Gul, You will not learn as much if I am modifying your Simulink model for you. However, I’m happy to point you to some good resources and perhaps answer a question or two if you still have any unresolved questions. I would strongly suggest using Simulink’s discrete or continuous PID controller blocks, which have a built-in tuner. Mathworks has excellent documentation on these, which you may review at www.mathworks.com/help/slcontrol/gs/automated-tuning-of-simulink-pid-controller-block.html and at www.mathworks.com/help/simulink/slref/pidcontroller.html. These will even allow you to select the gain and phase margins that you need (I would recommend 6-12dB and 45-60 degrees, depending on the application) as well as the time-domain response (such as % overshoot). You can also view both time and frequency-domain response for the plant, open-loop, and closed-loop transfer functions, so the tuning tool that Matlab offers with their PID blocks is really fantastic. I’ve had good success with using this tool to design gains for a controller for a real-world system that I was working on. Try reading the documentation that I’ve linked to…if you still have a question after that, let me know and I’ll try to help you out.

    • @Sm1tHyBo1
      @Sm1tHyBo1 7 років тому

      Hi there, really enjoyed the video cheers for the help. I am trying to make a Simulink model for a quadcopter moving around a course- I need the drone to realise when its reached a certain point in space, then use a switch to make it go to its next point. Your video was very helpful in showing me the right blocks to use, I am just struggling to put it all together. Could I email you some screenshots for you to look at or ask in further detail? Cheers

  • @mostafaazizi6625
    @mostafaazizi6625 8 років тому

    good for you!