Answered
Include a printf in compiled simulink blocks
Which blocks do these signals correspond to? If they are S-function blocks that you have written, you can put the printf command...

14 years ago | 0

Answered
cannot open shared object file Simulink Student Version 2012a
See if this previous discussion helps: http://www.mathworks.fr/matlabcentral/answers/33507-simulink-and-linux

14 years ago | 0

| accepted

Answered
integer parameters to C MEX s function
I think you need to use mxGetData(ssGetSFcnParam(S,0)) instead and cast the returned void-pointer to an int pointer. You probabl...

14 years ago | 0

| accepted

Answered
Fixed-step solvers, model referencing and Normal and Accelerator mode
Ubaldo: I already answered the second part of your question <http://www.mathworks.com/matlabcentral/answers/35730-multiple-insta...

14 years ago | 0

Answered
Help! The setup xpcsetCC('setup') ) is unable to find any compilers.
How about if you manually set the type and location as was suggested here for R2011a: http://www.mathworks.com/support/bugreport...

14 years ago | 0

Answered
Simulink PIL blocks.
Try increasing the "Maximum time allowed to complete IDE operation" on the <http://www.mathworks.com/help/toolbox/rtw/ug/bsvy_48...

14 years ago | 0

Answered
Use C++ to initialise matlab and run an m-file
Is MATLAB somehow accessible on the computer with X-Plane? If yes, you can use one of several <http://www.mathworks.com/help/tec...

14 years ago | 0

Answered
C++ Objects Persistent
I don't think the S-Function Builder can deal with PWork vectors. You might need to either introduce the PWork vector manually, ...

14 years ago | 0

Answered
Communication between Matlab and National Instrument card
Looks like your header (nidaqmx.h) may be declaring methods that LOADLIBRARY cannot find in the DLL? What do you get in 'warning...

14 years ago | 1

| accepted

Answered
Load Variable for Use in Simulink MATLAB Function Block
It looks like you are using 'a' like a parameter. Why not declare it as one, so that the value is automatically picked up from t...

14 years ago | 1

Answered
Tunable Parameter/Gain and rapid acceleration
But you never pass the modified parameter into SIM right? Simulink.BlockDiagram.modifyTunableParameters creates a new RTP struct...

14 years ago | 0

| accepted

Answered
Why does Simulink generate an error at build time for TMS320C6713 board?
It looks like you are either using an unsupported version of CCS, or have not configured it correctly. See if your version of MA...

14 years ago | 0

Answered
ssPrintf for C-Mex S-Function
When the S-function is compiled as a MEX-function, the symbol MATLAB_MEX_FILE is always defined, so that line is effectively get...

14 years ago | 0

Answered
Loading Files into Codegen Files
I think using coder.ceval is the right way to do this. Also, coder.ceval can return arrays/matrices. You just need to pre-alloca...

14 years ago | 0

| accepted

Answered
regarding matlab file conversion
See this previous discussion: http://www.mathworks.com/matlabcentral/answers/9865-dll-creation-to-use-in-labview

14 years ago | 1

Answered
While compiling my program in MATLAB 2012a to create windows standalone application.I am getting errors.
Seems similar to this previous question: http://www.mathworks.com/matlabcentral/answers/27493-building-standalone-application-fa...

14 years ago | 0

| accepted

Answered
Get the names of the outputs of a Signal Builder by using the command window
Is this what you're looking for: >> [~, ~, signalNames] = signalbuilder('path/to/sigbuilder/block') [Reference: http://...

14 years ago | 0

| accepted

Answered
Assign/access bus data using variable index (Simulink)
Not sure if I've understood your question correctly, but I think what you'd like to do is done in MATLAB using: y = struct(...

14 years ago | 0

Answered
Simulink PIL blocks.
I highly doubt that multiple PIL blocks are supported in one model. I would recommend confirming this with MathWorks Tech Suppor...

14 years ago | 0

| accepted

Answered
How do you program the Arduino in Simulink so you can read the sensors via I2C and SPI?
If you know how to do this in C using Arduino libraries, you can generate a custom S-function block, using the <http://www.mathw...

14 years ago | 0

Answered
using WEBCAM in simulink EXTERNAL MODE
If you are using the From Video Device block, you might find this discussion useful: http://www.mathworks.com/matlabcentral/answ...

14 years ago | 0

Answered
Real-time linearization in Simulink for nonlinear MISO system
If you have two inputs and one output, I'm not sure how you can get two distinct transfer functions for the same output. Is it p...

14 years ago | 0

Answered
Does the Matlab2010a compiled C mex files run on Matlab2008a always ?
I think the only deterministic way of verifying if a MEX-file compiled in newer versions will work in older versions might be to...

14 years ago | 0

Answered
Constant Ramp
The block does exist in R2010b as well and was part of the Signal Processing Blockset (which has since been repackaged into the ...

14 years ago | 0

| accepted

Answered
Multiple instances of referenced models in Normal mode
You can still simulate your top-level model "VehicleDynamics" in Normal mode, however, just the model reference blocks that poin...

14 years ago | 0

| accepted

Answered
Programatically test-run a model before RTW build
Perhaps you can tell us exactly what error your model runs into that reproduces this behavior with the model appearing to be "pa...

14 years ago | 0

Answered
Automating Signal Storage Class in M script
If you already have a Simulink.Signal object associated with the relevant signal line, then you can use code similar to what Tit...

14 years ago | 0

| accepted

Answered
Arduino embedded coder
Is this a package that you got from File Exchange? It seems like there is some issue with installation. Make sure that files lik...

14 years ago | 0

Answered
codegen:- Problems when attempting to build a c++ based .exe rather than c?
You probably need to add a extern "C" { } block around the declaration for coderand() in coderand.h, so that the C++ compiler do...

14 years ago | 0

Answered
Email Using Matlab
See <http://www.mathworks.com/help/releases/R2011b/techdoc/import_export/f5-136211.html Sending Email>.

14 years ago | 0

Load more