To Workspace or Simout Block in MATLAB Simulink to Export Data #09 | Module 2

Поділитися
Вставка
  • Опубліковано 5 вер 2024

КОМЕНТАРІ • 61

  • @FALLEN1ASH
    @FALLEN1ASH 3 роки тому +1

    My outputs are "Out.simout" for example instead of just "simout"? is there a fix?

    • @info4eee
      @info4eee  3 роки тому

      Yes Ash B, "Out.simout" in not a valid variable in name in MATLAB. You can use "Out_simout" instead.

    • @FALLEN1ASH
      @FALLEN1ASH 3 роки тому

      @@info4eee is that another variable in simulink?

    • @info4eee
      @info4eee  3 роки тому

      @@FALLEN1ASH You can assign any name as per your need in simout block.

    • @info4eee
      @info4eee  3 роки тому +8

      Hello Ash B,
      In MATLAB with R2020b, there is some modification in "to workspace block". You have used variable "simout" and it is storing it in "out.simout". You are required to extract it by command "simout = (out.simout)". Now you can access this variable to do necessary operation.

    • @FALLEN1ASH
      @FALLEN1ASH 3 роки тому +1

      @@info4eee I was trying to recreate this :ua-cam.com/video/t4XFJkQhMkc/v-deo.html&ab_channel=rkarthikkumarACADEMY
      After that command it says in orange:
      Warning: Unrecognized field name "simout".
      > In Simulink/SimulationOutput/get
      In Simulink/SimulationOutput/subsref

  • @penseespositives8
    @penseespositives8 4 роки тому +3

    Thank you

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

      Thanks for watching 😊

  • @latathakur3729
    @latathakur3729 3 роки тому +3

    Superb

    • @PSJamwal
      @PSJamwal 3 роки тому +1

      Thanks a lot *Lata Di* for your kind feedback.

    • @info4eee
      @info4eee  3 роки тому

      Thank You *Mrs. Lata Thakur* for your appreciating words. It means us a lot.

    • @latathakur3729
      @latathakur3729 3 роки тому +1

      @@PSJamwal jeeju keep it up

  • @Pl4yingxH4t3R
    @Pl4yingxH4t3R 3 роки тому +3

    ich küss dein auge brudi.
    thank you bro

    • @info4eee
      @info4eee  3 роки тому

      Thanks a lot *Shibalnu* for your lovely words. It means us a lot and fill us with energy.

  • @yahiabousseloub9217
    @yahiabousseloub9217 4 роки тому +2

    Thank you bro

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

      Thank You Yahia Bousseloub!!!

  • @manoharmanu2871
    @manoharmanu2871 4 роки тому +1

    Thank you sir

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

      Thank You *Mr. Manohar Manu* for your feedback. It means us a lot.

  • @nyeinlwin5571
    @nyeinlwin5571 4 роки тому +3

    Pls, i have problem or not? I can't write plot(t,I). In workspace has no data and only (out). Help me pls sir

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

      The reason for problem with plot(t,I) will be the variable t and I. The data in these variable should be in array form for proper working so please select array in workspace block. I hope it will solve your problem. If still it is there then please share the screenshot of your simulink model on info4eee@gmail.com to get more clarity about your problem.

    • @tladilebohang
      @tladilebohang 3 роки тому

      plot(out.t, out.I)...

  • @chomnansaedan4788
    @chomnansaedan4788 2 роки тому +2

    I dont think my matlab and simulilnk are "linked" because I run and no variables show up

    • @info4eee
      @info4eee  2 роки тому +1

      Hello Chomnan Saedan, I think you are using the new version of MATLAB. In new version of MATLAB two additional commands are required to extract simulation data.
      PS : There are updates in "to workspace block" in latest version of MATLAB. For example: If you are using two "to workspace block" with variable "time" and "amplitude" then it will be stored in single "out" variable. You need to perform additional step to extract it by following command :
      "time = (out.time)" and "amplitude = (out.amplitude)"

    • @dilshangunatillake5336
      @dilshangunatillake5336 2 роки тому +1

      @@info4eee Hi, in my case i cannot see the 'out' as well. its like none is transferred from the simulink. In my design i have two simulink models and one simulink model works well where it transferrers a definite value which is 51*1 dataset. But in the second simulink model i tries to transfer mean value of a constant signal. that variable cannot be seen in workspace. please help

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

      I'm using matlab R 2016a. transferring using scope also didn't work

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

      Hello @@dilshangunatillake5336, If one Simulink model is transferring data then another Simulink model should also transfer data. In my opinion, there should sampling time mismatching.

  • @surendarsusin9370
    @surendarsusin9370 4 роки тому +2

    What is the use of solverblock

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

      Which solver block you are talking about.

  • @DataisAmazing7
    @DataisAmazing7 3 роки тому +1

    Please help, my simulation timing is 2 but when I am using simout transferring data timing becomes 4 means always double why?

    • @info4eee
      @info4eee  3 роки тому

      There is option of decimation in to workspace block, Set this parameter as 1.

  • @LuqmanKhan-kv6xs
    @LuqmanKhan-kv6xs 3 роки тому +1

    How to obtain comparative results of different simulink models

    • @info4eee
      @info4eee  3 роки тому

      Can you elaborate your query in more details? Means what are you expecting.

    • @LuqmanKhan-kv6xs
      @LuqmanKhan-kv6xs 3 роки тому +1

      @@info4eee I have designed 4 simulink models (controllers) and want to obtain comparative results of 4 models in one scope of each variables

    • @info4eee
      @info4eee  3 роки тому

      ​@@LuqmanKhan-kv6xs, You can send the any variable {speed (w)} to the workspace with "to workspace block" from each four simulation model. Let four speed variable are w_1, w_2, w_3, and w_4. Along with that you can also send the simulation time to workspace with clock block. Now You can plot all four variable with respect to time using plot command (ua-cam.com/video/JTSWxm3Y3fk/v-deo.html).

  • @majjimeharprasad1779
    @majjimeharprasad1779 4 роки тому +1

    Sir i have problem like 7 level output with this simout I'm getting only 0 to peak output not getting like steps wise of 7 levels

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

      There may be mismatching of sampling time with different blocks. If still problem remains then you can share screen shot of the problem through email on "info4eee@gmail.com". We will try to resolve your query.

  • @user-jj8lc8wm6c
    @user-jj8lc8wm6c Рік тому

    how can i save this information for variable runs of the simulation with different input parameters to be able to compare the results?

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

      Hello Mr. Viktor W, please follow the steps given below to save the simulation results with different input parameters in MATLAB Simulink. Suppose we want the simulation results of variable O at 100, 200, 300, and 400 amplitude as discussed in this video.
      1. Set the amplitude of sine wave block *100* . Run the simulation and transfer the data of O in to variable *O1* by using command *"O1=O;"* on command window.
      2. Set the amplitude of sine wave block *200* . Run the simulation and transfer the data of O in to variable *O2* by using command *"O2=O;"* on command window.
      3. Set the amplitude of sine wave block *300* . Run the simulation and transfer the data of O in to variable *O3* by using command *"O3=O;"* on command window.
      4. Set the amplitude of sine wave block *400* . Run the simulation and transfer the data of O in to variable *O4* by using command *"O2=O;"* on command window.
      5. On command window, use the command *"hold"* to held the current plot.
      6. On command window, use the command "plot(t,O1);" to plot first simulation result.
      7. On command window, use the command "plot(t,O2);" to plot second simulation result.
      8. On command window, use the command "plot(t,O3);" to plot third simulation result.
      9. On command window, use the command "plot(t,O4);" to plot fourth simulation result.
      In this way, you can save the simulation results with different input parameters in MATLAB Simulink. You can also insert the legend to differentiate different results.

  • @Adeebpsy1999
    @Adeebpsy1999 3 роки тому +3

    How can I measure thd? Pls reply

    • @info4eee
      @info4eee  3 роки тому

      Suppose you want to measure the THD in Voltage waveform then just go through following steps.
      1) Open respective scope block -> Configuration Properties -> Logging -> Check-in Log data to workspace -> Save format as dataset.
      2) Open powergui block -> Tools -> FFT Analysis -> Check available signals and select appropriate signal.
      3) After selecting number of cycles and fundamental frequency, click on display the frequency of respective signal i.e. Voltage.

    • @Adeebpsy1999
      @Adeebpsy1999 3 роки тому +2

      @@info4eee I know that. But I need to the code for that. In command window..

    • @info4eee
      @info4eee  3 роки тому

      @@Adeebpsy1999 Then you can use THD measurement block to export to workspace.

    • @Adeebpsy1999
      @Adeebpsy1999 3 роки тому +1

      @@info4eee I need program code using workspace

    • @info4eee
      @info4eee  3 роки тому

      Please explain your requirement in details so that we respond accordingly.

  • @DewanggaPrabowo
    @DewanggaPrabowo 4 роки тому +1

    how about from workspace into simulink, cause I have a problem with it

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

      No, there is no problem, You can call the data available in workspace to Simulink!!!

    • @DewanggaPrabowo
      @DewanggaPrabowo 4 роки тому +1

      @@info4eee so I'm using from workspace block in simulink and I want to import Heartrate Signal, that I got from reading a CSV file.
      The written error is, I forgot about the detail, about my data don't have root input or something like that, and I'm trying to use "mapper input" that come from connect input but my signal is not detected.
      My data is a 2-D matrix with with 1st column is Timestamp and 2nd column is the signal value
      Thanks in advance and your respondf...

    • @DewanggaPrabowo
      @DewanggaPrabowo 4 роки тому +1

      the timestamp is showed up in mapping input window but the value of the timestamp does not showed up

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

      @@DewanggaPrabowo Can you share the screenshot of the simulation with error? You can drop it on info4eee@gmail.com

  • @aghilesmoussaoui3441
    @aghilesmoussaoui3441 3 роки тому +1

    Hello, my problem is that I only get 51 value, thanks

    • @info4eee
      @info4eee  3 роки тому

      Hello Aghiles Moussaoui, It may be because of sampling time mismatching. For more clarity please share screen shot of your simulation.