get values from rapid accelerator build summary
I have a Simulink model I run routinely in rapid accelerator mode. The performance is great, but the build process sometimes encounters strange errors. To troubleshoot that, I would like my script to be able to extract information from the text build summary printed to the console. In particular, I want the three numbers from the line that says "1 of 16 models built (9 models already up to date)", so I can branch on them, like this:
try
rtp = Simulink.BlockDiagram.buildRapidAcceleratorTarget("ModelName")
catch ME
[built, total, done] = something(?);
if done < total
if built > 0
call_self_again()
else
do_something_different()
end
else
report_success_anyway()
end
end
What something can I use to tell me the values of built, total, and done?I have a Simulink model I run routinely in rapid accelerator mode. The performance is great, but the build process sometimes encounters strange errors. To troubleshoot that, I would like my script to be able to extract information from the text build summary printed to the console. In particular, I want the three numbers from the line that says "1 of 16 models built (9 models already up to date)", so I can branch on them, like this:
try
rtp = Simulink.BlockDiagram.buildRapidAcceleratorTarget("ModelName")
catch ME
[built, total, done] = something(?);
if done < total
if built > 0
call_self_again()
else
do_something_different()
end
else
report_success_anyway()
end
end
What something can I use to tell me the values of built, total, and done? I have a Simulink model I run routinely in rapid accelerator mode. The performance is great, but the build process sometimes encounters strange errors. To troubleshoot that, I would like my script to be able to extract information from the text build summary printed to the console. In particular, I want the three numbers from the line that says "1 of 16 models built (9 models already up to date)", so I can branch on them, like this:
try
rtp = Simulink.BlockDiagram.buildRapidAcceleratorTarget("ModelName")
catch ME
[built, total, done] = something(?);
if done < total
if built > 0
call_self_again()
else
do_something_different()
end
else
report_success_anyway()
end
end
What something can I use to tell me the values of built, total, and done? rapid accelerator, build summary MATLAB Answers — New Questions