To workspace & From workspace during Simulation

To workspace & From workspace during Simulation

Post by G?nen » Fri, 27 Mar 2009 16:15:19


High everybody,

As most of you know "To workspace" block sends the signal to matlab workspace and you can use this variable only when the simulation is stopped. But I want to use this variable during the simulation also. In other words, I want to send the variable to workspace and then use it during the simulations. Do you have any suggestions to do that????
 
 
 

1. Why To Workspace variable only exported to Workspace after the simulation is stopped...

2. Importing the simulation time to the workspace during an assertion callback!

Hi,

I'm using two distinct assertions in my simulation with dedicated callback functions. The first assertion callback asks for an xls input file which has the simulation data with respect to time. I need to read the current simulation time at that moment in the m-file which is used to calculate the condition for the second assertion. Basically what I want to achieve is a time trigger for the second assertion which is dependent to the current simulation time and the execution time of the xls file. (t_trigger = tout + txls)

The problem is tout is not available in the workspace until the simulation is ended and trying to export the simulation time with a "to workspace" block does not work either. Is there any other methods to obtain the simulation time during a callback execution or do I have to think of another way around?

Thanks a lot in advance!

Tuna

3. Workspace Manager workspace question

4. Workspace problems - "not enough workspace available, close some windows and try again"

5. 'mask workspace' in simulink is not a really separate workspace?

6. read base workspace from function workspace

7. Create a Sub-Site, Document Workspace or Meeting Workspace?

8. Can't create a workspace within a workspace library?

9. Differentiating Teamsites, Document workspaces, Meeting workspaces.

10. Excel and WorkSpace: is possible to generate a file and save it in the workspace?

11. Change default view in PWA to All Workspaces vs. Owned Workspaces?

12. Groove Workspace - How do I share/add users to my workspace?

13. Open an ODBC connection in a jet workspace and which workspace is better

14. Load .mat into base workspace from function workspace

15. Simulink problem - To workspace and from workspace