MATLAB ヘルプ センター
Enable fault simulation for model
Since R2023b
isOn = Simulink.fault.injection(model)
isOn = Simulink.fault.injection(model,status)
isOn = Simulink.fault.injection(model) returns 1 if the model model has fault simulation turned on.
isOn
model
1
example
isOn = Simulink.fault.injection(model,status) turns fault simulation on or off based on the value of status.
status
collapse all
Open the fault_analyzer_intro model.
fault_analyzer_intro
openExample("faultanalyzer/FaultAnalyzerIntroExample")
Check if fault simulation is turned on for the model.
status = Simulink.fault.injection(... "fault_analyzer_intro");
Turn on fault simulation.
status = Simulink.fault.injection(... "fault_analyzer_intro",true);
Path or handle to the model, specified as a string scalar, character vector, or model handle.
Data Types: string | char | double
string
char
double
true
false
0
Fault simulation status, specified as a numeric or logical 1 (true) or 0 (false). Enter 1 or true to turn on fault simulation.
Data Types: logical
logical
Previous fault simulation status of the model, returned as a 1 or 0 of data type logical.
Introduced in R2023b
Simulink.fault.enable | Simulink.fault.isEnabled | Simulink.fault.save
Simulink.fault.enable
Simulink.fault.isEnabled
Simulink.fault.save
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ