Answered
Difference between voltage and capacitor voltage
Notice how the block has a "Series resistance" parameter? It means you can configure the block to have a resistor in series. ...

10 years ago | 1

| accepted

Answered
[Simscape] Are there ways to build segmented/discretised models with n as a block/mask parameter
I've personally done this with the new Two-Phase Fluid domain in Simscape, which is basically the same thing. To make a long...

10 years ago | 1

| accepted

Answered
Using a From Workspace block inside an enabled subsystem
I don't think you're able to do this directly with the From Workspace block. All these blocks output data by looking at the curr...

10 years ago | 0

Answered
Simscape: The derivative of position in a direction not equal to the velocity
In general, I wouldn't trust the Derivative block's results very much. This block only does an approximate derivative of a signa...

10 years ago | 0

Answered
How c2d() convert a s-function to discreted z-function(with the "zoh" set)?
"ZOH" stands for zero-order hold. Discretization occurs by assuming that there is a constant input held for the duration of the ...

10 years ago | 0

Answered
We are designing a wheeled robot using SimMechanics. How to model rolling wheels in SimMechanics?
What you need to do is define a relationship between the spinning of the wheels and the motion of the wheeled robot. You can ...

10 years ago | 2

| accepted

Answered
ROS toolbox in the windows OS communicate with ROS in the ubuntu OS
That Wiki hasn't been updated in almost 2 years. Since then, MathWorks released an official <http://www.mathworks.com/products/r...

10 years ago | 0

Answered
How to generate a Ramp signal using Simulink blocks?
There is a Ramp block in Simulink: http://www.mathworks.com/help/simulink/slref/ramp.html - Sebastian

10 years ago | 0

Answered
how do i specify initial conditions for a 2*2 system in matlab without opening the model in simulink. how do i linearize a 2*2 system in matlab without opening the model in simulink.
Easiest thing to do is to use MATLAB variables for the initial conditions in your Integrator blocks... for example |x1_init| and...

10 years ago | 0

| accepted

Answered
How to programmatically comment/uncomment a Simulink block?
Yes, you can do set_param(blockName,'Commented','on') set_param(blockName,'Commented','off') ... or if the block has ...

10 years ago | 8

| accepted

Answered
Change Dynamics of Pressure Reducing Valve Block in SimHydraulics (R2013a)
In R2015a, SimHydraulics added valve opening dynamics in pressure relief valves. This gives you the exact option you are looking...

10 years ago | 0

Answered
Accumulator providing flow even when system pressure is sufficiently above preload pressure.
My understanding is that an accumulator connected directly to a system will still have some flow. A typical way to have more con...

10 years ago | 0

Answered
Problem with getting a closed loop Simulink LQR response same as with an m.file
Recall that LQR is a full-state feedback approach, but your C matrix is 1-by-2, meaning it only produces one output even though ...

10 years ago | 0

Answered
How can I programmatically set the "analysis mode" of the "machine environment" block in a Simulink model based on SimMechanics using a Matlab script?
Yes, you can use the following syntax: >> blockName = 'myModel/Machine Environment'; >> type = get_param(blockName,'An...

10 years ago | 0

Answered
load torque and Asynchronous Machine Squirrel Cage (fundamental, SI)
You should add an <http://www.mathworks.com/help/physmod/simscape/ref/idealtorquesource.html Ideal Torque Source> block between ...

10 years ago | 0

Answered
Is it possible to get correct result in simulink if derivative block is used to obtain the derivative of a signal? If not how to obtain derivative of signals in matlab/simulink?
The Derivative block only approximates a derivative and can therefore be very unstable when the derivative of a signal is high. ...

10 years ago | 1

Answered
what is difference between dlinmod and dlinmodv5? which is better for linearization?
According to the |dlinmod| <http://www.mathworks.com/help/simulink/slref/dlinmod.html documentation>, using |v5| invokes a pertu...

10 years ago | 0

Answered
How can i create open loop system using simulink?
You can use a PID Controller block and put it in a feedback loop as shown in the following link: http://www.mathworks.com/hel...

10 years ago | 0

Answered
How can connect a SImMechanics modell with a ROS?
If you have R2015a or later, there's the <http://www.mathworks.com/products/robotics/ Robotics System Toolbox>. Parts of this...

10 years ago | 0

Answered
where can i find psat toolbox in matlab R2015b?
PSAT isn't a MathWorks toolbox. This seems to be the PSAT Web site if you want to download it, though: http://faraday1.ucd.ie/ps...

10 years ago | 0

| accepted

Answered
H-bridge, pwm matlab 2014
Yes, there are. I'd take a look at SimElectronics -- in particular, this example. http://www.mathworks.com/examples/simelectr...

10 years ago | 0

Answered
A good exaplme for distance driver for SimMechanics (second generation) ?
To replace the functionality of the Distance Driver block, you want to use motion actuation in SimMechanics 2G. http://blogs....

10 years ago | 0

Answered
What is bad in model? Diode bridge
The structure of the model looks fine to me, although there seem to be other blocks over to the right that could also be affecti...

10 years ago | 0

| accepted

Answered
Run Simulink iteration by iteration in MATLAB script
When you run a Simulink model from the command-line, it always runs the whole thing. There are some pause/continue controls, but...

10 years ago | 0

| accepted

Answered
Simulink models auto simulation?
You can always write MATLAB code that loops through variable values and runs the Simulink model multiple times: http://www.ma...

10 years ago | 0

| accepted

Answered
Stateflow making simulation slow
When a Stateflow chart is open it will animate with some delay. In the latest versions, you can select "Simulation > Stateflow a...

10 years ago | 2

Answered
Set simulation time and fixed step size for a Simulink model from the command line
If you open the model's Configuration Parameters, for each parameter you can right-click and select "What's This?". This will op...

10 years ago | 19

| accepted

Answered
Dynamic thresholds setting for relay
I don't think there's a built-in one, but you can make your own as shown below. "on" and "off" are your outputs when on and ...

10 years ago | 3

Answered
Choosing between two separate joints with a switch? Simmechanics 2nd gen
Suppose you want to switch between a Planar (PX, PY, RZ) and 6-DOF (PX, PY, PZ, RX, RY, RZ) joint. The only approach I know o...

10 years ago | 0

| accepted

Answered
Use "Fixed step" in a block diagram, which contains continuous states
You can go to the "Solver Configuration" block connected to the SimMechanics model and enable the "Use local solver" option. Thi...

10 years ago | 0

| accepted

Load more