I’m experiencing matlab crashes on my model how do I find out the cause?
I have a rather complex simulink model that uses simevents, I created a block that saves the packets (simevents entities) in the matlab workspace, this is done by calling a simulink function with a toWorkspace block inside it.
The problem is that by inserting one of these blocks into the model everything works correctly, but if I insert 2 matlab freezes and then closes without showing any error message. It’s not a "same name in the toWorkspace block" issue because it would give me a compilation error and instead it starts simulating and then crash.
The most absurd thing is that by creating a very simplified model I managed to make these 2 blocks work correctly but in the large model I’m working on it doesn’t work. However, by removing the part related to saving in the workspace there are no problems.I have a rather complex simulink model that uses simevents, I created a block that saves the packets (simevents entities) in the matlab workspace, this is done by calling a simulink function with a toWorkspace block inside it.
The problem is that by inserting one of these blocks into the model everything works correctly, but if I insert 2 matlab freezes and then closes without showing any error message. It’s not a "same name in the toWorkspace block" issue because it would give me a compilation error and instead it starts simulating and then crash.
The most absurd thing is that by creating a very simplified model I managed to make these 2 blocks work correctly but in the large model I’m working on it doesn’t work. However, by removing the part related to saving in the workspace there are no problems. I have a rather complex simulink model that uses simevents, I created a block that saves the packets (simevents entities) in the matlab workspace, this is done by calling a simulink function with a toWorkspace block inside it.
The problem is that by inserting one of these blocks into the model everything works correctly, but if I insert 2 matlab freezes and then closes without showing any error message. It’s not a "same name in the toWorkspace block" issue because it would give me a compilation error and instead it starts simulating and then crash.
The most absurd thing is that by creating a very simplified model I managed to make these 2 blocks work correctly but in the large model I’m working on it doesn’t work. However, by removing the part related to saving in the workspace there are no problems. simulink, crash, simevent, workspace MATLAB Answers — New Questions