🚗 Model-Based Design (MBD) Interview Questions
---⬅️ Back
📦 MATLAB & Auto Code Generation
- What is auto code generation in Simulink?
- What is the difference between GRT and ERT targets?
- What is the role of TLC (Target Language Compiler) files?
- What are the key features of Embedded Coder?
- How do you configure model settings for code generation?
- What are storage classes in auto code generation?
- What is the difference between reusable function and inlined code generation?
- How can you reduce code size during generation?
- What is the significance of the model's configuration parameters for code generation?
- What are example applications where auto code generation is used?
🔧 Simulink Modeling
- What are the basic block types used in Simulink?
- What is a virtual vs non-virtual subsystem?
- What are lookup tables and when would you use them?
- How do you implement a feedback control loop in Simulink?
- What is the purpose of Bus Creator and Bus Selector?
- What is the function of a Merge block?
- What are Rate Transition blocks and when are they required?
- What is the difference between Enable and Trigger subsystems?
- How do you create a masked block?
- What is function-call subsystem and when is it used?
🔁 Stateflow & Flow Logic
- What is Stateflow and how does it differ from Simulink?
- What is the difference between Exclusive OR and AND states in Stateflow?
- What are junctions in Stateflow and how are they used?
- What is the role of temporal logic in Stateflow?
- What is the difference between event-based and time-based transitions?
- How do you model hierarchy and parallelism in Stateflow?
- What is a history junction?
- How can you simulate faults or error-handling logic in Stateflow?
- What are condition actions and transition actions?
- What are the execution order rules in Stateflow?
📊 Flowcharts & Logical Modeling
- How do you convert a flowchart into a Simulink model?
- What are Mealy and Moore machines? How are they modeled in Stateflow?
- What is the difference between transition condition and state entry action?
- How would you implement nested states in Stateflow?
- What is superstate and substate concept?
⚙️ Model Configuration & Optimization
- How do you configure a model for real-time simulation?
- What are common optimization settings for embedded code generation?
- What is inline parameter and when should it be used?
- How do you control sample times and solver settings?
- What is signal resolution and how is it configured?
✅ Testing & Verification
- What are the steps to perform MIL testing?
- What is signal logging and how is it enabled?
- How do you use Simulink Test Manager?
- How do you verify that the generated code behaves like the model?
- What are model coverage metrics and why are they important?
🔍 Miscellaneous & Practical
- What are common errors during code generation and how do you resolve them?
- How do you manage large models or componentize them?
- What is model referencing and its benefits?
- How do you ensure MISRA C compliance in the generated code?
- What debugging tools do you use while working with Simulink and code?
🧱 Advanced Modeling & Architecture
- What is the use of model variants in Simulink?
- How do you use Variant Subsystems and Variant Source/Sink blocks?
- What is configuration referencing and how is it useful?
- How does model referencing improve reusability?
- What is the difference between model reference and subsystem?
- How do you create reusable libraries in Simulink?
- How do you manage calibration parameters across models?
- What is data dictionary in Simulink?
- How is signal logging different from data logging?
- What is signal aliasing and how do you manage it?
🧩 Code Integration & Data Handling
- What is the use of external input/output in Simulink models?
- How do you link model parameters to external code or calibration files?
- How do you create A2L/MDF files for calibration and measurement?
- What are calibration annotations in Embedded Coder?
- How do you manage memory sections in code generation?
- What is difference between volatile and non-volatile data?
- How do you ensure your model supports ASIL (Automotive Safety Integrity Level)?
- What is the role of pragma or memory mapping in generated code?
🔀 Stateflow Advanced
- How do you prioritize transitions in Stateflow?
- How does event broadcasting work?
- How do you use MATLAB functions inside Stateflow?
- What is difference between graphical and truth table functions?
- How do you model a watchdog mechanism in Stateflow?
- What are state decomposition and parallel states?
- How do you control execution order of parallel states?
🐞 Debugging, Performance & Safety
- What are common issues you’ve debugged in model simulations?
- What are execution order viewer and signal monitoring tools?
- What is simulation profiler and when do you use it?
- What are some code verification strategies you follow?
- How do you integrate Polyspace for static code analysis?
- How do you test time deterministic behavior of the model?
- What are checks you run before delivering model/code?
🛡️ Safety & Process Compliance
- How do you ensure compliance to ISO 26262 in your modeling process?
- What are safety mechanisms modeled using Stateflow?
- What is the importance of requirement traceability?
- What are Simulink Requirements and how do you use them?
- What are change impact assessments in modeling?
🌍 Simulation & Environment
- How do you simulate physical systems in Simulink (e.g., using Simscape)?
- What is co-simulation and how do you perform it?
- What is SIL/PIL testing? How is it configured?
- What are host-target interface considerations?
- How do you set up hardware-in-the-loop (HIL) testing?
📂 Process, Documentation & Collaboration
- What are your steps from model creation to production code delivery?
- How do you version control Simulink models?
- What documentation tools do you use for Simulink models?
- How do you handle change requests in models?
- What is your process for model review or design peer-review?
- How do you manage test cases for MIL/SIL validation?
- What do you include in your model test harnesses?
- How do you ensure model readability and maintainability?