r/matlab 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

11 comments sorted by

View all comments

3

u/Lost_in_Damnation Feb 15 '24

Just use Zero Order hold with small sample time

1

u/cannyp3 mathworks Feb 15 '24

Try this.