Answered
Is there any limitation in simscape in adding two types of sensors to a circuit?
Torque sensor allows zero motion, it needs to be connected in series. It is like a real physical torque sensor.

12 years ago | 0

| accepted

Published


Welcome R2014a!
MathWorks just released MATLAB R2014a! (Licensed users can download R2014a here.) Here is a quick look at the new Simulink...

12 years ago

Thumbnail

Published


The Simulink Curling Simulator… we did it!
After I published my post on simulating figure skating in Simulink, my colleague Corey Lagunowich and I discussed what other...

12 years ago

Thumbnail

Published


Debugging Simulink Coder Executable Easily in R2013b
A few days ago I was showing a user how to debug an executable generated by Simulink Coder and I realized that the new...

12 years ago

Thumbnail

Published


How Mature is your Model-Based Design Deployment?
Last week I took part in a presentation about the Model-Based Design Process Assessmentâ„¢ offered by the MathWorks Consulting...

12 years ago

Thumbnail

Published


Everyone loves a package… Especially a Hyperloop simulation.
In case you forgot, tomorrow is Valentine's Day. Instead of going for the classic bouquet of flowers or box of chocolates,...

12 years ago

Thumbnail

Published


Win Olympic Gold with SimMechanics: Modeling Figure Skating and Angular Momentum
With the XXII Winter Olympics starting this week, I thought we should take the time to model something from the games! So...

12 years ago

Thumbnail

Published


How to model a hard stop in Simulink
Since R2010a, the Simulink Library includes a block named Integrator, Second Order. In my experience most people do...

12 years ago

Thumbnail

Published


A Free Dialog for your MATLAB System Block
Today I am happy to welcome guest blogger Jacob Halbrooks to describe some nice capabilities of the MATLAB System block...

12 years ago

Thumbnail

Answered
Sources for learning the intricacies of Simulink?
I try my best to describe important Simulink intricacies here: http://blogs.mathworks.com/seth/ Specific to s-function, he...

12 years ago | 0

Published


Simulink and MATLAB objects
Recently, I spoke with a user who needed to interface a Simulink model with an external flight simulator implemented as java...

12 years ago

Thumbnail

Answered
Terminology 101: XPC , Real-Time, ERT, SIL, PIL, External Mode
I like this page for HIL: http://www.mathworks.com/discovery/real-time-testing.html This section of the doc will help for ...

12 years ago | 0

Published


Problems with your S-Functions… Try this Diagnostic!
Ahhh... C Mex S-function... If you ever tried creating a C Mex S-function and were a little rusty on your C programming,...

12 years ago

Thumbnail

Answered
Is there a possible way to include enumeration in Signal builder function to define inputs?
Not possible... please contact support to explain your use case so it can be considered in future releases. For now, I would ...

12 years ago | 0

| accepted

Answered
Slow down Simulink to synchronize it with external session (JADE)
It is not clear how you interface with the external tool, but it looks lik an S-function is the way to go. In an S-Function (...

12 years ago | 1

| accepted

Answered
How to get sample time of the model through scrip?
Simulink.BlockDiagram.getSampleTimes http://www.mathworks.com/help/simulink/slref/simulink.blockdiagram.getsampletimes.html

12 years ago | 1

Answered
Non-zero start time in Rapid Simulation Target
I will not go into details... with RSim target you have an option to choose a solver. See this link to see how to configure this...

12 years ago | 0

Published


Logging Multiple Signals
Today I want to highlight a new entry in the Simulation menu in R2013b: Log/Unlog Selected Signals. If you have to log...

12 years ago

Thumbnail

Answered
robotic arm force feedback simulation
This is very close to that you need: http://www.mathworks.com/help/physmod/sm/examples_v2/computing-actuator-torques-using-in...

12 years ago | 0

| accepted

Answered
Simulink Block execution information problem
Display the sorted order: http://www.mathworks.com/help/simulink/ug/controlling-and-displaying-the-sorted-order.html Here ...

12 years ago | 0

| accepted

Answered
linmod or linearize?
Here it is: http://www.mathworks.com/help/slcontrol/ug/linearizing-nonlinear-models.html#bsp453g-1 In short, the answer is...

12 years ago | 0

Answered
Problem in linearizing a Simulink model
It is difficult to say without looking inside the subsystem in your model. A few tips: - If you have Simulink Control Design...

12 years ago | 0

| accepted

Answered
How do you convert a virtual subsystem to a subsystem which can be converted to referenced model?
The subsystem need to be atomic. Right-click on it, parameters, you should see a "Treat as atomic unit" checkbox. http://w...

12 years ago | 2

| accepted

Answered
Can I use embedded matlab functions in simulink models? Is it a good practice to use this?
yes, and yes! (but like all good things... don't abuse it)

12 years ago | 0

Published


Tracing Requirements to Models, Tests, and Generated Code
When I wrote a post about the R2013b new features, Fraser replied in a comment that one of his favorite new feature is the...

12 years ago

Thumbnail

Answered
Implementing model references with SimMechanics and SimHydraulics
Maximilian, componentizing is always a good idea! With Simscape and SimMechanics, the physical network cannot cross atomic bo...

12 years ago | 0

| accepted

Answered
How do I check if a subsystem handle is for a stateflow chart
Use the "MaskType" property of the subsystem... it is equal to 'Stateflow' for a Stateflow chart.

12 years ago | 0

Answered
Position and velocity integral in Simulink
The Second Order Integrator is designed especially for that: http://www.mathworks.com/help/simulink/slref/secondorderintegrat...

12 years ago | 1

| accepted

Published


Hyperloop: Not so fast!
This week Matt Brauer is back to describe work he did to analyze the trajectory of the Hyperloop proposal. This is a key...

12 years ago

Thumbnail

Answered
How can I start a timer when the value of a signal becomes zero?
Use Stateflow... it allows you to express this type of procedural logic in a very intuitive way. If you need to use Simulink ...

12 years ago | 0

Load more