# Camera Link DAQ Board

The Camera Link Data Acquisition Board  (CLDAQ) is designed to allow users of the OEM version of the SS-OCT engine to collect data at a speed of up to 500 MSamples/s with 12-bit resolution. The Camera Link configuration is base with 83.33 MHz and 24 bit pixel data.

## Making Connections

* For the trigger and clock, connect using a SATA cable the laser board and the DAQ board as shown in the figure below.
* For the data signal, connect using a SATA cable the balanced receiver board and the DAQ board as shown in the figure below.
* Connect the power adapter cable into the power connectors on the laser board and the DAQ board.
* Connect the light source to the computer via USB cable.
* Connect the Camera Link DAQ to the computer via USB cable.&#x20;
* Connect the Camera Link socket on the DAQ board and your computer's frame grabber board.

![](https://3144558317-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LP1icDU_wgMhPOYQY7u%2F-LaLST2v3w2kXRnUtIVQ%2F-LaLda-Rp_TCaGY9dZ_j%2FCamerlinkDAQmakingconnections.png?alt=media\&token=b711b937-0ee3-45c5-86ea-9a4337b5775a)

## Operation

* Open OCT Host application
* Press **Acquire** to start collecting data. The **ADC State** indicator will display green.
* Press **Standby** to stop acquiring data. The **Uptime** field indicates the period of time (in seconds) that the ADC card has been collecting data.

![](https://3144558317-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LP1icDU_wgMhPOYQY7u%2F-LWSxUHtMd1zdVt865qE%2F-LWSxbkdnJ1vnUx01sFo%2FOCTHostCameraLinkDAQ.PNG?alt=media\&token=f0f0afbc-34b0-40f0-9e59-d1e202f13860)

## Firmware

The laser engine usually ships with the most updated camera link DAQ firmware and FPGA bitsream firmware. In some cases, Tech Support migh recommend updating one of both of these firmwares. The camera link DAQ firmware can be updated per these [instructions](https://axsun.gitbook.io/axsun-technologies-knowledge-base/how-tos/upgrading-board-firmware). The FPGA bitsream firmware can be updated per these [instructions](https://axsun.gitbook.io/axsun-technologies-knowledge-base/how-tos/upgrading-fpga-bitstreams).

## Camera Link FPGA

The FPGA settings, stored in flash, are loaded into the FPGA at start up.&#x20;

The 4 controls allow reading and writing FPGA settings

* **Send to Device** sends the FPGA settings  to the ADC board, writes them to the FPGA and saves them so that they are re-loaded at power up
* **Request from Device** reads the FPGA settings from the ADC board
* **Load from Disk** loads FPGA settings from a file on computer
* **Save to Disk** saves the current parameters to computer&#x20;
* **Get FPGA Registers** gets the current values from all the FPGA registers
* **Set FPGA Register** sets the value for one register. This settings is not saved to flash and is not remembered when the system is rebooted. To edit a value enter the register number in **Register** text box and value in **Value** text box then press **Set**.
* The **Acquire** and **Standby** controls in the Cameralink FPGA tab have the same function as the same controls in the Engine Control tab.&#x20;

![OCT Host Camera Link FPGA tab used to set the parameters for data collection ](https://3144558317-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LP1icDU_wgMhPOYQY7u%2F-LSkk54jCxVHUnnZwWuC%2F-LSkkQrWLfMa6NjRYzPw%2FCameraLinkFPGA.png?alt=media\&token=610d3694-8e6d-4350-a779-9021a07b92e7)

|   | Description         | Register                                                                                                                                                                                                                                                                                                                                                                 |
| - | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 0 | FW Rev Low (R/O)    | <p>\[15:8] Minor revision, </p><p>\[7:0] Development Revision (if different than 0)</p>                                                                                                                                                                                                                                                                                  |
| 1 | FW Rev High (R/O)   | <p>\[15:8] Architecture, </p><p>\[7:0] Major Revision</p>                                                                                                                                                                                                                                                                                                                |
| 2 | Control             | <p>\[11:8] Test Control, </p><p>\[7] Trigger Select, </p><p>\[3] Camera Link Power Enable, </p><p>\[2] ADC Power Enable, </p><p>\[1] FVAL Enable, </p><p>\[0] Run, </p><p>Test Control: </p><p>0000-Test Off(data routed from 12-bit ADC) </p><p>1000- Grayscale driven out Camera Link interface, </p><p>Trigger Select: 0 - sweep trigger, 1- LVAL for testing    </p> |
| 3 | A-Scan Length       | \[11:0] Active Pixel Count (default 1376)                                                                                                                                                                                                                                                                                                                                |
| 4 | Vertical Lines      | \[11:0] Active Line Count (default 512)                                                                                                                                                                                                                                                                                                                                  |
| 5 | Horizontal Blanking | <p>\[11:0] Horizontal Blanking Count (default 292) </p><p>Note: A-Scan Length + Horizontal Blanking = 1668 (100 kHz)</p>                                                                                                                                                                                                                                                 |
| 6 | Vertical Blanking   | \[7:0] Vertical Blanking Count ( default 20)                                                                                                                                                                                                                                                                                                                             |
| 7 | Gray Level Control  | <p>\[4] Complement Screen </p><p>\[3:0] grayscale Step Size (default 8)</p>                                                                                                                                                                                                                                                                                              |

## Example Setup

![Example OCT system based on the SS-OCT Engine with Camera Link DAQ](https://3144558317-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LP1icDU_wgMhPOYQY7u%2F-LSrCUwv-vsRYKiUC_sK%2F-LSrCaalAREl5CK4Ov_2%2FCameraLinkExampleSetup.png?alt=media\&token=ab8af693-5fe6-4f50-84b3-7a8663e68ce5)

DAQ settings needs to be configured as such:

* Line Lengths Pixels = 1376 (number of samples per A-scan)
* Vertical Line Count = 1 (Line scan mode)
* Horizontal Blank Count = 500 ( 1 Count corresponds to 6 ns)
* Vertical Blank Count = 0 (Line scan mode)

Matrox Solios frame grabber set up as following:

* camera type= Line scan
* Pixel clock frequency = 83.33 MHz
* Image size X = 688 (always half  the Line Length Pixel size of the DAQ)
* Image size Y = 500

![Example Matrox Intellicam Image ( 1376 x 100 ; 1376 = sample points per A scan; 100 - number of A scans)](https://3144558317-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LP1icDU_wgMhPOYQY7u%2F-LSkqFt4ZUdlEAGtAv3O%2F-LSksxyOYPOBCtPckKZw%2FExampleMatroxIntellicamImage.PNG?alt=media\&token=4abac691-46be-4fde-bc6d-b2c61b2524ed)

## Example software files

Download the NI camera file generator from [this link](ftp://ftp.ni.com/support/imaq/pc/ni-imaq/cfgenerator/) and use it to open this [dcf ](https://downloads.axsun.com/public/software/CameraLinkDAQ/AxsunLineScan.zip)file.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.axsun.com/axsun-knowledge-base/ref-manual/cameralink-daq-board.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
