//
// Copyright (c) 2000-2003 by Cognex Corporation, Natick, MA USA
// All rights reserved. This material contains unpublished,
// copyrighted work, which includes confidential and proprietary
// information of Cognex.
//
// 
// Created 28-Jan-2000
//
// This camera is configured via a serial port at the back of the 
// camera.  Begin the configuration process by installing the Camera 
// Configuration Tool either from the CD provided by Basler or as a
// download from the Basler site at www.baslerweb.com.
// 
// Next, connect a serial cable between the host PC and the camera.  
// 
// Launch the Camera Config Tool application from the PC's Programs 
// menu or by double-clicking on the icon labelled "Camera Config Tool" 
// on the PC's desktop (if it is present).  
// 
// As the application starts up, it will display "Responding" in the 
// lower right hand corner if it is communicating with the camera.   
// Only two factory default settings need to be modified in order for 
// the camera to operate properly with this CCF. 
// 
// The process for selecting the appropriate settings are as follows:
//     1.) Select the Exposure Tab - set mode to Level
//     2.) Select the Timing Tab - set to Fixed Timing
//     3.) Select the Sets Tab - touch the down-arrow over User Sets
//                               followed by Apply to write the 
//                               currect configuration to the
//                               camera's non-volatile memory.
//
// Cable: Cognex cables 300-0214 & 300-0268
//
// This CCF supports variable exposure using the shutter capability 
// of the camera.  With this CCF, the camera operates in progressive 
// scan, asynchronous reset mode.
//

format name = "Basler A113P 1279x1024 ExtPixClk (rapid-reset, level-controlled, fixed-timing) CCF";
format width = 1279;
format height = 1024;

format video_interface = digital_644;
format input_width = 8;
format video_encoding = mono;

format bits_per_pel = 8;
format peltype = mono;
format taps = 1;

format ctrl1_direction = out;
format ctrl1_interface = ttl;
format ctrl1_polarity = active_low;

format ctrl2_direction = out;
format ctrl2_interface = ttl;
format ctrl2_polarity = active_high;

format pclk_direction = in;
format pclk_source = external;
format pclk_frequency = 18.0;
format pclk_interface = eia644;

format shutter_mode = pulse_width_adjust_leading;
format shutter_line = ctrl1;
format shutter_min_exposure = 0.0001396;
format shutter_max_exposure = 0.2471724;  // 2992H
format shutter_adjustment_granularity = line;
format shutter_per_field = 0;

format number_of_fields = 1;
format aoi_per_field = 1;
format x_subsampling = 1;
format interlace = 0;
format rapid_reset = 1;
format rapid_reset_min_position = 2993;
format cti_width_min = 1.0;
format cti_end_field0 = 2997.75;

format hd_direction = in;
format hd_interface = eia644;
format hd_signal = hd;
format hd_polarity = active_low;
format horiz_reference = external;
format horiz_reference_type = sync;
format hlock_position = 1434;
format htotal = 1487;
format active_start = 151;

format hsync = 1 101;
format hsync = 0 151;
format hctrl1 = 1 0;

format vd_direction = unused;
format vd_interface = eia644;
format vd_signal = vd;
format vd_polarity = active_low;
format vertical_reference = none;
format vertical_reference_type = sync;
format vlock_position = 0;
format vtotal = 4030;

format vsync = 1 2997.0;
format vsync = 0 3000.0;
format vaoi = 1 3004.0;
format vaoi = 0 4028;
format vctrl1 = 1 2994.5;
format vctrl1 = 0 2996.0;
format vstrobe = 1 2994.5;
format vstrobe = 0 3000.5;

format strobe_mode = pulse_position;

format settling_time = 0.5;

vs version = 5;
vs revision = 1;

ccf version = 1.0;
ccf build_number = 6;

ccf_checksum 0x04006823
