Fault Injection simulation using modelled HW & SW

1 Ansicht (letzte 30 Tage)
Kevin
Kevin am 10 Jun. 2025
Kommentiert: Kevin am 11 Jun. 2025
Hello,
I have an idea and wondered if it would be possible with the tools available from MathWorks.
I have a challenge to physically perform Fault Injection Testing on a large PCB. This consists of, for example, removing a component to access the PCB nets, Introduce a fault condition, say shortcircuit, and record three behavioural stages, before, injection of the fault and recovery. Recording the behaviour of the system consisting of both hardware and software.
For one resistor this would be a simple task but with a large PCB the problem is quantity. Quantity of components.
To get to my questions on the capabilty of the Mathworks tools:
  1. Is it possible to simulate circuit schematics? to create a model of my PCB.
  2. Is it also possible to import my software thats used in a uP? So both modelled HW & SW can be tested together.
  3. Then getting to the Fault Injection part. Select each modelled component in turn and induce a fault. Recording the behaviour in three stages, before, during and recovery. Could this be automated?
Does MathWorks have tools that could help me create such a system that would allow me to simulate fault conditions, recording both HW & SW behaviour?
Which tools would allow me to create this?
Please share any info or experience.
  2 Kommentare
Pat Canny
Pat Canny am 10 Jun. 2025
Hi @Kevin - have you taken a look at this example, by chance? https://www.mathworks.com/help/simscape/ug/add-a-fault.html
Kevin
Kevin am 11 Jun. 2025
Hi Pat,
Thankyou for the interesting link. To expand on that idea of injecting a fault to a DC motor.
Could a PWM controlled circuit be included as the motor drive? With the PWM signal generated by a microprocessor. But rather than model the microprocessor. Could the code be imported to the sim?
  1. inject fault to the motor, component under test
  2. model the drive circuitry
  3. include microprocessor code for PWM signal and diagnositic feedback
  4. perform test and record results.
This way hardware and software could be tested together.
Is this possible?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Composite Components finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by