Community Profile

photo

Nick Sarnie


MathWorks

28 total contributions since 2017

I work as a developer on the Embedded Coder team at MathWorks and have a background in Computer Science.

My professional interests are Compilers, Code Generation and Performance.

DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks.

Contact

Nick Sarnie's Badges

  • Knowledgeable Level 2
  • Revival Level 1
  • 3 Month Streak
  • First Answer

View details...

Contributions in
View by

Answered
When I try to build my stateflow model, I got error "Function call triggered subsystems are not supported for subsystem based code/S-function generation. " What does it mean?
Hi Jenny, Based on the error, a right-click subsystem build has been performed on a function call subsystem, which is not suppo...

3 jours ago | 0

Answered
Generate code from referenced model without generating from the parent
Hi Guilherme, Does using "slbuild(modelName, 'ModelReferenceRTWTarget')" solve your issue? Thanks, Nick

8 jours ago | 0

Answered
I'm using Embedded Coder. Is there a way to configure the code generation process so that the dimensions of an input signal can be set at run time?
Hi David, Variable size signals are meant for signals that will change size during the execution of the model. It sounds like t...

6 mois ago | 0

Answered
How to make Simulink.Parameter parameters stored in model workspace tunable?
Hi Sean, This is a limitation of R2016b. In the <https://www.mathworks.com/help/releases/R2016b/simulink/slref/simulink.param...

7 mois ago | 0

| accepted

Answered
Real-time windows target Toolbox
Hi Zi, Yes, Real-Time Windows Target is now called Simulink Desktop Real-Time. It looks like the change happed in R2015a. ...

10 mois ago | 0

| accepted

Answered
Code Generation Error - Why?
Hi Steve, This appears to be a bug. Please report this to Technical Support using the below link for further assitance. <...

10 mois ago | 0

Answered
Crash when calling TLC library function LibBlockParameterDataTypeId()
Hi Olaf, I recommed reporting this crash to Technical Support. While some staff members such as myself browse MATLAB Answers,...

10 mois ago | 0

| accepted

Answered
Does Matlab 2011b support Embedded Coder 7.0?
The Embedded Coder version is tied to the release of MATLAB, so you would need to upgrade MATLAB to R2018a to get Embedded Coder...

10 mois ago | 1

| accepted

Answered
Simulink Coder Error : Unable to find build success text "### Successfully generated all binary outputs." in build log
It looks the root cause is that the LCC compiler does not support the neccessary Windows APIs required to compile the code gener...

11 mois ago | 0

Answered
Running Simulink Coder gives warning 'GenSettings must be initialized'
If you have "clear all" in any model callbacks, especially the "Init Fcn" model callback, please remove that and try to generate...

11 mois ago | 1

Answered
Matlab stop/crash/not work when i try to start Simulink
Hi everyone, This is believed to caused by a bug in glibc 2.19, the default in Ubuntu 14.04. The upstream bug report can be f...

11 mois ago | 2

| accepted

Answered
Simulink Test: How to run the same test for MIL and SIL?
Hi Robert, I was able to accomplish this by creating two test harnesses, one for Normal mode, and then one for SIL. I then co...

plus d'un an ago | 0

Answered
Hi, i am using simscape library in simulink and want to know how to call and change specific block parameters from GUI.
Hi Mohamed, First, you can use a variable in the workspace to represent a parameter of the Solar Cell block. For example, you...

plus d'un an ago | 0

| accepted

Answered
Using matlab 2014b and m_map, and a script from Oct. 2017, I get error message.
Hi Knut, It looks like there is an issue with the license to the Optimization Toolbox, which the script uses. Please take a l...

plus d'un an ago | 0

Answered
MATLAB crashes while calling fir1 function
Hi Victor, I have created a case with Technical Support regarding this issue, and a Technical Support Engineer will be contac...

plus d'un an ago | 0

Answered
Call mex function in simulink/ s-function ?
Hi Hocine, It sounds like you used MATLAB Coder to generate a MEX for the MATLAB Function. If you want to use it in an S-Func...

plus d'un an ago | 0

Answered
how to change a function using a GPU CODER ?
Hi Arnaud, It sounds like the MATLAB function written to detect the traffic sign is not supported for GPU Code Generation. Pl...

plus d'un an ago | 0

| accepted

Answered
Where is Create Protected Model for Selected Model Block in simulink?
Hi Moonkwun, To see the the 'Create Protected Model for Selected Model Block' option, please right click on a Model block, he...

plus d'un an ago | 0

Answered
Simulink Arduino Mega 2560 digital input - PWM signal uncorrect value
Hi Maximilian, You are correct in that it is not possible to run true real-time simulations on the Mega 2560. Using Extern...

plus d'un an ago | 0

Answered
S-Function MAX6675 for Arduino MEGA2560
Hi Tobi, Based on the compiler errors and looking at the model, it looks like the custom code included in S-Function Builder ...

plus d'un an ago | 0

Answered
How to return likelihood using unscentedKalmanFilter/extendedKalmanFilter Object in the signal processing toolbox?
Hi Hao, I wasn't able to find any documentation relating to likelihood or log likelihood for the unscentedKalmanFilte and ext...

plus d'un an ago | 0

Answered
coder.extrinsic error
Hi Abhishek, In R2011b, I recommend creating a MATLAB Function block inside the chart, moving any "coder" calls inside it, an...

plus d'un an ago | 0

Answered
How can I use an existing Level-2 C S-Function in embedded application?
Hi Richard, Simulink Coder Code Generation using a model with a Level-2 C S-Function is a supported workflow. You should be a...

plus d'un an ago | 0

Answered
How to link Git remote repository to Simulink Project
Hi Christopher, To create a Simulink Project with Git inside the main project folder, try the following steps: # Open MATL...

plus d'un an ago | 0

Answered
Inserting #ifdef in generated code
Hi Mayuresh, The easiest way to automatically generate preprocessor conditionals is to use a variant subsystem, which is acti...

plus d'un an ago | 0

Answered
When I run verification with Polyspace R2012b, there is an error like this: "No code found for the system xxxx. Before running the verification, generate code using TargetLink"
Hi Augus, It is possible to receive this error if the code has only been generated for one subsystem, and not the entire mode...

plus d'un an ago | 0

Answered
How to include libraries for sfunction?
Hi Mario, The easiest way to include custom libraries in C S-Functions is to use the S-Function Builder block, which is locat...

plus d'un an ago | 0

Answered
Embedded Coder Error: Number of fields in structure arrays being concatenated do not match. Concatenation of structure arrays requires that these arrays have the same set of fields.
Hi Bryan, This error is a bug in Embedded Coder R2017a that occurs when the "Show code metrics" option listed in Configuratio...

plus d'un an ago | 0