Community Profile

photo

Andy Bartlett

Last seen: Today Active since 2015

Statistics

All
  • 36 Month Streak
  • Knowledgeable Level 4
  • Personal Best Downloads Level 1
  • GitHub Submissions Level 1
  • 5-Star Galaxy Level 1
  • First Submission
  • Revival Level 2
  • First Answer

View badges

Content Feed

View by

Answered
is there a way to define 'fixdt' in a Matlab script and use this variable in a Simulink User-Defined Function?
Inside the Simulink Library "User Defined Functions" section, there are about 16 different kinds of blocks. I'm guessing you are...

8 days ago | 1

Answered
How to use a script to select drop-down menu options of component in Simulink?
If the entity you want to do set_param on is a block, then you can get a lot of information from DialogParameters. The followin...

23 days ago | 0

Answered
what does the "percentage of occurrences along the Y-axis" mean in fixed point converter app?
Hi, The histograms in quantization workflows put each value observed in simulation in a power of two bin. For example, the val...

24 days ago | 0

| accepted

Answered
How to find the license dependency of a Simulink model?
Hi, Some products require licenses based on what Simulink modeling elements are used. Other products require licenses based on...

1 month ago | 0

| accepted

Answered
Defining an improper function in Simulink
The Laplace operator 1/s is an integrator and s is a derivative. You can break apart your equation and implement it with a gain...

1 month ago | 0

Answered
FAQ: Why does Fixed-Point fi variable times MATLAB floating-point variable error out in code generation, MATLAB Function Block, etc.?
fi op float: auto convert float to fixed-point "constant" Fixed-Point Designer's fi variables are designed to prioritize ease o...

2 months ago | 0

| accepted

Answered
Generating math expression LUT using variable from workspace
I assume you are modeling your design in Simulink. I suggest you look at using the Function Approximation tooling to create an ...

2 months ago | 0

Answered
how to create a look up table to use in simulink from a 2D array of doubles
To create a Simulink 1D Lookup Table block using the data from your 2D matrix variable, modify this script to meet your needs a...

2 months ago | 0

Answered
CIC decimation output is strange (Output word length and negative fractional length)
In the documentation for CIC Decimator, take a look at the algorithm section. In that section, take a look at Gain Correction a...

2 months ago | 0

| accepted

Answered
FAQ: What's the difference between the two Simulink Precision Loss Diagnostics for Parameters and Fixed-Point Constants?
Detect precision loss diagnostic for Parameters Simulink's detect parameter precision loss diagnostic applys to run-time parame...

3 months ago | 0

| accepted

Answered
Streamlining of zeroing out last 2 bits of fixed 16 bit number?
There are 3 ways this can be achieved. As already discussed, Bitwise AND against a constant mask or shift right then shift le...

4 months ago | 0

| accepted

Answered
Why do I receive error message "This requires the Fixed-Point Designer license." for a simple matlab function?
Showing the data types on the Simulink signal lines can be very helpful when investigating. Open the model in question Then at...

4 months ago | 2

Answered
Embedded Coder - difference in results between the original model and generated C code
The IEEE 754 floating-point standard RECOMMENDS that languages implement sin to have correct rounding. Correct rounding means t...

5 months ago | 1

| accepted

Answered
How to get correct embedded code generation of Lookup Table?
My hunch is that Embedded Coder has optimized away code for the specific Lookup Table Block. One form of optimization is "dead ...

6 months ago | 1

| accepted

Answered
Why not getting same constant value after converting to single from double in MATLAB 2016b simulink
The facts that John D'Errico mentioned are very good to keep in mind as you are analyzing/debugging your model. The rounding of...

7 months ago | 0

Answered
how to pass(or link) ' fixed- point values' to the (root inport mapper-connect inputs) in the 'HDL inport block'
The problem is that the model is configured such that root inport is getting one data type, but the external data is using a dif...

8 months ago | 0

| accepted

Answered
Getting 'empty' Compiled Port Data Types
Set model in compile mode to access data types This may be changing, but historically at least, compiled port data types are av...

8 months ago | 0

Answered
Using a look-up table for decoupling waveforms
Hi Milos, I've created a FAQ in response to your question Resolve Error Lookup Repeated Breakpoints. The FAQ includes a utilit...

8 months ago | 0

| accepted

Answered
FAQ: How can I resolve the error due to lookup table not allowing repeated breakpoints?
A solution for making the lookup tables happy is to move the repeated breakpoints a "tiny amount". A key basis for this approac...

8 months ago | 0

| accepted

Answered
Create a repeating sequence without interpolation
There are three repeating sequence blocks in Simulink. With the right choice for Lookup Method, the block Repeating...

8 months ago | 0

| accepted

Answered
Simulink start takes long time to compile
If you have not done so already, I suggest you run Simulink Performance Advisor tool on your model. The Tool knows lots of grea...

8 months ago | 0

Answered
calling fi(var1, var2,..varN) in matlab function in a simulink model asks for constant values for input 2 to N
I don't know if there is or is not a way to make the MATLAB Function block recognize that W_HDISP as a constant at update diagra...

8 months ago | 0

Answered
Unit Delay block is supposed to be NOT a DIRECT FEEDTHROUGH But in documentation it is said YES
The Delay Block and the Unit Delay Block are subtly complicated especially with regard to Direct Feedthrough. Whether or not Di...

9 months ago | 1

| accepted

Answered
How to remain the bits of input signal port unchanged after using fixed-point tool?
LockScale prevents changes by Fixed-Point Tool Often some signals and parameters in a model are mandated early in the design pr...

9 months ago | 0

| accepted

Answered
Is it possible to disable compiling before simulating in Simulink?
Simulink Fast Restart is exactly what you want (assuming you are not making structural changes to your model between simulations...

10 months ago | 2

| accepted

Answered
Nonlinear plant in simulink
The key is to model Y(k+1) to Y(k) using a unit delay. The output of the unit delay is the input value from one time step earl...

10 months ago | 0

Answered
Mask parameter value is ignored with HDL Counter word length
Model Reference is not compatible with what you are trying to do. As an alternative, consider creating a Simulink library and pu...

11 months ago | 1

| accepted

Answered
help required for fixed point conversion
Mapping an A2D to a fixed-point data type One way to map an A2D converter to a fixed-point data type is to use two real-world-v...

11 months ago | 0

| accepted

Answered
help required for fixed point conversion
The number 395 is how many times that block in the model overflowed during the previous simulation. Suppose the element was a da...

11 months ago | 0

Answered
help required for fixed point conversion
Hi Gary, That portion of your model will involve 4 data types. Digital measurement of output signal from analog plant Set poi...

11 months ago | 0

Load more