Quickstart_guide_VisionCamPS_SM2_D1024_80_2008_08_26

10
Vision Cam PS / SM2-D1024-80 Quickstart Guide Version 1.0 (August 2008) HOW003 08/2008 V1.0 Strampe Systemelektronik GmbH & Co KG and Photonfocus AG reserve the right to make changes, without notice to the VisionCam PS / SM2-D1024-80 specifications.

description

http://www.aprolink.jp/doc/dldata/support/PH/SM2/English/Quickstart_guide_VisionCamPS_SM2_D1024_80_2008_08_26.pdf

Transcript of Quickstart_guide_VisionCamPS_SM2_D1024_80_2008_08_26

Vision Cam PS / SM2-D1024-80

Quickstart Guide

Version 1.0

(August 2008)

HOW003 08/2008 V1.0

Strampe Systemelektronik GmbH & Co KG and Photonfocus AG reserve the right to make changes, without notice to the VisionCam PS / SM2-D1024-80 specifications.

Vision Cam PS / SM2-D1024-80 1 Introduction

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 2 von 10

Contents 1. Introduction ......................................................................................3

2. Related Documents..........................................................................3

3. Hardware Overview..........................................................................3

4. System Configuration......................................................................3

4.1. Application Development .......................................................................... 3 4.2. Operation Mode.......................................................................................... 3

5. Software Development ....................................................................3

5.1. Development Environment........................................................................ 3 5.2. Libraries and C-API .................................................................................... 3 5.3. Example Programs..................................................................................... 3

6. Revision History...............................................................................3

Vision Cam PS / SM2-D1024-80 1 Introduction

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 3 von 10

1. Introduction The VisionCam PS / SM2-D1024-80 is an intelligent camera especially designed for machine vision applications. The camera consists of the CMOS camera head and the embedded vision computer. These two main components are developed by Photonfocus AG (camera head) and Strampe Systemelektronik (vision computer). This document is a guideline for programming and understanding the VisionCam PS / SM2-D1024-80. Furthermore the document gives an overview to related documents and information about the hardware. 2. Related Documents The following table summarizes a list of documents which are related to the VisionCam PS / SM2-D1024-80 hardware. Each manual is also available as compiled html file (*.chm). Document ID Description SM2-D1024-80 / VisionCam PS Manual

MAN036 User manual for the smart camera. Camera functionality, Parameter description, Graphical User Interface, mechanical and optical considerations

SM2-D1024-80 / VisionCam PS Quickstart Guide

HOW003 Quickstart Guide for smart camera. This document!

SM2-D1024-80 / VisionCam PS Tutorial

TUT001 Tutorial for smart camera.

VIB_Lib SW Library for the embedded vision computer. Hardware support, image acquisition, data transfer

GBit_Lib SW Library for the Gigabit Ethernet support. ftp-server, web-server, socket interface

GUI_Lib SW Library for a Graphical User Interface. visualization, dialogs

PF_Lib SW Library for controlling Photonfocus camera features.

Vision Cam PS / SM2-D1024-80 3 Hardware Overview

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 4 von 10

3. Hardware Overview The three main components in the block diagram are the CMOS camera, the FPGA and the digital signal processor (DSP). These components are especially designed to transfer high data rates and to communicate with each other. The used high speed communication protocol is called Sun-System-Protocol (SSP). The CMOS camera module is a camera module of the MV-D1024E-series from Photonfocus, with all its included features like 1024x1024 pixel camera resolution, global shutter, shading correction, LinLog® technology. The image processing computer (FPGA / DSP / SDRAM / Flash) is a processing module based on VisionBox technology from Strampe Systemelektronik. The function of this module is the handling of the image data, the image processing and performing the communication between the components and peripheral devices. The digital signal processor has a fast internal memory of 1024 KB and runs with a maximum frequency of 1000 MHz. There are up to 256 MB external SDRAM, storing image data and program data. The RAM has a maximum data rate of 1 GB/s.

CMOSCamera

Flash EPROM4 MB

SDRAM 256 MB

FPGA

3x opto In/Out 1x RS232 2xLEDs

RS422 Transceiver

(3x In / 3x Out)

Ethernet 1000 Mbit/s

µSD Card

C6415 DSP1000 MHz

PCI EMIF A

EMIF

B

24bit 40MHz

Each VisionCamPS / SM2-D1024-80 features an internal flash memory of 4 MBytes and a µSD card with a default size of 2GB. The internal flash memory is used to store the bootloader, configuration files and the firmware. The µSD card is used to store image data, the executable program and other user data. The communication with external devices is realized with a 1000 Mbit/s Ethernet interface. In this way it is possible to perform high data rates. For other communication purposes, the opto-coupled inputs and outputs, the RS422 transceivers and the serial port are helpful.

Vision Cam PS / SM2-D1024-80 4 System Configuration

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 5 von 10

4. System Configuration 4.1. Application Development The development of applications is done with the Code Composer Studio (CCS) from Texas Instruments (TI). This development environment runs on a PC and is a full fledged compiler and debugger. A scalable real-time kernel, called DSP/BIOS is integrated with the CCS. This operating system provides preemptive multi-threading and hardware abstraction. Programming is done in C or C++ programming language. Executable files (*.out) and libraries (*.lib) can be created. The essential functions from Photonfocus, Strampe Systemelektronik and TI are summarized in libraries, which are linked to the prepared application. Following the compilation the *.out file can be copied to the µSD card and the VisionCam PS / SM2-D1024-80 is ready to run after power on. It is also possible to copy this program via Ethernet to de µSD card.

PC User Interface

Digital I/O

RS 232

SD Card

Ethernet

PC(DevelopmentEnvironment)

Emulator(Debugging

Box)

VisionBox

A much easier and faster way to develop an application is using a debugging box called emulator. It is a connection from the development PC via USB (alternative: Parallel Port / Card Bus) directly to the DSP in the VisionCam PS / SM2-D1024-80. By pressing one key the application is compiled, transferred to the VisionCam PS / SM2-D1024-80 and ready to run. It is also possible to set breakpoints, watch dogs, edit variables and get a view of the memory used by the application.

Vision Cam PS / SM2-D1024-80 4 System Configuration

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 6 von 10

4.2. Operation Mode In the operation mode the PC is normally required to setup the camera parameter, for the parameterization of your application or for reporting statistics to a database. The standard user interface is provided by a web browser and a java applet. In this way it is possible to control your application with keyboard or mouse.

PC User Interface

Digital I/O

RS 232

SD Card

EthernetVisionBox

Cam

era

Hea

d

It is also possible to create stand alone applications without any PC hardware. In this case the communication is done with a SPC of the inspection system.

Vision Cam PS / SM2-D1024-80 5 Software Development

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 7 von 10

5. Software Development 5.1. Development Environment The following screen shot shows the development environment Code Composer Studio (CCS) from Texas Instruments (TI). On the left hand side of the screen is the project view window, on the right hand side are the document windows and at the bottom are several debugger windows active.

Before using the Code Composer Studio (CCS), you have to setup the emulator configuration. Start the setup tool and clear the existing configuration. Double click in the available board window on bhemu6400_11 (Blackhawk) or sdgo6400_11 / sdgo6400usb_11 (Spectrum Digital) to change the board properties. With a parallel port emulator, the I/O Port has to be 0x378 with USB 0x0 or 0x510. The processor configuration has to be one TMS320C64xx CPU. No startup GEL file is needed. Power on the VisionCam PS / SM2-D1024-80 and start the CCS. Now it will connect to the DSP.

Vision Cam PS / SM2-D1024-80 5 Software Development

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 8 von 10

5.2. Libraries and C-API Several libraries for the VisionCam PS / SM2-D1024-80 are provided. All functions are C-callable.

Texas Instruments

PhotonFocus Strampe C-API

RTS.lib CSL.lib BIOS.lib

GUI.lib

GBit.lib

PF.Lib

VIB.lib HW-Support

CameraLink

3rd Party

C6000 compatible libraries

The Photonfocus and Strampe libraries offer the access to the interfaces of the VisionCam PS / SM2-D1024-80. Most libraries are supported as debug and release versions. Some libraries are available as DSP/BIOS version. The following table shows the available libraries. For a complete documentation please have a look to the library references.

Library Short Description

BIO

S

Debug

Release

pflib.lib Controlling the camera features x VIB_PSC.lib Hardware support x x x GBit_PSC.lib Ethernet support x x x GUI_c64x.lib Graphical User Interface (BMP image support) x x PNG_c64.lib PNG image support x JPEG_c64x.lib JPEG image support x ZLib_c64x.lib Z-compression support x x The Run Time Support Library (rts6400.lib) and the Chip Support Library (csl6414.lib) from TI, provides the ANSI-C-functions like malloc() and

Vision Cam PS / SM2-D1024-80 5 Software Development

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 9 von 10

printf() and a C-language interface for configuring and controlling on-chip peripherals like DMA. These libraries are also available as source code. Furthermore TI supports some processor optimized functions for image processing and signal processing (dsp64x.lib and img64x.lib). Many other C6000 compatible image processing libraries are also available and compilable for the VisionCam PS / SM2-D1024-80. For example:

- Halcon Library - Instant Vision Library - OCR-Lib / Template Matching Lib - OpenCV Library

5.3. Example Programs Various example programs are supported with the VisionCam PS / SM2-D1024-80. All programs are based on a complex framework library which supports the camera API and the user interface. The framework library is available in source code and the documentation is a compiled html-file. With the supported tutorial and the framework is the programmer able to setup first applications in a rapid way.

The Basic example project contains of the following components: • Example: Some projects structured as a tutorial. The user

learns how to program the camera and integrate algorithms in a simple way.

• Framework: Contains a project to compile the framework library.

• prj_sdk: Contains the basic project and the framework library as dependent project.

• prj_imglib: Contains a demonstration using the image library from Texas Instruments.

• prj_halcon: Contains a Halcon demonstration project. • src / include: Contains the source code and header files

from the framework. • doc: Contains the html help file for the SDK project

Vision Cam PS / SM2-D1024-80 6 Revision History

Strampe Systemelektronik GmbH & Co. KG, http://www.strampe.de

Photonfocus AG, http://www.photonfocus.com Seite 10 von 10

The following image shows a screenshot of the user interface for the VisionCam PS / SM2-D1024-80 smart CMOS camera.

6. Revision History Revision Date Changes

0.1 May-2008 preliminary version 1.0 August-2008 Document release