Risposto
why Matlab crashed when I use persistent C++ COM Object in Sfunction?
I suspect it is because your declaration of the variable |ISWrapper Iw;| goes out of scope at the end of |mdlStart|. Perhaps you...

oltre 13 anni fa | 1

| accettato

Risposto
Freescale: Is CodeWarrior supported by EmbeddedCoder?
I could be wrong, but according to the <http://www.mathworks.com/products/embedded-coder/supported/index.html Supported Hardware...

oltre 13 anni fa | 0

Risposto
convert this m file into c code using the emlc function?
Not all MATLAB functions are supported for code-generation, please see <http://www.mathworks.com/products/matlab-coder/descripti...

oltre 13 anni fa | 0

Risposto
DLL generation by RTW with reference to external libraries
You can add compiler options to the <http://www.mathworks.com/help/rtw/ref/code-generation-pane-general.html#bq26b5k-1 Make comm...

oltre 13 anni fa | 0

| accettato

Risposto
plotting graph in simulink
MATLAB might be more appropriate if you want to control the line styles. See <http://www.mathworks.com/help/matlab/creating_plot...

oltre 13 anni fa | 1

Risposto
Simulink.Bus and Embedded Coder
You need to specify the Bus type on the Ports and Data Manager of the MATLAB Function block, not in the MATLAB code itself. Plea...

oltre 13 anni fa | 0

| accettato

Risposto
how can i run simulink block since am using matlab r2012a
Could you try running "mex -setup" in MATLAB and have it automatically select a supported installed compiler? I've seen that fix...

oltre 13 anni fa | 0

| accettato

Risposto
Running a step by step simulation with Simulink debugger
Yes, you can stop the simulation at each time-step using the Simulink Debugger. I believe you just need to set the break in what...

oltre 13 anni fa | 1

| accettato

Risposto
mex a statisc library error
MEX-files are essentially shared libraries with a MEX-specific extensions. All shared libraries on Linux can only be linked agai...

oltre 13 anni fa | 0

Risposto
How can I use a coder.opaque value in a Matlab expression with codegen?
I don't think coder.opaque type variables can participate in MATLAB expressions. You might need to convert that expression to an...

oltre 13 anni fa | 0

Risposto
Simulink: Source (from workspace) running order
I'm confused about why you need a From Workspace block at all if you simply need the output of other Simulink blocks. If the sig...

oltre 13 anni fa | 0

Risposto
how to create a sine wave between two sine references
It seems like you just want to switch between the two signals every t/4 seconds (t=period of input wave=1/50), so you can use a ...

oltre 13 anni fa | 1

Risposto
How can I set block mask parameter from subsystem input
It is currently not possible to treat dialog parameters such as "Piston initial position" as an input. Please see the blog post ...

oltre 13 anni fa | 1

| accettato

Risposto
I have some level 2 sfunctions in my system to wrap my C/C++ functions. All of these functions are fixed and I don't change them. Is it possible to avoid code generation of these function each time that I build an application for the xpctarget?
I think the only way to bypass code-generation for one part of the model is to using a <http://www.mathworks.com/help/simulink/m...

oltre 13 anni fa | 0

Risposto
auto-run m-file without command prompt?
<http://www.mathworks.com/matlabcentral/answers/40013 This previously answered question> should help you create a desktop icon t...

oltre 13 anni fa | 0

Risposto
Calling a Delphi generated DLL fails to load in Matlab
It seems like your DLL might be 32-bit, which cannot be loaded on 64-bit MATLAB. Please see <http://www.mathworks.com/matlabcent...

oltre 13 anni fa | 0

| accettato

Risposto
Generating C/C++ executable for a GUI program
MATLAB Coder supports a <http://www.mathworks.com/products/matlab-coder/description2.html limited subset> of MATLAB functionalit...

oltre 13 anni fa | 0

| accettato

Risposto
simulink path error matlab function block
You just need to change your working directory to something that's not under Program Files: >> cd C:\some\other\path MAT...

oltre 13 anni fa | 0

| accettato

Risposto
The files about RTW
This is documented in the Simulink Coder (formerly Real-Time Workshop). See <http://www.mathworks.com/help/rtw/ug/files-and-fold...

oltre 13 anni fa | 0

Risposto
How to define a persistent array in an Embedded function
How about: persistent X; if isempty(X) X=zeros(1,5); end

oltre 13 anni fa | 3

Risposto
RTW : Why is errorStatus in Release 14 SP3 & R2006b is declared differently?
Not sure, but perhaps it is expected that there might be external hardware drivers that could update the errorStatus flag? I don...

oltre 13 anni fa | 0

| accettato

Risposto
Invalid MEX-File / Problem with shared (library) object
Is it possible that libgazebo_transport.so is a 32-bit library? Perhaps you should try using the |file| command as described <ht...

oltre 13 anni fa | 0

Risposto
How to set up the variable fractional delay for a flanging effect?
Try enabling <http://blogs.mathworks.com/seth/2008/10/24/r2008b-simulink-sample-time-colors/ sample time colors> for your model ...

oltre 13 anni fa | 0

Risposto
Calling SimMechanics which requires input variables from matlab function
You need to pass in some additional options to the SIM command to make sure that the model reads and writes to the function work...

oltre 13 anni fa | 0

| accettato

Risposto
How to use the Build/Reload&Run block in Simulink
My guess is that |get_param(gcb, 'UserData')| returns the name of a MATLAB script whose contents refer to specifics of the demo ...

oltre 13 anni fa | 0

| accettato

Risposto
How can I covert a Matlab struct 1x1 to C++ without an error?
Have you already <http://www.mathworks.com/help/coder/ug/defining-or-editing-input-parameter-type-in-a-project.html#bswmeu_-13 s...

oltre 13 anni fa | 0

| accettato

Risposto
matlab compiler on osx: using a matlab generated shared library
This seems to be a Mac-specific issue. I don't know too much about this, but perhaps this Technical Solution will be useful: <ht...

oltre 13 anni fa | 0

Risposto
How to get list of Blocks, from a model , which belongs to customized Block library ?
Perhaps you could use the <http://www.mathworks.com/help/simulink/slref/libinfo.html LIBINFO> function.

oltre 13 anni fa | 1

Risposto
how to make a simulink's interface with GUIDE
You can use event listeners to do this. Please see <http://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simula...

oltre 13 anni fa | 0

Risposto
Intialization of local variables in model_step() function
What block generates the code that uses these variables? The block is responsible for initialization of these variables. If it i...

oltre 13 anni fa | 0

Carica altro