在TestStand Semiconductor Module中依序地執行子系統

更新 Jan 21, 2025

環境

軟體

  • TestStand
  • TestStand Semiconductor Module

在四個site的測試場景中,出於某些特定原因(例如避免site間干擾、執行故障排除),可能需要以特定順序去執行子系統,而不是隨機或同時執行。本教學將介紹在TestStand和TestStand Semiconductor Module (TSM)中使用precondition expression和rendezvous synchronization step創建序列的步驟。該序列創建後,會按特定的循序執行子系統。

您需要在系統上安裝NI TestStandTestStand Semiconductor Module才能完成任何步驟。

1. 啟動NI TestStand
2. 選擇Semiconductor Module » Edit Pin Map File... 以啟動 Pin Map Editor
3. Pin Map選項的sites部分中,將Number of Sites 指定為4


4. 點選Save按鈕儲存 pin map檔案。
5. 將Step Type為Synchronization的Rendezvous step插入到MainSequence

  • 選擇Operation作為Create 
  • Rendezvous Name Expression文字方塊中輸入“Sync 4 Sites”
  • Number of Threads Per Rendezvous 文字方塊中輸入4
 

6. 從Semiconductor Module Step Types向MainSequence插入一个semiconductor Action step。

  • Step Settings窗格的Properties選項上的General 面板的Name文字方塊中,輸入Site 0&2的Semiconductor Action
  • Step Settings窗格的Properties選項上的Precondition Expression 輸入RunState.TestSockets.MyIndex == 0 || RunState.TestSockets.MyIndex == 2
  • Step Settings窗格的Module選項上的VI Path指定為Examples\NI_SemiconductorModule\Grading\LabVIEW\2016\Code Modules\TakeMeasurement.vi
  • 在參數Semiconductor Module ContextValue中輸入Step.SemiconductorModuleContext

7. 將Step Type為Synchronization中的Rendezvous step插入到MainSequence

  • 選擇Operation作為Rendezvous 
  • 在 Rendezvous Name 或是 Reference Expression文字方塊中輸入“Sync 4 Sites”


8. 從Step Types為Semiconductor Module裡插入一個semiconductor Action step到MainSequence

  • Step Settings窗格的Properties選項上的General 面板的Name文字方塊中,輸入Site 1&3 的 Semiconductor Action
  • Step Settings窗格的Properties選項上的Precondition Expression 輸入RunState.TestSockets.MyIndex == 1 ||RunState.TestSockets.MyIndex == 3
  • Step Settings窗格的Module選項上的VI Path指定為Examples\NI_SemiconductorModule\Grading\LabVIEW\2016\Code Modules\TakeMeasurement.vi
  • 在參數Semiconductor Module ContextValue中輸入Step.SemiconductorModuleContext



9. 此時, MainSequnece將如下所示。

10. 選擇Configure » Model Options
11. 在Multiple UUT Settings中指定4Number of Test Sockets,然後按一下OK

12. 選擇 Tools » Profile Execution 來啟動 TestStand Execution Profiler
13. 在 NI TestStand 中, 選擇 Execute » Single Pass 來運行sequence。
14. 在TestStand Execution Profiler中可以觀察到測試socket 0和socket 2首先會執行Semiconductor Action for Site 0&2 step。Rendezvous step將確保所有測試sockets同時開始測試,然後socket 1 和socket 3繼續為最後的Semiconductor Action for Site 1&3 step執行測是