Skip to main content
Solved

請教有關zos-api問題


請問在ZOS-API中,如何設定IncidentAnglevsImageHeight settings的Field Density的值與其他的Wavelength值?我是如下編寫,但是顯示Error

TheAnalyses = TheSystem.Analyses

IAIH=TheAnalyses.New_Analysis(constants.AnalysisIDM_IncidentAnglevsImageHeight)

IAIH_Set = IAIH.GetSettings()

IAIH_SetCast = CastTo(IAIH_Set,'IAS_')

IAIH_SetCast.FieldDensity=15

IAIH_SetCast.Wavelength=2

有關IncidentAnglevsImageHeight的數據匯出,可以用example04.pull_data_from_FFTMTF的方式,用DataSeries取值並匯出?

感謝

Best answer by Julia

Hi HC,

并非所有的analysis都支持通过ZOS-API方式直接输出数据。

您所使用的分析功能没有DataSeries的输出。

关于各个分析可以有哪些输出形式,请参阅以下知识库文章。 

Generating a list of output data types for each analysis in the ZOS-API 

个人是运行一次上面的code,把结果保存在excel中,然后filter相应的分析查看是否支持:

使用下面的function 可将该分析结果输出为TXT 文件,内容与在OS分析窗口中点击Text tab时一致。

 

希望以上信息有帮助。

Julia 

View original
Did this topic help you find an answer to your question?

2 replies

Julia
Fully Spectral
Forum|alt.badge.img+2
  • Fully Spectral
  • 51 replies
  • Answer
  • March 27, 2023

Hi HC,

并非所有的analysis都支持通过ZOS-API方式直接输出数据。

您所使用的分析功能没有DataSeries的输出。

关于各个分析可以有哪些输出形式,请参阅以下知识库文章。 

Generating a list of output data types for each analysis in the ZOS-API 

个人是运行一次上面的code,把结果保存在excel中,然后filter相应的分析查看是否支持:

使用下面的function 可将该分析结果输出为TXT 文件,内容与在OS分析窗口中点击Text tab时一致。

 

希望以上信息有帮助。

Julia 


  • Author
  • Student
  • 2 replies
  • March 27, 2023

謝謝妳,這個信息,非常有幫助


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings