How to get data from simulink realtime

Discussion in 'MATLAB' started by Nick, Mar 3, 2006.

  1. Nick

    Nick Guest

    Currently, simulink gives the results at the end of a simulation. I
    wish to have it on the Matlab workspace in real-time. anyone can help
    me? Thank you
     
    Nick, Mar 3, 2006
    #1
    1. Advertisements

  2. Nick

    khair Guest

    I think you can always get the data at workspace in real-time. Simply
    arrange load data to workspace in the simulink or at the workspace
    type 'var' and find the variable that you want it to display at
    workspace.Make sure the you are working at the same root/directory in
    the workspace.
     
    khair, Mar 3, 2006
    #2
    1. Advertisements

  3. Nick

    nick Guest

    i understand that simulink loads the simulated results into the
    workspace only when u hit the "pause" or "stop simulation" button.
    however, i need access to these data as the simulation is running.
    any way to automate this?
     
    nick, Mar 6, 2006
    #3
  4. You can use the TCP/UDP custom toolbox to stream the result using UDP
    to another application in another computer. Or probably a COM / EXCEL
    toolbox to stream the data internally to another application.

    Note: simulab do not in most setups run in realtime, so you have to
    add the simulation timestamp to the UDP streaming data, or add a
    Pseudo-RT module to you model.

    - BG --
     
    Sven-Erik Tiberg, Mar 6, 2006
    #4
  5. Nick

    nick Guest

    great! do u have any links to these Pseudo-RT modules for simulink?

    much appreciated
     
    nick, Mar 7, 2006
    #5
  6. Hi Nick.

    Sorry for the delay.

    I think the link has gone from mathworks site.
    Will mail it to you tomorrow ( CET ) with examples.

    Sven-Erik Tiberg.
    Lulea Sweden.
     
    Sven-Erik Tiberg, Mar 27, 2006
    #6
  7. Hello, can u pls send it to me too?
    Thanks
    Mike
     
    Mike Turgeman, May 2, 2006
    #7
  8. Nick

    Darya

    Joined:
    Jul 15, 2019
    Messages:
    1
    Likes Received:
    0
    Hello Sven-Erik,
    Can you please send me examples?

    Thank you!
    Darya
     
    Darya, Jul 15, 2019
    #8
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.