我正在使用可靠性增长模型 (JMP 16.2.0),并使用“记住设置”功能在“累积事件分析器”中输入约 20 个唯一值。不幸的是,这些值不会随可靠性增长 JSL 脚本一起保存,因此每次我重新打开模型时,如果我想比较值(这是我分析的必要部分),就不得不再次手动输入这 20 个值。
有没有办法为这些输入的值生成 JSL 代码,并将其附加到模型脚本,以便当我启动它时,这 20 个值仍然会保留?
谢谢你!
J.P
我是该平台的开发人员。平台可以记住自 JMP17 以来保存的脚本中的这些设置。请考虑升级。
感谢您的建议。我已经开始咨询是否要更新到我公司的较新版本 - 在探讨这个问题的同时,是否可以分享我可以立即使用的 JSL 脚本?
JMP17 及更高版本中记住这些设置的机制不适用于 JMP16。也就是说,JMP17 中的脚本在 JMP16 中不会被识别。
然而,在 JMP16 中,您可以手动编写代码。以下是一个带有简要说明的示例:
dt = open("$Sample_Data/Reliability/NewEngineOperation.jmp");
//Following runs the platform, fit a model, and returns a handle.
//We usually call it "obj" as a convention.
obj = dt << Reliability Growth(
Input Format( Time to Event ),
Time to Event( :Hours ),
Event Count( :Fixes ),
Crow AMSAA( Show Profilers( 1 ), Show Profilers( 1 ) ),
);
//Report(obj) gets the display part that you see for "obj"
//What are in the squared brackets navigate the display and find the Profiler
//Eventually, get scriptable object command to the display of the profiler retrieves the Profiler itself. Assign it to "cef". Now "cef" can accept messages.
cef = (report(obj)["Models", "Crow-AMSAA", "Profilers", "Cumulative Events Profiler"]) << get scriptable object();
//This command sets up the profiler with desired values.
cef << Term Value(Hours( 5102.5, Lock( 0 ), Show( 1 ) ) );
//This command tell the profiler to "remember" the current setting.
cef << Remember Settings( "Setting 1", Differences Report( 0 ) );
//This command sets up the profiler with a different desired value.
cef << Term Value( Hours( 4032, Lock( 0 ), Show( 1 ) ) );
//This command tells the profiler to remember current setting again.
cef << Remember Settings( "Setting 2", Differences Report( 1 ) );
//The last command sets the profiler again, but no remember command follows.
cef << Term Value( Hours( 4032, Lock( 0 ), Show( 1 ) ) );