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

Answered
MATLAB type in Embedded MATLAB Files
You need to declare the variable returned by CVSREAD before. For example, add: ava = zeros(M,N); before cvsread, with M ...

15 years ago | 1

Answered
ODE Simulation
This looks good at first look. Seth has a nice post on this topic: http://blogs.mathworks.com/seth/2008/05/23/how-to-draw-ode...

15 years ago | 1

| accepted

Answered
SimMechanics, pin in slot joint
Configure the Custom Joint to get what you want. Your description is vague, but looks like 1 translational and 1 rotational.

15 years ago | 1

| accepted

Answered
Programming simulink model to pause and fetch infrmation at a specific time
Typically in Simulink you want to use signals for time varying data and parameters for non-varying data. Based on your descri...

15 years ago | 1

Answered
Simulink: Sine wave generation. Configuration problem.
By default, the Simulink solver chooses the time steps using: dt = (t_stop-t_start)/50 With the default parameters, it gi...

15 years ago | 1

| accepted

Answered
Why can't I connect a scope directly from a two samples per frame signal
You have 2 options to "scope" a frame signal: - Insert Reshape block set to "1D" before the scope: http://www.mathworks.co...

15 years ago | 0

| accepted

Published


Wrong Answers and Gimbal Lock
By Guy Rouleau I received a request last week where the code generated using Real-time Workshop was giving different...

15 years ago

Thumbnail

Answered
Optimize three parameters inside Simulink model based on certain performance parameters
Simulink Design Optimization (SDO) is especially designed for this task: http://www.mathworks.com/products/sl-design-optimiza...

15 years ago | 0

Published


You need an integrator with variable limits… there’s a solution for that!
By Guy Rouleau Today I received a question where the user was looking for an Integrator block with variable upper and...

15 years ago

Thumbnail

Published


Creating Test Cases Using Signal Builder
By Parasar Kodati Every model needs to be tested, and all tests need inputs. For example control algorithms are typically...

15 years ago

Thumbnail

Published


Kalman Filter – From MATLAB to Embedded C Code
By Guy Rouleau In a previous post, I introduced the Embedded MATLAB Function block. This block gives the possibility to...

15 years ago

Thumbnail

Published


5 Resources for Simulation Performance
Following Guy's recent post with Tips for Simulation Performance, I thought I would provide a couple links for additional...

15 years ago

Thumbnail

Published


Bus Signals: Past, Present and Future
By Guy Rouleau The first time I used buses in Simulink, it was version 3.0 (R11). Bus signals and the way we use them in...

15 years ago

Thumbnail

Load more