- Open the Scope
- Click the "Settings" button (the gear)
- Go to the "History" tab and uncheck (or change the value of) the "Limit data points to last"
Simulink, modeling of force which is a function of AC voltage
8 views (last 30 days)
Show older comments
Harry_108
on 16 Apr 2015
Commented: Sebastian Castro
on 16 Apr 2015
Hi All,
I am relatively new in the matlab/simulink world.
I want to model a force (output) which is dependent on the square of AC Voltage (voltage) * Constant
F(V) = K * (V^2)
AC voltage = 1 V, 1 KHz
in my attempts to model above equation, the scope does not show the results from time zero, but from 9.99 to 10 sec.
I don't understand how to model this force.
I request for the help from simulink Gurus.
thank you in advance.
regards,
Harry
0 Comments
Accepted Answer
Sebastian Castro
on 16 Apr 2015
To clarify your question, are you using Simulink or Simscape to model this? Also, are you running into problems with the actual equation, or just with the Scope results?
Regarding the Scope: that's a common problem. The default Scope parameters preserve a buffer of only 5000 data points. You can imagine that a 1 kHz signal requires more than 5000 points, so your Scope ends up only showing the last 0.01 seconds or so of simulation.
To change this,
- Sebastian
2 Comments
Sebastian Castro
on 16 Apr 2015
Yep, the AC Voltage Blocks belong to the Simscape and SimPowerSystems products (there's one for each).
There are different modeling approaches where you build circuits using components like resistors, transformers, etc. instead of building equations in Simulink. Therefore, the lines require some interface blocks to connect to Simulink blocks.
Is it your plan to use these tools? If so, I'd check out some videos on the MathWorks Web site to get a feel for them.
- Sebastian
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!