解決方案
因為 Microsoft SQL Server 不支持其 FLOAT 資料類型的非有限值,我們需要修改架構以過濾非有限值。
- 通過點擊Configure>> Result Processing...打開 Schemas 在 Result Processing 視窗中點擊Database行中的錘子和扳手圖標以打開 Database Options 對話框。
- 轉到 Schemas 選項並展開當前正在使用的 Schema。
- 我們將修改 PROP_RESULT 表。更改以下欄位/參數的“Precondition”表達式:
STEP_NUMERICLIMIT1.DATA
Logging.DatabaseOptions.IncludeOutputValues && Logging.StepResult.Numeric != NAN && Logging.StepResult.Numeric != INF && Logging.StepResult.Numeric != -INF && Logging.StepResult.Numeric != IND
PROP_MULTINUMERICLIMIT1.DATA
Logging.DatabaseOptions.IncludeOutputValues && Logging.PropertyResult.Data != NAN && Logging.PropertyResult.Data != INF && Logging.PropertyResult.Data != -INF && Logging.PropertyResult.Data != IND
- 如果您收到未知變量錯誤:
An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'
An error occurred evaluating a database statement/column precondition.
Schema: Axcelis Schema With Preconditions
Statement: MEAS_NUMERICLIMIT.
Column: DATA
Property: Measurement.[Measurement 0]
Error in argument 1, 'Logging.StepResult.Numeric != NAN', in call to the expression function '#NoValidation'.
Unknown variable or property name 'Logging.StepResult.Numeric'.
Source: TSDBLog
嘗試修改 STEP_NUMERICLIMIT1.DATA 中 PROP_RESULT 表格中的Precondition :
""Logging.PropertyResult.Data" instead of "Logging.StepResult.Numeric
i.e: Logging.DatabaseOptions.IncludeOutputValues && (Logging.PropertyResult.Data != NAN)
- 重新啟動 TestStand 以重新載入對schema所做的更改。