Beantwortet
Compiling with Mex - Can I reference Environment Variables?
Try: mex -v COMPFLAGS="$COMPFLAGS -I%REF_DIR%/include" my_sfunction.c I think this command, or a minor variation on it s...

fast 15 Jahre vor | 0

Beantwortet
S-function: In which initialization callback function is the input data available to use?
The inputs to an S-function are only reliably available in the mdlOutputs method. The inputs to any block are the outputs of oth...

fast 15 Jahre vor | 0

Beantwortet
Debuging continuous states in a discrete simulation
The error occurs because you have continuous states in your model (for example, blocks from the Continuous sub-library in the Si...

fast 15 Jahre vor | 1

Beantwortet
How to run "mex" with linking a dll file
I'm not all too familiar with building/linking against DLLs, but typically the .lib corresponding to a .dll is the import librar...

fast 15 Jahre vor | 1

Beantwortet
library browser hierachy
A similar question was answered before: http://www.mathworks.com/matlabcentral/answers/13851-sub-libraries-do-not-appear-in-the-...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
problem with building a simulink model with two s-functions written in C language
You need to compile them separately - they need to be two separate binaries: mex MPCtest1.c mex MPCtest2.c

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
NIPCIe6323 Driver for simulink RTW
In general, Real-Time Workshop (now, Simulink Coder) generates ANSI/ISO C/C++ code and thus supports all embedded microprocessor...

fast 15 Jahre vor | 0

Beantwortet
64bit Linux opening .mat file in C: library not linking
The shared object files to add to LD_LIBRARY_PATH are only needed at run-time (when the application attempts to load the librari...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Missing lib lMTwister when compiling C++ program for matlab engine in debian
It looks like this library may have existed in very old versions of MATLAB (from a web search, I found references that suggest t...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Can I use ICPCON i7018 AI module for data acquisition in Simulink?
It doesn't look like this hardware is currently supported with the Data Acquisition Toolbox. You may need to write your own adap...

fast 15 Jahre vor | 0

Beantwortet
How to pass a matrix input argument to a VBA function generated by MATLAB Builder EX?
I'm not all too familiar with calling MATLAB Builder EX components from VBA, but I thought this documentation example may help y...

fast 15 Jahre vor | 0

Beantwortet
Using user defined structure as precision to fread
There is no precision format to directly read into a structure. You need to read the file into arrays/matrices and then later co...

fast 15 Jahre vor | 1

Beantwortet
Matlab Coder and Ceval
Try: for n=2:10 coder.ceval('printf','%d ',int32(n)); end or for n=2:10 coder.ceval('printf','%f ', n); end ...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Simulink's Audio Reverberation demo with ADSP-BF537 EZ-KIT Lite - unable to connect
What version of MATLAB are you using? It looks like the latest release (R2011a) does support Windows 64-bit: http://www.mathwork...

fast 15 Jahre vor | 0

Beantwortet
mcc and startup
The MATLAB path (that you add to using addpath) is only used to resolve MATLAB/Simulink related files (like .m, .p, .mat, mexw32...

fast 15 Jahre vor | 0

Beantwortet
Stateflow:UnexpectedError when generating Simulink model code in 2011a
All Stateflow charts and Embedded MATLAB blocks generate C code and compile them for execution, the compiler selected using the ...

fast 15 Jahre vor | 0

Beantwortet
Usage of functions of Optimisation toolbox along with Embedded Coder
Sorry, it doesn't look like any of the Optimization Toolbox functions are in the <http://www.mathworks.com/help/toolbox/eml/ug/b...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
loadlibrary and calllib inside a C mex routine
I think it should be possible to continue using GetProcAddress in the MEX-function. However, remember that GetProcAddress belong...

fast 15 Jahre vor | 0

Beantwortet
Problem: how to get datas from integrator block in simulink
On the Integrator block dialog, there is an option called "Show state port" that you can select to output the current state. Doe...

fast 15 Jahre vor | 0

Beantwortet
MCRInstaller.exe
MCRInstaller.exe basically installs MATLAB Runtime Libraries, so that compiled MATLAB applications (which call into these runtim...

fast 15 Jahre vor | 0

Beantwortet
How to solve Differential Equations in Simulink level 2 s function
Change your InitConditions callback to: function InitConditions(block) %% Initialize Dwork block.ContStates.Data(...

fast 15 Jahre vor | 1

Beantwortet
Setting fields of a Matlab struct in C++
I think you might need to use operator(). Try: inputArray(fields[0],1,1) = field0Value;

fast 15 Jahre vor | 0

Beantwortet
Highlight Simulink model lines with custom colors
The HiliteAncestors property is currently documented as "internal use only" - so I'm not sure where you got example usage from. ...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
M-file S-function dimension
You shouldn't have to specify the input size of a variable-size signal - the S-function can get this information from the Simuli...

fast 15 Jahre vor | 0

Beantwortet
question regarding code generation.
The rsim.tlc target allows rapid prototyping on a machine that has MATLAB/Simulink installed. Since you need to forward your mod...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
GUI and real time simulation of Simulink model
For real-time simulation of Simulink models, you can use either <http://www.mathworks.com/products/rtwt/ Real-Time Windows Targe...

fast 15 Jahre vor | 0

Beantwortet
probleme de connection entre les block dans simulink
Sorry, I can't write in French, but hopefully you can use a tool to get a reasonable translation: SimElectronics uses the Sim...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
Warning: Unable to load block diagram 'xbsIndex_r4' in MATLAB 2007A
The library model xbsIndex_r4.mdl belongs to the Xilinx System Generator blockset. It looks like your model contains blocks from...

fast 15 Jahre vor | 1

| akzeptiert

Beantwortet
Mex 64bit library error
Please see my answer to <http://www.mathworks.com/matlabcentral/answers/12147-invalid-mex-file-cannot-dynamically-load-executabl...

fast 15 Jahre vor | 0

Beantwortet
Unit Delay can't resolve discrete time
What have you set for "Sample time" on the block dialog? This needs to be discrete sample time for HDL code generation. If yo...

fast 15 Jahre vor | 0

Mehr laden