Answered
Variable scope in Simulink .mdl files
I recommend looking at these 2 solutions for 2 different options: http://www.mathworks.com/support/solutions/en/data/1-ASPEIV...

15 years ago | 2

| accepted

Published


Welcome to the Coders!
By Guy Rouleau Did you already install MATLAB R2011a? If you are used to generating code from Simulink, the first...

15 years ago

Thumbnail

Published


Under development: Simulink Symphonics
Today we have been authorized to give you a sneak peek at a new blockset Guy is working on: SimMusic. Seth: This new tool...

15 years ago

Thumbnail

Answered
where is emlmex?
In R2010b, you need Real-Time Workshop.

15 years ago | 0

Published


??? Invalid Simulink object name
Did you ever get an error like this? pre.codeinput { background: #EEEEEE; padding: 10px; } @media print { ...

15 years ago

Thumbnail

Answered
reaction wheel simulation with simulink
SimMechanics is what you need. You can just specify the bodies and their relations and it will compute the results for you, no n...

15 years ago | 2

| accepted

Answered
simscape pneumatics
I would like to mention 2 things: 1 - Connecting pneumatic components requires a good knowledge of the domain and the equatio...

15 years ago | 0

| accepted

Published


Different Results in Accelerated Mode Versus Normal Mode
By Guy Rouleau This week I received a large model giving different results when used as a referenced model in Accelerated...

15 years ago

Thumbnail

Answered
Opinion simulink
In your image, lsc and Tref and sources, very likely Constant blocks! When you create a simulation, you need to know that num...

15 years ago | 0

Answered
How to create an input signal from acquired data
Laura's solution is one good approach. If you want to import your data directly from Excel to the Signal Builder block, follo...

15 years ago | 0

Answered
difficulties with add_block
Not sure what is going wrong for you. The following works for me: load_system('nesl_utility') add_block(sprintf('nesl_ut...

15 years ago | 1

| accepted

Answered
pid controller optimisation using fminsearch---pls help me
Here is what you need: http://www.mathworks.com/products/simcontrol/

15 years ago | 0

Answered
How to insert a function handle in simulink !?
In a Level 2 MATLAB S-function, you should be able to use your function in the same way as you do in MATLAB. Do you receive a...

15 years ago | 0

Answered
Multiple signals on one input channel with analog input block
This is very likely due to the "block size" property that you set to 5. This means that the scope displays the last 5 samples fo...

15 years ago | 0

Answered
quadrature/rotary encoder .mdl file
To transform quadrature signals A and B into angle, you only need a few basic blocks like logical operator, memory, sum, gain. ...

15 years ago | 1

Answered
Importing Continuous data into Simulink from Matlab Workspace
Based on the description, it looks like you should write a C/C++ s-function that would interface with your HID dll properly, whi...

15 years ago | 0

| accepted

Answered
Insetting the SimMechanics Visualization Window into GUI
If Kausthuba's interpretation of your questions is correct, the answer is NO. The SimMechanics visualization is not compatible w...

15 years ago | 1

Answered
simulink library browser blocks gone
There might be a user-written file on your path. I would go for the classic: restoredefaultpath rehash toolboxcache ...

15 years ago | 2

Published


How Do I Change a Block Parameter Based on the Output of Another Block?
By Guy Rouleau One question I often receive is: How can I change the value of a block parameter while the simulation is...

15 years ago

Thumbnail

Answered
Getting "Counter" Simulink block to switch direction?
I do not recommend using the Counter block for that. The counter block could be used to simulate the behavior of your sensor. ...

15 years ago | 1

Answered
SimMechanics Inverse and Forward Dynamics
Hi Peter, In your question you mention that the reason for doing this is "just to check if model works well". I do not think ...

15 years ago | 2

Answered
block eror
The error message tells you "The derivative of [...] is infinite". The place in your s-function where you specify the derivat...

15 years ago | 0

| accepted

Answered
Simulink Control Design: Linear Analysis
It looks like the constraint you specified on your operating point cannot be satisfied. Did you consider getting an operating...

15 years ago | 0

Answered
Implementing your own function in a simulink model
I wrote the following post especially to give tips on finding the best implementation for your for problems like yours: <http...

15 years ago | 1

Answered
how to biuld in an characteristic map for the derivative constant (PID, Simulink)
I recommend building your PID block, it should take you only a few blocks. A Sum, an Integrator, a Transfer Function, a few Gain...

15 years ago | 1

| accepted

Answered
SIMULINK-conversion of simulink blocks into HDL code.
Simulink HDL Coder only supports a subset of blocks, you can create a library containing all these blocks by executing HDLLIB ...

15 years ago | 0

Answered
Link Simulink with Neural Network Toolbox
The Neural Network toolbox includes blocks to use a network in Simulink. See the documentation here: http://www.mathworks.com...

15 years ago | 0

Published


If you can put a man on the moon, can you take a look at my car?
Today I welcome my colleague Paul Barnard to guest post about the final report from the NHTSA-NASA Study of Unintended...

15 years ago

Thumbnail

Answered
Real-time workshop - using external time management
RTW will generate a "step" function. You just need to use your external clock to call this "step" function in your C/C++ applica...

15 years ago | 0

Published


How to Verify Code Generated with Model-Based Design
An important benefit of Model-Based Design is doing early verification of your model and using what you learn to verify your...

15 years ago

Thumbnail

Load more