cameralink base 接口雙通道任意圖像數據源模擬( 二 )


Pixel Clockcameralink的時鐘,時鐘應當允許被disable,時鐘支持5-85MHz不同速率;
Taps/ Geometryhttps://www.baslerweb.com/fp-1510660945/media/downloads/documents/framegrabber_designers/AW00099004000_ace_beat_Camera_Link_Info_Frm_Grab_Designers.pdf
參考basler 的手冊說明 , 我們的simulator計劃支持下面2種格式,其它的格式在未來支持medium模式時再引入 。
1X2-1Y表示在X方向,一次發送2個像素,在Y方向 , 一次發送一行,按照逐行掃描的順序向外發送 。
1X2-1Y Geometry – 8, 10, or 12 Bit Pixel DepthThe characteristics of the 1X2-1Y tap geometry are:

  • On each cycle of the Camera Link pixel clock, the data for two pixels are transmitted via the Camera Link interface. This is commonly referred to as a "two tap" Camera Link configuration.
  • The camera will begin transmitting data from sensor line one. It will transmit the data for the first two pixels in line one on the first Camera Link pixel clock cycle, the next two pixels in line one on the second pixel clock cycle, the next two pixels in line one on the third clock cycle, and so on until the line is complete.
  • When line one is complete, transmission of line two will begin and will proceed in a similar fashion. Data transmission will continue line-by-line until all of the data for the image have been transmitted.

cameralink base 接口雙通道任意圖像數據源模擬

文章插圖

cameralink base 接口雙通道任意圖像數據源模擬

文章插圖
1X3-1Y Geometry – 8 Bit Pixel Depth
cameralink base 接口雙通道任意圖像數據源模擬

文章插圖
Trigger觸發有開始觸發、幀觸發 , 觸發類型分為立即觸發、軟件觸發、上升沿觸發、下降沿觸發、高電平觸發、低電平觸發 。
/// <summary>trigger類型</summary>
public enum CL_TRIGGER_TYPE
{
START_TRIGGER = 0,//START TRIGGER,開始觸發
FRAME_TRIGGER = 1,//Frame trigger,每來1次,觸發一次輸出
};
/// <summary>camera link觸發模式</summary>
public enum CL_TRIGGER_MODE
{
CL_SOFT_TRIGGER = (0x1 << 0),//software trigger
CL_RISING_EDGE_TRIGGER = (0x1 << 1),//rising edge trigger
CL_FALLING_EDGE_TRIGGER = (0x1 << 2),//falling edge trigger
CL_HIGH_LEVEL_TRIGGER = (0x1 << 3),//high level trigger
CL_LOW_LEVEL_TRIGGER = (0x1 << 4),//low level trigger
CL_IMMEDIATE_TRIGGER = (0x1 << 5)//immediate trigger
};//trigger mode
/// <summary>觸發信號來源</summary>
public enum CL_TRIGGER_SOURCE
{
//camera link cc interface
C0_CC1 = 0,
C0_CC2 = 0,
C0_CC3 = 0,
C0_CC4 = 0,
C1_CC1 = 0,
C1_CC2 = 0,
C1_CC3 = 0,
C1_CC4 = 0,
};
Start Trigger 開始觸發The camera can be set to accept an External Acquisition Start Trigger (ExASTrig) input signal, which is used as an enabler for the frame start trigger. When the camera receives a proper ExASTrig signal, its acquisition status will change from "waiting for acquisition start trigger" to "waiting for frame start trigger". When the ExASTrig signal is applied to the camera via the Camera Link interface, it is an LVDS signal as specified for RS-644. The camera can be configured to accept an ExASTrig signal on the CC inputs in the Camera Link interface:
Frame Trigger觸發Frame Trigger觸發,開啟一幀任務;
The camera can be set to accept an External Frame Start Trigger (ExFSTrig) input signal to control exposure and readout of the camera’s sensor. When the ExFSTrig signal is applied to the camera via the Camera Link interface, it is an LVDS signal as specified for RS-644. By default, the camera will accept an ExFSTrig signal on the CC1 input in the Camera Link interface (pins 9 and 22 of the MDR connector) as specified in the Camera Link standard. The camera can also be configured to accept the ExFSTrig signal on these other CC inputs:
輸出模式
  • Wrapping 循環發送一段數據,中間無間隔 , 需要手動停止;
  • Continuous連續向外發送數據 , 軟件必須不斷更新數據并寫入到板載緩存,需要手動停止;
  • Finite 向外發送有限點數,發送完成自動停止
驅動安裝在運行范例程序之前需要先安裝驅動,目前驅動支持WIN7,WIN10/11 , Linux版本請聯系開發人員 。
  • 安裝SeeSharpTools_V1.5.0_Win.msi,雙擊安裝;
  • 安裝PCIe2000Installer_V1.0.0.msi,雙擊安裝;
安裝完成后 , 可以打開windows設備管理器,如果可以看到PCIe2000 2 base cameralink simulator,且無黃色感嘆號,表明驅動正常安裝,且已經正確識別 。
cameralink base 接口雙通道任意圖像數據源模擬

推薦閱讀