![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/26257795_1649945153199_DEF.jpg)
Muthukumar Ganesan
Followers: 0 Following: 0
Feeds
已回答
Equivalent of #define's for matlab coder?
Hi, It can be implemented by using custom storage class "ImportedExtern". Hence EC will generate the variable with extern stora...
Equivalent of #define's for matlab coder?
Hi, It can be implemented by using custom storage class "ImportedExtern". Hence EC will generate the variable with extern stora...
1 year 前 | 0
已回答
The 'duration' operator cannot be bound to more than one state
There can be many solutions, one would be placing both a and b into a single parent state the let the parent state exit to State...
The 'duration' operator cannot be bound to more than one state
There can be many solutions, one would be placing both a and b into a single parent state the let the parent state exit to State...
1 year 前 | 0
已回答
How to set "Show Name" of Simulink block to "Auto" using Matlab script?
Please set the parameter "Hide Automatic Name" to "on" that sets "ShowName" of the block to "Auto"
How to set "Show Name" of Simulink block to "Auto" using Matlab script?
Please set the parameter "Hide Automatic Name" to "on" that sets "ShowName" of the block to "Auto"
1 year 前 | 1
| 已接受
已回答
How to find out whether a stateflow input variable receives an explicit value = 0 or is unconnected? How to treat optional inputs?
Hi, It can be done by creating a mask, sample model is here. Hope it helps. Thanks
How to find out whether a stateflow input variable receives an explicit value = 0 or is unconnected? How to treat optional inputs?
Hi, It can be done by creating a mask, sample model is here. Hope it helps. Thanks
2 years 前 | 0
已回答
How to programmatically create argin and argout ports in simulink function
Hi, Arg In and Arg Out blocks will not be present in simulink library browser. Hence add_block cannot refer to the this block f...
How to programmatically create argin and argout ports in simulink function
Hi, Arg In and Arg Out blocks will not be present in simulink library browser. Hence add_block cannot refer to the this block f...
2 years 前 | 0
| 已接受
已回答
How can I introduce a block created in Simulink into the Simulink Library Browser?
Hi, Please refer to this video. Hope it helps. Thanks.
How can I introduce a block created in Simulink into the Simulink Library Browser?
Hi, Please refer to this video. Hope it helps. Thanks.
2 years 前 | 0
已回答
Arrays have incompatible sizes for this operation.
Hi, In the calculation for the highlighted section please index (i,2) Thanks, Muthukumar
Arrays have incompatible sizes for this operation.
Hi, In the calculation for the highlighted section please index (i,2) Thanks, Muthukumar
2 years 前 | 0
已回答
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>....
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>....
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
In simulink, debouncing
Hi, Using stateflow, you can implement this with after function whereas using simulink counter logic has to be implemented. Pl...
In simulink, debouncing
Hi, Using stateflow, you can implement this with after function whereas using simulink counter logic has to be implemented. Pl...
2 years 前 | 0
已回答
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.
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.
2 years 前 | 0
已回答
union structure in simulink
Hi, Please refer to this sample model. Hope this helps. Thanks.
union structure in simulink
Hi, Please refer to this sample model. Hope this helps. Thanks.
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
Regarding bit generator
Hi, Please use "Serializer1D" block which is introduced in R2014b. Configure the parameter "Ratio" and Idle Cycles From your ...
Regarding bit generator
Hi, Please use "Serializer1D" block which is introduced in R2014b. Configure the parameter "Ratio" and Idle Cycles From your ...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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.
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.
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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.
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.
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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
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
2 years 前 | 0
已回答
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.
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.
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0
已回答
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...
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...
2 years 前 | 0