게시됨


Simulink Debugger: Monitoring Variable Step Solver Performance
A few months ago I introduced my favorite command to analyze the performance of a variable-step solver. This week, I will...

거의 14년 전

Thumbnail

게시됨


Running a Simulation Step by Step
As you probably know, when you simulate a model, there is a lot of stuff going on that you do not see. Yesterday I showed...

거의 14년 전

Thumbnail

게시됨


Sneak Peek: Discover the New Look and Feel of Simulink R2012b
One of the benefits of working at MathWorks is seeing and working with the next release of MATLAB and Simulink before they...

거의 14년 전

Thumbnail

답변 있음
Variant subystems with mixed discrete/continuous?
I would be surprised if this is because of the derivative block. Usually, inactive variant should completely disappear. - Ens...

거의 14년 전 | 0

게시됨


Upgrading Simulink Libraries with Forwarding Tables and Transformation Functions
If you create and maintain Simulink libraries used in many models, or by many people, I think you will like this R2012a new...

거의 14년 전

Thumbnail

게시됨


Breaking up a Stateflow Chart for Collaborative Development
This week I have been experimenting with a feature released in R2010b that I have not used before: Stateflow Atomic...

거의 14년 전

Thumbnail

게시됨


My First Debugging Steps
Seth sometimes tells me: Grab the low hanging fruit. When debugging Simulink models, this means looking at the information...

거의 14년 전

Thumbnail

답변 있음
Is it possible to pass a parameter which represents the "sampleTime" at a 2-Level S-function?
IT should be possible to do something like: block.SampleTimes = [block.DialogPrm(1).data 0]; to set the sample from a para...

대략 14년 전 | 3

| 수락됨

게시됨


Why do we need Stiff ODE Solvers?
I hope you have noticed the new MATLAB Central blog: Cleve's Corner. Cleve once said "stiffness is an efficiency issue." ...

대략 14년 전

Thumbnail

답변 있음
simscape/simelectronics stepper motor model not compatible with fuzzy logic controller?
As the error says... I recommend looking at the Subsystems Examples. More specificaly, give a look as "sl_subsys_semantics.md...

대략 14년 전 | 0

답변 있음
Doubt regrading input as the Acceleration, Velocity and Position to get the desired position i.e. Angle for E.Motor
No sure I understand. Typically, you should have transfer function representing the dynamics of the motor (Input = Volt, Outp...

대략 14년 전 | 2

| 수락됨

게시됨


Creating Your Own Block With Continuous States (MATLAB S-Function)
In a previous post, I showed an example of a MATLAB S-Function with a discrete state This week, we continue in the same...

대략 14년 전

Thumbnail

답변 있음
Modelling of Robot contact with object
You have 2 options: 1. You can model only the arm (no wall in SimMechanics). Use a Body sensor to get the pose of the EE in S...

대략 14년 전 | 1

| 수락됨

게시됨


Simulink Student Challenge – Targeting Hardware: Win up to $500!
One of my favorite feature in R2012a is the Simulink Support for Target Hardware. Personally, I use it for many purposes....

대략 14년 전

Thumbnail

답변 있음
Writing a TLC file
I would start with the documentation page "Inlining S-Functions with TLC": http://www.mathworks.com/help/toolbox/rtw/tlc/bqlc...

대략 14년 전 | 0

| 수락됨

게시됨


Writing your own block with discrete states (MATLAB S-Function)
A few weeks ago, I noticed the following question on MATLAB Answers by K E: What are continuous and discrete states in...

대략 14년 전

Thumbnail

답변 있음
Loading a Simhydraulic Motor
The doc statement means that the Hydraulic motor itself does not include loads such mass spring and damping. This means that ...

대략 14년 전 | 1

| 수락됨

답변 있음
Single-acting hydraulic cylinder for modeling a fuel regulator system in Simulink
It is very hard to determine a solution with those details. My feeling is that the problem is not with the solver, but with h...

대략 14년 전 | 1

답변 있음
Pneumatic gas transportation system
What you mention is surprising. If you connect in series a reference, pressure source, an orifice (or pipe) and a reference, the...

대략 14년 전 | 0

게시됨


THE Most Useful Command for Debugging Variable Step Solver Performance
Today I want to share a trick I often use to determine if a variable step simulation runs as fast as it...

대략 14년 전

Thumbnail

답변 있음
Tool for showing difference b/w two simulink model
Simulink Report Generator offers this functionality: http://www.mathworks.com/products/SL_reportgenerator/ See the documen...

대략 14년 전 | 3

답변 있음
Running simmechanics in discerete mode
SimMechanics requires a continuous solver. The solver can be variable or fixed step. The fixed-step solver closest to discret...

대략 14년 전 | 2

| 수락됨

답변 있음
Simulink - Change continuous state value at a given time point
If you want to generate a "jump" in your continuous state, you must reset the block. This can be done in many ways. For example ...

대략 14년 전 | 0

| 수락됨

답변 있음
Time values must be monotonically increasing error
Ensure you re 100% sure the value are increasing, for example by validating that each element of "diff(t)" is positive. If th...

대략 14년 전 | 1

| 수락됨

답변 있음
Goto/From connections cannot cross nonvirtual subsystem boundaries. The only exception is when a goto is connected to a state output port
The error message is clear... don't place GoTo block inside the triggered subsystem and corresponding From block outside. Use...

대략 14년 전 | 3

게시됨


How to make your own blocks with code! (Introduction to S-Functions)
I have to admit... before joining MathWorks, I was afraid of S-Functions. Now this makes me laugh, because I know that...

대략 14년 전

Thumbnail

답변 있음
stiffness problem / Trying to use ode1 (Euler) in Simulink
I would verify if the robot starts in a singular configuration. If you invert D, I guess this is because D is the manipulator...

대략 14년 전 | 0

답변 있음
Save a value to variable (Simulink)
Use the Selector block: http://www.mathworks.com/help/toolbox/simulink/slref/selector.html You will be able to select rows...

대략 14년 전 | 1

| 수락됨

답변 있음
How can I return from simulink to matlab thread?
SIM is blocking, it will return to your script only when the simulation terminates. If you want to start a simulation from co...

대략 14년 전 | 1

| 수락됨

답변 있음
Hydraulic Gas-Charged Accumulator
The only thing I can guess based on your description is that you have something connected wrong. Did you look at the demo "sh...

대략 14년 전 | 1

더 보기