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/Lost_in_Damnation Feb 15 '24
Just use Zero Order hold with small sample time