My 'to workspace' block isn't working

Hi, I have a 'to workspace' block in my simulink model to get my V_BT output into my workspace to plot it in a graph but nothing appears in my workspace when i run my model. Any helps appreciated, Thanks! here's a picture for reference.

Answers (1)

out.V_BT % in command window to access the values of the variable

3 Comments

I have a run file to run the fowards facing model of this electric motor and this is whats happens...
Every time I run the forwards model matlab run file and then go on my backwards model and run it I get these 4 errors. But if I don’t run the run file and then run the backwards model straight away, it works every time with no errors and the correct outputs.Any ideas?
So i created a new model and put a sine wave block in the used a to workspace block to see if it was my simulink model. It still didn't put that variable in my workspace. Is there a setting that i may have changed to stop variables going into my workspace?
hello all
I have the same problem

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2023b

Asked:

Sam
on 16 Nov 2023

Commented:

on 29 Mar 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!