Question


how to run a callback function
Hello everyone, I can figure out the way to call a callback function from a Matlab script. I saw the syntax: function m...

bijna 12 jaar ago | 1 answer | 0

1

answer

Answered
how to code 8 boolean variables inside a unit8
I thought to use a stuff like that wordVAR=IN0*pow(2,0)+IN1*pow(2,1)+IN2*pow(2,2)+IN3*pow(2,3)+......... b...

bijna 12 jaar ago | 0

Question


how to code 8 boolean variables inside a unit8
Hi everyone, I have to code 8 boolean variables inside a 8 bit word, I should return as result an unsigned integer of 8 bit ...

bijna 12 jaar ago | 2 answers | 0

2

answers

Answered
How to set/get the data type of a constant block on Simulink
I found it get_param(gcb, 'OutDataTypeStr') set_param(gcb, 'OutDataTypeStr','int32') Sorry guy 4 bothering

bijna 12 jaar ago | 3

| accepted

Question


How to set/get the data type of a constant block on Simulink
Hello everyone, I'm looking for an instruction to get the type of the outgoing data in a constant block and to specify it as ...

bijna 12 jaar ago | 1 answer | 0

1

answer

Question


custom number of the inputs 4 C sfunction
Hello everyone, I need to write a sfunction in C with a custom number of the inputs, I found a way to do it with an m-fil...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


how to inherit the data type of the inputs in a C Mex Sfunction
Hello everyone, I was wondering if it's possible to write a s-function in C without specifying the data type of the input va...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


change the position of a part of the input ports of a simulink block.
Hello everyone, I would like to change the position of the input ports of a simulink block. I need to put them on the botto...

ongeveer 12 jaar ago | 2 answers | 0

2

answers

Answered
determine whether a input port is connected or not to a block
I found it! I wrote this code in a callback function portData=get_param(gcb,'PortConnectivity'); if (portData(1).SrcB...

ongeveer 12 jaar ago | 1

| accepted

Question


how to turn off a warning dialog box
i would like to hide a message dialog, which pops up when I click on a subsystem mask to modify a parameter. this is the me...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


Create two different masks for a subsystem
Hello everyone, I'm looking for a way to create two differents masks for a subsystem block in Simulink. I need it because I n...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Answered
Change only one port label without having to rewrite all the mask
I found a way set_param(gcb, 'MaskDisplay',strrep(get_param(gcb, 'MaskDisplay'), 'color(''black''), port_label(''output'',1...

ongeveer 12 jaar ago | 0

| accepted

Question


Change only one port label without having to rewrite all the mask
Hello everyone, I need some help to find a way to change the port label of only one input of a masked system and don't have...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


(RunTimeDataType*) notation is a cast? pointer and -> operator for sfunction
Hello everyone, I need to figure out the way to read a parameter from a C mex Sfunction, so I pick up some examples. I took t...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


Pointer in a C mex sfunction
Hello, I have some problems to understand the syntax and the meaning of some pointers used in a C sfunction For example take...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


pass a parameter to a sfunction written in
Hello everyone, I need some help to figure out how to pass a parameter to sfunction written in C. I can't find the way (the i...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


Dynamically change the number of ports of a block
Hello everyone, I'm looking for a way to build a Simulink block, where the number of port is defined by the user, e.g. a mask...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


change the color of a block based on its output
hello, I'm wondering if there is any way to change a color of a block as a function of the output value. I thought to us...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


direct access to the result of a function call
Hi, Is there any way to write this code " portdata=get_param(gcb,'PortConnectivity') In1Src=portdata(1).SrcBlock ...

ongeveer 12 jaar ago | 2 answers | 0

2

answers

Question


change the color of an input port from a callback function
Hello, is it possible to change the color of an input port from a callback function? http://www.mathworks.nl/help/toolbox/si...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


determine whether a input port is connected or not to a block
Hi I need to realize a Simulink block, which is capable to determine whether a input port is connected or not to a bloc...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


model a discrete system without using mdlupdate routine
Hello, Is there a way to write a S-Function describing a discrete system with memory (e.g 1/z), without using the mdlUpdate...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


Using RTW is the only way to generate a S-Function from a subsystem block
Hi, Is the another way to to generate a S-Function from a subsystem block beyond the Real time workshop (right click -> RTW-...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Question


build a static library instead of a dynamic one with MEX compiler
Hello I m looking for an option of the mex compiler in order to produce a static mex file with all the code, that it needs,...

ongeveer 12 jaar ago | 1 answer | 0

1

answer

Answered
which simulink blocks can I use to create the function below ??
You can use either the block Matlab fcn in the "user-defined function" library either a sfunction. I suggest you to use the...

ongeveer 12 jaar ago | 0