From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



在 Camera File 中將控制訊號設定為 High 或 Low



主要軟體:
主要軟體版本: 3.5.1
主要軟體修正版本:
次要軟體: N/A
硬體: Image Acquisition (IMAQ)>>IMAQ - CameraLink>>PCI-1428, Image Acquisition (IMAQ)>>IMAQ - Digital>>PCI-1422, Image Acquisition (IMAQ)>>IMAQ - CameraLink>>PXI-1428, Image Acquisition (IMAQ)>>IMAQ - Digital>>PCI-1424, Image Acquisition (IMAQ)>>IMAQ - Digital>>PXI-1422, Image Acquisition (IMAQ)>>IMAQ - CameraLink>>PCIe-1429, Image Acquisition (IMAQ)>>IMAQ - CameraLink>>PCIe-1430, Image Acquisition (IMAQ)>>IMAQ - CameraLink>>PCIe-1427, Image Acquisition (IMAQ)>>IMAQ - CameraLink>>PCI-1426

問題: 我有一張 NI 的影像擷取卡(Frame Grabber),像 PCI-1422,而我要建立自己的 camera file。我想要知道如何改變影像卡上控制訊號的高低電位。我並不只是要改變訊號電位或是送出一個脈衝,而是要將其設定為 high 或 low。我該如何利用 camera file 驅動我的控制訊號為 high 或 low?

解答: 這個設定並不困難。你需要在 camera file 中建立屬性(Attribute)來處理。跟著以下步驟來使用camera file 來驅動控制訊號:
  1. 執行 Camera File Generator 並開啟你的 camera file (或產生一個新的)。
  2. 選擇 Camera Control 分頁。
  3. 按下 Add 來新增 camera Attribute 到樹狀圖中。
  4. 當 Add Attribute 視窗跳出,給這個新的 Attribute 一個名字。你可以取任何你喜歡的名字。舉例來說,你可以設定為 "Control Level" 或 "Drive Control Lines"。
  5. 選擇 List 為 Attribute Type。
  6. 在 List Value 區域按下 Add 按鈕。
  7. 加入 "High" and "Low" 的 List Values 再按下 OK
  8. 在樹狀圖中點選你剛剛加入的 "High" 這個值。在Actions區域選擇右邊的 Pulse Generation 分頁。
  9. 在 Pulse Generation 分頁按下 Add 按鈕。
  10. 當 Add Pulse Generation Action 視窗跳出,在 Pulse Setting 區域選擇你要控制的 Control Line 。然後選擇 Start High 為 Initial Polarity,並按下 OK
  11. 重複步驟 8-10,這次在樹狀圖中點選 "Low" 這個值並選擇 Start Low 為 Initial Polarity。
  12. 儲存你的 camera file。
藉由在你的 camera file 中設定這個 Attribute,你所選擇的控制訊號將會依照你所選擇設定的 Attribute 值而被驅動為 high 或 low 。你可以在Measurement and Automation Explorer(MAX) 或在程式中改變這些Attributes。

相關連結: KnowledgeBase 3X8MT3HB: IMAQ Boards that Support Routing to the Camera Control (CC) Lines
KnowledgeBase 3X90KAHB: How Can I Control the Camera Control Lines Without External Signals?

附加檔案:





報告日期: 05/11/2007
最後更新: 09/19/2007
文件偏號: 49A982HB