Community Profile

photo

Muthukumar Ganesan


Last seen: 19 dagen ago Active since 2022

Statistics

All
  • First Submission
  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Answered
Arrays have incompatible sizes for this operation.
Hi, In the calculation for the highlighted section please index (i,2) Thanks, Muthukumar

25 dagen ago | 0

Answered
Repeated sequence with enumerated data
Hi, Please convert the array into double using following command in the output values section of the block. double(<EnumName>....

ongeveer een maand ago | 0

Answered
In Simulink, when a condition is met, I want to keep a constant result even when this condition ends.
Hi, Please refer to the attachment. Hope you are referring to this logic. Thanks Static Temp=0; if (u1>u2 && Temp !=1) Temp...

ongeveer een maand ago | 0

Answered
In simulink, debouncing
Hi, Using stateflow, you can implement this with after function whereas using simulink counter logic has to be implemented. Pl...

ongeveer een maand ago | 0

Answered
How can I implement a custom datatype in Simulink model So, that the generated code is same as Union datatype in C.
Hi, Please find one of the workaround here. Thanks.

ongeveer een maand ago | 0

Answered
union structure in simulink
Hi, Please refer to this sample model. Hope this helps. Thanks.

ongeveer een maand ago | 0

Answered
C Union data type in Matlab/Simulink
Hi, One of the workaround is here. Thanks

ongeveer een maand ago | 0

Submitted


Use Union Datatype in Simulink
Simulink doesn't generate Union datatype but the same can be imported into Simulink

ongeveer een maand ago | 8 downloads |

Answered
Use pointers in simulink
Hi, You can perform this using following method. Create a Simulink function with input and output arguments Right click the b...

ongeveer een maand ago | 0

Submitted


Using Pointer in Simulink function
Model explains how to use a pointer arguments in a C/C++ generated code from Simulink function

ongeveer een maand ago | 6 downloads |

Thumbnail

Answered
Regarding bit generator
Hi, Please use "Serializer1D" block which is introduced in R2014b. Configure the parameter "Ratio" and Idle Cycles From your ...

ongeveer een maand ago | 0

Answered
How to setup Simulink logs out .mat format?
Hi, In the newer versions of matlab by default, Simulink creates .mat file with version 7.3 You can add these commands in Mode...

ongeveer een maand ago | 0

Answered
stateflow interpretation blocks- integrator
Hi, These are Causal Discrete systems. Let's assume input is x and output is y. Hope you are good at C. Case 1: Accumulates x...

ongeveer een maand ago | 0

Answered
set configuration of State flow using M script
Hi, Please use the following commands to modify it and also make sure the model is not in simulation mode. Hope this helps. Th...

ongeveer 2 maanden ago | 0

Answered
State transition which needs to be triggered when a condition is met for a fixed period of time.
Hi, Based on your implementation, adding a self transition with condition Input != 1, Please refer to the screenshot. Thanks.

ongeveer 2 maanden ago | 0

Answered
Can I force Stateflow to use uint16_T instead of uint8_T in generated code?
Hi, Yes the "Hardware Implementation" parameter in the model configuration can be used for this purpose. Choose Custom process...

ongeveer 2 maanden ago | 0

Answered
how to call a function from stateflow within model reference block.
Hi, You can define the common function in the top level model as simulink function, configure its visibility to "Scoped". In t...

ongeveer 2 maanden ago | 0

Submitted


Simulink Function and Referenced Models
Calling Simulink function across the referenced models

ongeveer 2 maanden ago | 4 downloads |

Answered
my simple scheduler not working in stateflow
Hi, Please change the solver type to Fixed Step and explicitly define the step size. When the variable step solver is selected...

ongeveer 2 maanden ago | 0

Answered
vector variable from Simulink to Stateflow
Hi, While defining the vector input of Stateflow, configure the size as -1. The above setting will be enough to index an eleme...

ongeveer 2 maanden ago | 0

Answered
Simulation Stop time as a constant input to state flow.
Hi, Create a parameter in the workspace as shown in figure and link the parameter inside the constant block Thanks.

ongeveer 2 maanden ago | 0

Answered
How to assign values to all the elements of a matrix in Stateflow action language?
Hi, For charts with "Matlab" as action language A=[1 2 3; 4 5 6; 7 8 9] can be directly used whereas for the charts with "C" as...

ongeveer 2 maanden ago | 0

Answered
How can I use data size of the message in stateflow?
Hi, For a Stateflow with C action language, to index arrays square brackets should be used. Ex: M.data[0] Thanks

ongeveer 2 maanden ago | 0

Answered
How to send an event with a MATLAB function (in Stateflow)
Hi, This can be done with a self transition. Please refer to the attachment for a reference. Thanks.

ongeveer 2 maanden ago | 0

Answered
How to read Description of all mpt.signal of the Model Explorer
Hi, You can start with the following commands. sflow=sfroot; model = sflow.find('-isa', 'Stateflow.Chart'); DataArray = mode...

ongeveer 2 maanden ago | 0

Answered
How can i call a state machine which is inside a function.Function is called iteratively?
Hi, This requirement can be achieved by implementing the statemachine inside the "For Iterator Subsystem" in simulink. Please r...

ongeveer 2 maanden ago | 0

Answered
When to use exclusive or and parallel states in stateflow
Hi, Exclusive OR: Used where the operating modes are mutually exclusive i.e., only one substate can be active at a time Ex: Ve...

ongeveer 2 maanden ago | 0

Answered
How to process elements in an array using stateflow if-statement?
Hi, In Stateflow with C action language without using a loop, you have to use Matlab function. i.e. Saurabh's answer can be use...

ongeveer 2 maanden ago | 0

Answered
Bus exchange between Stateflow and Simulink
Hi, You can define the Bus datatype in your data dictionary to be precise you can define it in your workspace. The defined data...

ongeveer 2 maanden ago | 0

Answered
Implementing if-elseif-else conditions in stateflow chart
Hi, Please refer to the attachment. Thanks

2 maanden ago | 0

Load more