photo

Akshat Dalal


Last seen: Today Active since 2023

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 3
  • 6 Month Streak
  • First Answer

View badges

Feeds

View by

Answered
STM32F4xx SPI Block Error
Hi, This error typically occurs when the code generation information file doesn't exist and can arise due to various reasons. P...

19 hours ago | 0

Answered
How to gather digital audio stream via STM32?
Hi Marek, It is possible to read audio signals from an STM board in Simulink. I am not sure if it is supported for the particu...

20 hours ago | 0

Answered
How can I calculate the forces and moments on servo arms and couplers in a Stewart platform simulation using MATLAB
Hi, It is possible to analyze the forces and moments on the servo arms and couplers of your Stewart platform using MATLAB and ...

20 hours ago | 0

| accepted

Answered
how to set initial signal out from relay simulink
Hi Ahmad, To set the initial output of a Relay block in Simulink to be ON (1) under certain conditions, you can use a workarou...

1 day ago | 0

| accepted

Answered
Data Race Atomic Operations
Hi, Data races occur when multiple threads access shared data at the same time, with at least one thread performing a write ope...

4 days ago | 0

Answered
FIR filtering using firpm
Hi John, You can use the 'firpm' function to create a bandpass FIR filter to eliminate DC at 60 Hz and high-frequency noise. T...

4 days ago | 0

Answered
design(fdesign.lowpass()) vs dsp.Filter(firpm())
Hi Axel, Designing a strict low-pass filter (LPF) with specifications like a 0.5 Hz passband, 1 Hz stopband, 0.01 passband ripp...

4 days ago | 0

Answered
Terminate Code Generation Process
Hi David, You could encapsulate your scripts in try-catch blocks. Threfore, if the script errors out, you can debug it easily b...

5 days ago | 0

Answered
How to create a component reference in the system composer from a simscape component
Hello Flavio, It is possible to create a simscape component that can be referencedn inside a System Composer application and h...

7 days ago | 0

Answered
How to classify a folder of images?
Hi Mohammed, You can use the classification learner app to build a machine learning model to identify the currency denominatio...

9 days ago | 0

Answered
Polyspace unbalanced/nested critical sections
Hello Mario, Polyspace Bug-Finder would be a more appropriate tool for analysing critical sections of your code for unbalanced...

9 days ago | 0

Answered
How to Fix Polyspace CodeProver Orange Overflow errors
Hi Dinesh, The unexpected orange integer overflow warning can be due to the below two reasons: Shared Variable: If you are p...

9 days ago | 0

Answered
How to create custom data type acronyms in code generation
Hi Marek, Unfortunately, Simulink Coder does not provide a direct way to customize the $A acronym for data types when using rep...

9 days ago | 0

| accepted

Answered
With Simulink Embedded Coder is it possible to change base workspace variables?
Hello Remi, I believe you could try using Data-Stores for this usecase. They are quite useful when you want to have a common m...

10 days ago | 0

Answered
Simulink Embedded Coder Zero Initialization of Local Variables Not Working
Hi Furkan, There can still be some other optimizations which can remove the zero-initialization code. You could either disable...

10 days ago | 0

Answered
Simulink model -Code generation
Hi Jerome, One way to achieve this is to use the “ssRTWGenIsCodeGen” function. This function detects whether the S-Function is ...

10 days ago | 0

Answered
Embedded Coder C-Code Abruf von Daten
Hallo Markus, Leider bin ich mit Deutsch nicht vertraut und werde auf Englisch antworten. The rtw_solver.h and rtw_continuous...

10 days ago | 0

Answered
Possible Ways to Modifying "Prefix" of Memory Map Header on generated AUTOSAR Code
Hi Onur, The pre and post statements you see are not because of the memory section defined in the CSCDesigner app but to be co...

10 days ago | 0

Answered
Regarding the connection of cloud or router to simulink blocks.
Hi Saranya, Yes, it is possible to connect Simulink to external data sources, including routers or cloud services, to get liv...

28 days ago | 0

| accepted

Answered
MEX compilation failed with message: C compiler produced errors. See build log for compiler error:
Hi Jeevan, This issue might be happening because the mex compiler is unable to find the CPP file for your function.This might h...

2 months ago | 0

Answered
Inconsistent SIL and Normal mode simulation results (Equivalence Criteria Failing )
The issue you are facing is an expected behavior of SIL simulation. Consider a model that references a child model using the “M...

2 months ago | 0

Answered
Importing Excel data into Simulink for giving as input signal - Contains Enumeration values also
Hi Varunjith, For the excel sheet to comply with Signal builder while importing, it should not contain non-numeric values. So,...

2 months ago | 0

Answered
How can I swap states in a simulink "for each" system?
Hi James, The issue you're facing is likely due to the fact that the state update in your simulation happens in discrete time s...

2 months ago | 0

Answered
Image labeller cannot save sessions
Hi Karl, The error messages point to an issue while importing the Image data. This could potentially happen because the image ...

2 months ago | 0

Answered
Is there an option to avoid generating translations in the generated code from a Simulink Model that is created by importing an arxml with Interfaces Mapped to COMPU METTHODS?
Hi Rajni, By translations, I am assuming you mean the comments explaining the code generated from the model. Your attached scr...

2 months ago | 0

Answered
How to use a function within optiproblem?
Hi Anthony, The error you're encountering is due to the way "min" function is being used within the "optimproblem" context. The...

4 months ago | 0

Answered
Image segmentation on difficult background
Hi, I believe you've tried a broad range of conventional methods without satisfactory results, it might be worthwhile to explo...

4 months ago | 0

Answered
NMPC time minimization problem
Hi Almudena, In typical MPC formulations, the cost function is designed to penalize deviations from desired states and/or cont...

4 months ago | 0

| accepted

Answered
backtestStrategy: rebalance function keeps track of past & current open position
Hi Andy, I believe you could use the 'UserData' field in the rebalance function to pass the Position's Table as an input argum...

5 months ago | 0

Answered
How to generate code for model which uses an export-function reference model?
Hi Cornelia, I believe the error you're getting is a documented limitation mentioned here - https://in.mathworks.com/help/rtw/...

5 months ago | 0

Load more