Publié le


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

environ 15 ans il y a

Thumbnail

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
pid controller optimisation using fminsearch---pls help me
Here is what you need: http://www.mathworks.com/products/simcontrol/

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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. ...

environ 15 ans il y a | 1

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 1

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

environ 15 ans il y a | 2

Publié le


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

environ 15 ans il y a

Thumbnail

Réponse apportée
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. ...

environ 15 ans il y a | 1

Réponse apportée
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 ...

environ 15 ans il y a | 2

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

environ 15 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 0

Réponse apportée
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...

environ 15 ans il y a | 1

Réponse apportée
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...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 15 ans il y a | 0

Réponse apportée
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...

plus de 15 ans il y a | 0

Publié le


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

plus de 15 ans il y a

Thumbnail

Réponse apportée
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...

plus de 15 ans il y a | 0

Publié le


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

plus de 15 ans il y a

Thumbnail

Réponse apportée
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 ...

plus de 15 ans il y a | 1

Réponse apportée
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...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
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.

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 15 ans il y a | 1

Réponse apportée
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...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 15 ans il y a | 0

| A accepté

Publié le


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

plus de 15 ans il y a

Thumbnail

Charger plus