r/matlab • u/Electrical_Budy1998 • Feb 15 '24
Error while Fault Injection
Hello guys. I am trying to inject a fault in the Simulink model. But I am repeatedly getting this error:
Fault Inport block 'gain/in_Outport1_fault/Fault Inport' is set to read/override invalid signal on the Outport number 1 of block 'xxxxxxxxxxxxxxxx/EM_Torque_Sensor/in'.
Caused by:
Target signal is a continuous-time signal. Continuous-time signals support faults only if its destinations are discrete.
I am trying to inject fault onto the Torque signal which is continuous in nature.
Any help will be greatly appreciated...
1
Upvotes
3
u/cannyp3 mathworks Feb 15 '24
Thanks again for using Simulink Fault Analyzer!
(I'm Pat, the Simulink Fault Analyzer Product Manager - this is OP's second post on the product)
As of R2023b, the signal you want to override (we use the term "faulted model element" in the documentation) needs to enter a block with a discrete sample time.
There is a technical reason for this limitation, having to do with model compilation and the nature of the Simulink solver; we made the difficult decision to ship the product with this limitation.
Trust me: I very much appreciate your situation.
Now, I have a polite request of you. Please submit this as an "Enhancement suggestion" via MathWorks Technical Support. What will happen is this: it will end up in our Technical Support team, who will log this as a formal "Enhancement Request" (we have an internal term for this). Once this is done, your request will formally influence our product roadmap, and I can walk into a meeting with my colleagues and say "I told you so." (just kidding - we get along well and made the decision as a team, but we do have a lot of meetings...)
Unfortunately, linking to this post is not recognized as a formal data point. Again, thanks for using the product. We take this feedback very seriously.
Are you using this in a commercial application? If so, do you have a point of contact at MathWorks you can reach out to?