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

alrededor de 15 años hace | 0

Respondida
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...

alrededor de 15 años hace | 0

Respondida
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...

alrededor de 15 años hace | 0

Respondida
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. ...

alrededor de 15 años hace | 1

Respondida
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...

alrededor de 15 años hace | 0

| aceptada

Respondida
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...

alrededor de 15 años hace | 1

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

alrededor de 15 años hace | 2

Publicado


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...

alrededor de 15 años hace

Thumbnail

Respondida
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. ...

alrededor de 15 años hace | 1

Respondida
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 ...

alrededor de 15 años hace | 2

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

alrededor de 15 años hace | 0

| aceptada

Respondida
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...

alrededor de 15 años hace | 0

Respondida
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...

alrededor de 15 años hace | 1

Respondida
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...

alrededor de 15 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 15 años hace | 0

Respondida
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...

alrededor de 15 años hace | 0

Publicado


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...

alrededor de 15 años hace

Thumbnail

Respondida
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...

alrededor de 15 años hace | 0

Publicado


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...

alrededor de 15 años hace

Thumbnail

Respondida
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 ...

alrededor de 15 años hace | 1

Respondida
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...

alrededor de 15 años hace | 1

| aceptada

Respondida
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.

alrededor de 15 años hace | 1

| aceptada

Respondida
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...

alrededor de 15 años hace | 1

Respondida
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...

alrededor de 15 años hace | 1

| aceptada

Respondida
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...

alrededor de 15 años hace | 0

| aceptada

Publicado


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...

alrededor de 15 años hace

Thumbnail

Respondida
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...

alrededor de 15 años hace | 0

Publicado


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...

alrededor de 15 años hace

Thumbnail

Publicado


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...

más de 15 años hace

Thumbnail

Publicado


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...

más de 15 años hace

Thumbnail

Cargar más