Answered
How to use mxArray
See <http://www.mathworks.com/support/tech-notes/1600/1605.html#MSVC++ Section 6: Compiling MEX-files with Microsoft Visual Stud...

14 years ago | 0

Answered
C mex s-function caused Segmentation violation to matlan crash
I would recommend <http://www.mathworks.com/help/toolbox/simulink/sfg/bq2rjeu-1.html debugging your S-function> to find the exac...

14 years ago | 0

Answered
Why can't find_system find IC block?
The IC block's BlockType is 'InitialCondition', so you should be using find_system(bdroot, 'BlockType', 'InitialCondition'). I w...

14 years ago | 1

| accepted

Answered
question about applying parallel computing to RTW
From what I know, the code-generation/build process itself leverages Parallel Computing Toolbox functionality: http://blogs.math...

14 years ago | 0

Answered
Using structures as input of the model with parallel computing
I wonder if you could assign the Simulink.Bus object in the base workspace in the parfor loop, as discussed here: http://blogs.m...

14 years ago | 0

| accepted

Answered
Simlink and Solidworks
<http://support.microsoft.com/kb/827659 This page> suggests that admin privileges are needed when running DllRegisterServer. If ...

14 years ago | 0

Answered
How can I check if a mask parameter exists?
Try: dp = get_param(gcb, 'DialogParameters'); isfield(dp, 'Value')

14 years ago | 2

Answered
Inductor, Resistor and Capacitor
You are probably attempting to connect a Simulink signal to a physical signal, or vice versa. These are signals in two different...

14 years ago | 1

Answered
S-function for reading com-port
If following Walter's suggestion, you will need: persistent NMEA; if isempty(NMEA) %true only the first time NMEA =...

14 years ago | 1

Answered
MATLAB error MATLAB error message:
The error message seems pretty clear - your S-function can only have double or char type parameters to be supported for code-gen...

14 years ago | 0

Answered
build a simulink model
Use the <http://www.mathworks.com/help/toolbox/simulink/slref/fromfile.html From File> block to get the signal from the MAT-file...

14 years ago | 0

Answered
Create C\C++ DLL from MatLab Compiler 4.6 (R2007a)
You mean that you want to call the MATLAB Compiler generated DLL from another DLL right? I don't have any experience with this, ...

14 years ago | 0

Answered
Error when Trying to use Listner Blocks
Try changing: set_param('manualflight','StartFcn',localAddEventListener); To: set_param('manualflight','St...

14 years ago | 3

| accepted

Answered
simulink backlash function
The Backlash block doesn't allow that. I think you'll need to implement your own <http://www.mathworks.com/help/toolbox/simulink...

14 years ago | 1

Answered
code generation for simulink models
Yes, it should be possible in R2007a, if you have Target Support Package TC6 installed. In recent versions, that toolbox has bee...

14 years ago | 0

| accepted

Answered
Creating a Windows DLL from a Simulink Diagram
grt.tlc generates an executable. If you need a library, ert_shrlib.tlc is more appropriate (assuming you have an Embedded Coder ...

14 years ago | 1

Answered
Read .mat file in android?
You can write C code using the MAT-file libraries to read MAT-files outside of MATLAB - see <http://www.mathworks.com/help/techd...

14 years ago | 3

Answered
Real-Time Workshop Target with NI DAQ devices
I don't see your device from here: http://www.mathworks.com/products/rtwt/RTWIN_Target_Interactive_Guide.html So I don't thin...

14 years ago | 0

Answered
Import data from workspace to mfile
When you say "formula", how is it implemented? You should simply have "x" as one of the input signals to the block that implemen...

14 years ago | 0

Answered
Image acquisition in external mode
It looks like the block used host-based (Windows) libraries, that are not supported on any other embedded targets. <http://www.m...

14 years ago | 1

| accepted

Answered
mexFunction return valur error after doing clear all
Could you replace "clear all" with "clear mex" and see if have similar behavior? That is, having "clear mex" causes issues, but ...

14 years ago | 0

| accepted

Answered
Rapid Accelerator Simulation
You can only change <http://www.mathworks.com/help/toolbox/simulink/ug/f13-87137.html tunable parameters> after the rapid accele...

14 years ago | 1

| accepted

Answered
Simulink BLock into Matlab M-file
It is not possible to call Simulink blocks from a MATLAB-file, but you can call a MATLAB-function from a Simulink model using th...

14 years ago | 1

Answered
Simulink standalone executable
I don't think the RSIM target is meant to be deployed onto machines that do not have MATLAB/Simulink installed. AFAIK, tt is mea...

14 years ago | 1

| accepted

Answered
.m file to .exe file by >mcc
As the error points out, the PREVIEW function is not support for deployment. You cannot generate an executable from MATLAB code ...

14 years ago | 1

Answered
arduino IO package simulink
There was similar question answered here before: http://www.mathworks.ch/matlabcentral/answers/31595-connecting-to-arduino-timeo...

14 years ago | 0

Answered
How to correct my s function code ?please help
It looks like this line may not be returning a vector with 3 elements (because you have configured the S-function for 3 outputs)...

14 years ago | 2

Answered
Masking and base workspace
Not sure if I understand your question correctly, but try this in your Mask Initialization: a = uwb.channel.a; b = ...

14 years ago | 0

Answered
TI's C6670 and MATLAB support
It doesn't look like the latest version supports C6670: http://www.mathworks.com/products/embedded-coder/ti-adaptor.html So I...

14 years ago | 0

Answered
Final constant from simulink to GUI
You can use get_param only to get block parameter values, not their output values (which are computed at every time-step). If yo...

14 years ago | 1

Load more