Hi Jan,
I have got a script to calculate PMHF from Ben.
However, when I copy this script to other projects, an error is reported in FMEDA, as shown below.
What are the possible causes of the error?
Thanks~
Sincerely,
Qianqian
Hi Qianqian,
now I see. The PMHF scripted support was developed actually with the background of pure HW focused projects (FMEDA) and not projects which include other things - e.g. HARA. In such a context some assumptions about internal linkage/traces are not completely fulfilled (e.g. a SafetyGoal is not only related to DC Worksheets but also to HARA-Entries). Anyway this can be fixed quickly. Just modify the derived profile property PMHF_5 (user_pmhf_5) as follows:
load (".lib/pmhf_10_calc_utils.js");var sheets = self.mediniGetOpposites("safetyGoal").toArray().filter(function (e) {return e instanceof Metamodel.dc.DCWorksheet});if (sheets.length ==1 ){ if(sheets[0].user_t_lifetime && sheets[0].user_t_lifetime!=''&& !isNaN(sheets[0].user_t_lifetime)) { result = computePMHF_5(sheets[0], self); } else { result = "Incorrect life time setting at DC Worksheet"; } }else { result = "Missing or multiple DC Worksheet(s)";};result
If you are also using the PMHF_10, that needs to be adjusted in a similar way.
Best regards,
Eckhardt
PS: Concerning the updated version of the PMHF Project Template please contact local Chinese Ansys Team (e.g. Jinjing)
as the messages states, there may be no or multiple DC Sheets associated with that safety goal. As This is shown in the metrics section of the DC Sheet you should have a look at the safety goal itself (in the Safety Goal List Editor) to check whether exactly one DC Sheet is related to the safety goal.
PS: This seems to be anyway quite an old version of the script - and probably will not work with any newer versions (2022Rx) of medini
Hi Eckhardt,
Thank you for your reminder.
And is there a script that works for the 2022RX, please?
This need is from a customer who is trialling medini 2022R2.
Sincerely,
I checked the project.
There is really only one DC in the project and it is associated with SG-2.
(medini version:2021R2)
Sincerely.
After modifying it works!
Thank you very much~
Jinjing is on vacation this week.
Would you please to share the script for calculating PMHF whitch suitable for 2022Rx?
Thanks.