ICP DAS USA IM-100 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

Ir para a página of

Bom manual de uso

As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto ICP DAS USA IM-100. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoICP DAS USA IM-100 vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.

O que é a instrução?

A palavra vem do latim "Instructio" ou instruir. Portanto, no manual ICP DAS USA IM-100 você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.

Infelizmente, pequenos usuários tomam o tempo para ler o manual ICP DAS USA IM-100, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.

Então, o que deve conter o manual perfeito?

Primeiro, o manual ICP DAS USA IM-100 deve conte:
- dados técnicos do dispositivo ICP DAS USA IM-100
- nome do fabricante e ano de fabricação do dispositivo ICP DAS USA IM-100
- instruções de utilização, regulação e manutenção do dispositivo ICP DAS USA IM-100
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes

Por que você não ler manuais?

Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque ICP DAS USA IM-100 não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos ICP DAS USA IM-100 e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço ICP DAS USA na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas ICP DAS USA IM-100, como para a versão papel.

Por que ler manuais?

Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo ICP DAS USA IM-100, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.

Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual ICP DAS USA IM-100. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação

Índice do manual

  • Página 1

    IEEE 1394 Camera Series (IM-30/IM-100) User’s Manual Manual V ersion: 2.1 Revision Date: April 30, 2008 ICP DAS CO., L TD. www .icp das.com[...]

  • Página 2

    T able of Content s 1 Introduction .................................................................................. 4 1.1 Feat ures ......................................................................................... 4 1.2 Applic ations .................................................................................... 4 1.3 System R equire[...]

  • Página 3

    4.2 Component De scription ................................................................ 35 5 EzVIEW _Fly Utility ..................................................................... 42 5.1 Overvi ew ...................................................................................... 42 5.2 Configur ation .....................................[...]

  • Página 4

    1 Introduction MA VIS is a new and exciting vision product lin e from ICP DAS, designed specifically for industry machine vision applications. The MA VIS IM series is designed to meet or exceed IEEE 1394 standards, while of fering industry leading VGA resolution, high-performance frame rates, and a competitive price point! The Mavis IM30 offers 30f[...]

  • Página 5

    1.4 Function Descriptions In this section, we will outline the MA VIS IM-30/IM-100 camera control functions. T o ensure proper implement ation, please carefully review the, limitation parameters and formula calculations, listed below . 1.4.1 AOI (Area of Interest) The AOI (Area of Interest) function allows users t o select an area of inter est, for[...]

  • Página 6

    current settings is 5. Formula 1: Max. Frames/s = 1 / (((240 + 2) x 15.28us) + 15.28us) Max. Frames/s = 269.2 Formula 2: Max. Frames/s = 1 / (5 x 125us) Max. Frames/s = 1600 Formula 3: Max. Frames/s = 1 / (1000 us + 28us) Max. Frames/s = 972.76 By using the calculations above, the AOI for this particular scenario can be calculated at 269 frames per[...]

  • Página 7

    1.4.3 Mirror Image The mirror image feature is only available in the MA VIS IM -100 camera. When you enable mirror image mode, the camera will reflect the image’s vertical axis, before data is transmitted out of the camera. In factory mode, the mirror image is disabled and the order of transmission for the pixels in each line is pixel 1, pixel 2,[...]

  • Página 8

    1.4.4 Gain and Brightness The Gain and Brightness adjustment functions are accomplished by manipulation of the sensor ’ s digit al output signal. Please refer in Figure 1-4; when the gain is set to 0, the full 10bit output range of the camera’s CMOS sensor will mapped directly to the 8bit output range of the camera. In this situation, a gray va[...]

  • Página 9

    Va l u e 0 28 43 85 128 170 213 255 dB 0dB 2.5dB 3.5dB 6dB 8dB 9.5dB 10.9dB 12dB T able 1-1 Gain value settings Please refer to “Figure 1-5”; Which illustrates the ef fect of setting the brightness higher than the default value of 725. It should be noted that this setting moves the response curve to the left; therefor e increasing the 8bit valu[...]

  • Página 10

    1.4.5 Lookup T able MA VIS IM-3 0/IM-100 cameras have a sensor that reads pixel value at a 10bit depth; however , the camera outputs pixel values at an 8bit depth. When set for 8bit output, the camera normally uses an inter nal process to convert the 10bit pixel values from the sensor to the 8bit values transmitted out of the camera. When making th[...]

  • Página 11

    Figure 1-7 is for a lookup table where the values are arranged so that the camera output increases quickly as the sensor output moves from 0 through 51 1 and increases gradually as the sensor output moves from 512 through 1023. Figure 1-7: LUT with V alues Mapped for Higher Camera Output at Low Sensor Readin gs z Upload a Lookup T able n LUT enable[...]

  • Página 12

    1.4.6 Shutter (Exposure) The camera exposure time is related with shutter speed or camera frame rate. MA VIS IM-30/IM-100 allowed to set shutter speed range from 20us to 81900us. While user set the exposure time (shutter speed) longer then frame acquisition speed then camera frame rate will be reduced. For example: if user set the frame rate in 30f[...]

  • Página 13

    z IM-30/IM-100 offers 2 input port s; designated as Input Port 0 nd Input Port 1. Both ports are TTL level. The input port s are accessed typical circuit that you can use to input a 1.4.7 Input/Output Input Port s The MA VIS a via the 10-pin circular connectors on the back of the camera . Please refer T able 2-1 for input port pin assignments. For [...]

  • Página 14

    24mA. An output voltage between 4.2 and 5.0 VDC indicates a logical 1. output voltage (i.e., 4.2VDC) will be present when rcing the maximum allowed output current of 24mA. an example of a typical circuit that you can use to monitor an output port with a LED or an Opto-coupler . Note that current in the circuit is The minimum high level the driver i[...]

  • Página 15

    1.4.8 T rigger Mode is also u sed to enable the Ex-T rig exposure st art control; enabl ing users to select rising or falling ed ge triggering and to assign a physical input port to receive the Ex-T rig signal. The Ex-T rig signal can be periodic or non-periodic. When t he camera is operating under control of an Ex-T rig signal, the period of the E[...]

  • Página 16

    Level Controlled Exposure Mode led mode is selected, the length of the exposure is determined by Ex-T rig signal alone. If the camera is set for rising edge When level control triggering, exposure begins when the Ex-T rig signal rises and continues until Ex-T rig signal falls. If the cam era is set for falling edge triggerin g, exposure begins when[...]

  • Página 17

    1.4.9 nd definitions. The strobe delay is determined by a combination of two values. The first is the setting in the Delay V alue and the range from 0 to 4095 . The second is the S trobe Delay T i me Base which has a default value of 1/1024 ms. S trobe se) For example: If Delay V alue of S trobe 0 is set to 120, then S trobe 0 delay will be 120/102[...]

  • Página 18

    1.5 Spectral Response Figure 1-1 1: MA VIS IM30/IM100 Ca mera S pectral Response The camera spectral response curv e excludes Lens and lighting source characteristics. - 18 -[...]

  • Página 19

    iming The time between the st art of exposure and the rise of the Integrate Enabled (Int-En) signal will be less than 10 nanoseconds. The time between the end of exposure and the fall of Int-En signal will also b e less than 10 nanoseconds. This is very good performance, and is due to the design of the camera output port circuitry . 1.6 Integrate E[...]

  • Página 20

    1.7 Benchmarks Due the platform and 1394 Host controller ba ndwidth performance, we have liste d N BOX some benchmark information for your reference. Benchmark test results Platform T ype Industrial PC Plat form Consumer PC VISIO Platform S pec. ROBO-8712E SBC Intel Pentium4 2.4GHz 512MB DDRAM 32-bit, 33MHz PCI Chipset: Intel 845GV 32-bit OS: Windo[...]

  • Página 21

    2 0 ra Item IM-3 Hardware Reference 2.1 MA VIS IM-30/IM-10 2.1.1 Came Specification 0 IM-100 Image sensor 1/2” CMOS S 3, Pi ensor Micron MT9V 40 xel size: 9.9um x 9.9um Vide o output p 0(V) ixels 640(H) x 48 Gain control 0 ~ 1 nic 2dB setting via commu ation command Power supply +1 via 2VDC normal (Supply 1394 cable) Power consum 12 ption Max. ~ [...]

  • Página 22

    2.1.2 Camera Interface z IEEE 1394 z GPIO Pin Name Pin Name 1 +12VDC 1 Output 0 2 GND 2 Input 0 3 TPB- 3 Output 1 4 TPB+ Input 1 4 5 TP A- 5 Output 2 6 TP A+ 6 NC 7 Output 3 8 NC 9 GND Camera rear vie w 10 NC T able 2-1 Camera In 2.1.3 e Content mera with ive terface Connecto r Pin Assignment s St andard Packag s Ca Lens-cap Dr r CD & Installat[...]

  • Página 23

    2.2 T o incre tem’s working performance and reliabilit y , ICP DAS su three optiona sories. 2.2.1 1394 Dual-port Card: IOI-4601-21 The IOI-4601-21 is dual IEEE 1394 host controller PCI in rface Cap able of supporting simult aneous dual ports dat smission at rates of 400Mbp s. Host Bus 32-bit PCI local bus complies with PCI 2.1 2.2 spec t ion Use [...]

  • Página 24

    2.2.3 1394 Repeater: 1394R3B extension need. The Right Side Vide 1394R3B repeater offer 1port to 2 port s IEEE 1394 signal repeat and cable 1394R3B allow convert 1394-1995 to 1394a. T op Side View Left Side V iew Chip PHY : T I. TSB41AB3 1394 Bus T ransfer Rate 10 0 / 200 / 400 Mbps Device Interface A V PHY 400-Mbps, 2-port, 3.3 Power Input Range D[...]

  • Página 25

    3 In MA V perat ok system platforms. This also inst allation gui camera correctly and safely . Please read through this inst and follow the installation ste ps of your specified system platform. CAUTION st allation Guide IS IM-30/IM100 IEEE 1394 cameras support o ion in IPC, PC and Notebo de includes information on how to use this allation guide ca[...]

  • Página 26

    (5) Once perfectly aligned with an empty slot, press the card firmly but (6) (7) Using 1394 cable to connect MA VI S IM-30/IM-100 1394 camera to acquisition test please refer to the “ EZView Utility”. carefully in to the connector . Anchor the board by replacing the screw . 1394 card and GPIO cable wiring if necessary . For image (8) T urn on t[...]

  • Página 27

    3.1.2 Notebook PC / PCMCIA Socket z If your notebook PC has an iLink/S400 interface port then your notebook PC has a built-in 1394 host controller . So please follow the step for installation. (1) Please prep are one IEEE 1394 kman type DC power adapter first. s repeater , one 4-pin to 6-pin IEEE 1394 cable, one 6-pin to 6-pin IEEE 1394 cable and o[...]

  • Página 28

    a card, IEEE 1394 repeater , ype DC z If your notebook PC does not have 1394 interface port, then please plug your 1394 Card Bus to PCMCIA socket, and follow the step s for installation. (1) Please prepare one IEEE 1394 PCMCIA two 6-pin to 6-pin IEEE 1394 cable and one walkman t power adapter first. (2) Plug IEEE 1394 PCMCIA card to Notebook PCMCIA[...]

  • Página 29

    3.2 Driv Do not plug driver installation has been completed. Please refer to t allation steps for various programmin 3.2.1 For V i 1. Insert the MA D-ROM drive. 2. The MA VIS Support CD will start to prepare driver inst allation as below . er Inst allation in any MA VIS IM-30/I M-100 cameras before he following inst g environment specific installat[...]

  • Página 30

    4. Plea enter user name and company name, then click “Next” button. se 5. The MA VIS series default path located at C:MA VIS, and you can click “Change..” button to change driver installation p ath, otherwise please click “Next” button for continue driver installation. - 30 -[...]

  • Página 31

    6. Please click the “Inst all” button 7. Driver installing - 31 -[...]

  • Página 32

    8. When driver install is co mpleted, please click the “Finish” butt on and rest art your system. 9. Af ter system re-boot, please plug in the MA VIS IM-30/IM-100 cameras and go to “Device Manager” and make sure you see the “Generic IEEE-1394 digital camera” in the list of “ICP DAS MA VIS”. 10. If your system had install other v end[...]

  • Página 33

    3.2.2 For LabVIEW Users r to use La If you prefe bVIEW from NI (National Instruments) for your system development, then we’ll suggest you to use NI-IMAQ directly . The MA VIS IM-30/IM-1 00 series are fully comp atible with NI-IMAQ-1394. Please just select “NI-IMAQ IEEE 1394 IIDC Digital Camera” driver for your installation and DO NOT inst all[...]

  • Página 34

    4 EZ Once in De estab trol the MAVIS IM-30/IM-100 camera series to verify correct means to setup, configur Note : EZView is only available for Windows 2000/X P with a recommended screen resolution higher than 1024 x 768. 4.1 Overview V iew Utility hardware installation is complete, ensure that cameras are configured correct ly vice Manager before r[...]

  • Página 35

    4.2 Component Description  File The File menu offers th e “Enable T est Image”, “Lookup T able”, S trobe Control”, “S trobe Time Base”, “External T rigger” functions and “About EZView” for version control information as below . T est Image M ode - 35 -[...]

  • Página 36

    Lookup T able erface window for user to ‘Download’ the LUT ation of MAVIS. Meanwhile, user can enable the ‘Enable LUT’ function for The EzView utility has offer int inform ‘Upload’ custom LUT information to MAVIS operation. S trobe Control The EzView utility of fer interface window for S trobe Control parameter setting nd those paramete[...]

  • Página 37

    S trobe Time Base n T ime Base to 50, then the strobe light up duration time will be: 600 x (50/1024ms) = 24.4ms. This is for change strobe control Duration T ime Base. The Duration T ime Base range from 1 ~ 85 and the time base denominator is 1/1024ms. For example, when S trobe Duration value is 600 and set the Duratio External Trigger “External[...]

  • Página 38

    “External T rigger” has of fer two hardware trigger control by “Input 0” and “Input 1” and “Software” trigger control. All “External T rigger” function parameters only effective when “External T rigger” function is set ting to “Active”. About EZV iew - 38 -[...]

  • Página 39

     T ree Browser The Tree Browser window lists the 1394 Host controller p MAVIS 1394 cameras are available at the local computer. orts and how many  Display Window The display window displays full and specifically requested AOI size images and image effects. - 39 -[...]

  • Página 40

     T ool Icons 394 cameras available at the local computer . Camera Scan Click the Camera Scan icon to list the MA VIS 1 Measure FPS Click the Measure FPS icon and a pop- up will show the result of the frames per second test Snap Shot Click the SnapShot icon. A single image will appear i n the Display Window V ideo Captu re k the Video Capture ico[...]

  • Página 41

     Control bar Select the Frame Rate acquisition speed for default demonstration. Selection of the Frame using the MA VIS IM-100. The EZView utility of fers 30f ps Rate control bar is only available while Brightness the Brightness slider and drag the curso r to change its value. Values range from Click and hold the left mouse button on 0-1023. Shu[...]

  • Página 42

    5 EzVIEW_Fly Utility The EzVIEW_Fly is a friendly utility designe customer. The EzVIEW_Fly utility now support ET-M8194H (driver version 1.0) and FRNET configure, test, and debug about MAVIS cam by external hardware trigger in EzVIEW_Fly utility. This chapter outlines how to establish a vision w setting the correct functions and parameters fo r I t[...]

  • Página 43

    5.2 Configuration re and I/O Setting. The Configuration included Feature Setting, Advanced Featu  Feature Setting The Main Feature Setting window included features setting for MAVIS Camera and Motion Module products. Please refer 5.2.1 and 5.2.2 for detail inform ation.  Advanced Features The Advanced Feature included Test Image and Lookup Ta[...]

  • Página 44

    5.2.1 Feature Setting of MA VIS Camera r Setting function and user can refer the operation as Chapter 4 EZView utility. Meanwhile user must to click ‘Apply’ butt on for save your setting into the MAVIS. The MAVIS Camera included MAVIS Main Feature, ROI Setting and Trigge In this page the ‘Enable External Trigger’ function of Trigger Setting[...]

  • Página 45

    5.2.2 Feature Setting of Motion Module The Motion Module now supported ET-M8194H and PISO-PS400, and each time user only can choose one product model for motion control feature setting an d single axis operation. EzVIEW_Fly utility required ET -M8194H or PISO-PS400 for hardware trigger pulse operation. For hard ware installatio n, please follow the[...]

  • Página 46

    C Acceleration Mode T- C u r v e 、 S-Curve 、 Constant D Limitation +/- Logi c High 、 Low E Parameters S t art V elocity 、 Acceleratio n V e locity 、 Driving Ve l o c i t y 、 Output Pulse F Operation Command Servo On/Off 、 Home* 、 Forward 、 Reverse 、 Reset 、 St o p Read S tatus Logical Position 、 Encoder Position 、 Driving [...]

  • Página 47

    ¾ When choose PISO-PS400 This is only rk in PISO er 3.0 and operation fo Please click ‘Initial’ button for PISO-PS400 card initialization. r AXIS_X only. wo -PS400 driv 5.3 Help – About EzVIEW_Fly 5.4 T ool Icons Camera Scan Click the Camera Scan i con to list the MA VIS 1394 cameras available at the local computer . Snap Shot Click the Snap[...]

  • Página 48

    5.4.1 ri T gger Setting  MA VIS External T ri gger Setting The check box must enable for trigger capture. Selected the T rigger Mo de and user can refer 1.4.8 for external trigger mode det ail informa tion. Selected the T rigger Input port and ensure the wiring co rrectly . Strobe Setti ng Selected output port and ensure the wiring correctly . S[...]

  • Página 49

    Selected the active polarity mode and user can refer 1.4.9 for S trobe Control polarity definition. Setting the delay value in necessary and please refer 1.4.9.for the formula of delay time. Setting the strobe duration and time base and please refer 1.4.9 for the formula of duration time.  Motion Virtual T rigger Enable the check box while use d[...]

  • Página 50

    6 Function Library This chapter describes the API for MA VIS IM-30/IM these functions to develop application progr ams und 6.0 , Boland C++ Builder 6.0, and C#.NET 2003. The MA VIS DLL file (IMCamera.dll) is common to u c, Boland C++ Builder and C#.NET development language. For Vis oland C++ Builder , please just follow standard Synt ax description[...]

  • Página 51

    6.1 List of Functions Category Section Function IMC_Camera_Scan IMC_Camera_Init Camera Management 5.2 IMC_Camera_Close IMC_ImageAcquisition_Start IMC_Image_A cquire IMC_ImageAcquisition_Stop IMC_AcquisitionFrame_Copy IMC_AcquisitionFrame_Save IMC_Live_ Acquire Camera Acquisition 5.3 IMC_LiveAcquisition_Stop IMC_FrameRate_Set IMC_Shutter_Get IMC_Shu[...]

  • Página 52

    6.2 Programming Flowc z al z Camera close z Camera parameters setting z Ch ing z S hart Camera scan & initi eck camera sett napshot IMC_Camera_Scan IMC_Camera_Init IMC_Camera_Close IMC_Camera_Scan IMC_Camera_Init IMC_FrameRate_Set IMC_Shutter_Set IMC_Gain_Set IMC_Brightness_Set IMC_Camera_Scan IMC_Camera_Init IMC_Shutter_Get IMC_Gain_Get IMC_Br[...]

  • Página 53

    z Live continue images capture z Save single image to BMP file z Copy image to memory buffer z External trigger for image acquisition z Camera digital output se tting IMC_Camera_Scan IMC_Camera_Init IMC_ImageAcquisition_S tart IMC_Live_Acquire IMC_LiveAcquisition_S top IMC_Camera_Scan IMC_Camera_Init IMC_AcquisitionFrame_Save IMC_ImageAcquisition_S[...]

  • Página 54

    z S trobe contr ol IMC_Camera_Scan IMC_Camera_Init IMC_S trobeControl_SetConfiguration z IMC_S trobeControl_ReadConfiguration Check camera digital in put z Camera AOI setting z Camera test image IMC_S trobeT imeBase_SetDurationT ime IMC_S trobeT imeBase_ReadConfiguration IMC_Camera_Scan IMC_Camera_Init IMC_InputPort_Read IMC_InputPort_ReadAll IMC_C[...]

  • Página 55

    z Read camera Lookup T able z Modify camera Lookup T able IMC_Camera_Scan IMC_Camera_Init IMC_LUT_Read IMC_Camera_Scan IMC_Camera_Init IMC_LUT_SetS tatus IMC_LUT_Write - 55 -[...]

  • Página 56

    6.3 Camera Management IMC_Camera_Scan Synt Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_Camera_Scan ( PIMC _DEVICE_DA T A pCamara_List); Visual Basic 6.0 IMC_Camera_Scan (pCamera_List As IMC_DEVICE_DA T A) As Integer C#.NET 2003 Mavis.IMC_Camera_Scan(out IMC_DEVICE_DATA pCamera_List); Description: This function scans all available MA VIS came[...]

  • Página 57

    IMC_Camera_Init Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: IMC_Camera_Init ( int camera_idx, HANDLE* pHandle); As Integer n initializes the MA VIS cameras and returns a handle for the other is required to enable and st art one MA VIS camera. The based on the IMC_DEVICE_DA T A structure returned by ded by other functions. ALID_IDX The index i[...]

  • Página 58

    IMC_Camera_Close meter of IMC_Camera_Init(). Return: RROR_SUCCESSFUL Successfully EVICE_UNINIT The specific camera has not been initialized invalid RRECT ERROR_CAMERA_CREA TE te the camera structure Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_Camera_Close ( HANDLE Camera_Handle); Visual Basic 6.0 IMC_Camera_Close (ByV al Camera_Hand[...]

  • Página 59

    6.4 Camera tart Syn oland C++ Builder 6.0: .0 s Long) As Integer 3 M ar t( IntPtr Camera_Handle ); start s the Image Acquisition. The camera needs be init ialized with gotten from the ‘ pHandle ’ p arameter of IMC_Camera_Init(). . ERROR_1394FUNC_INCORRECT The error caused by port incorrect operation. ERROR_ACQUIMAGE_ST ART Fail to st art the im[...]

  • Página 60

    IMC_ImageAcquire Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: IMC_ImageAcquir e ( HANDLE Camera_Handle, PVOID* ppData ); ong) As Integ er n sends the request to camera and receives the frame package when the The IMC_ImageAcquisition_S tart () should be called before The handle for MA VIS camera, use the handle gotten from the short Visual Basi[...]

  • Página 61

    IMC_ImageAcquisition_S top after calling this function. eturn: UCCESSFUL Successfully E andle is NULL. en initialized. ECT rt incorrect operation. Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_ImageAcquisition_S t op ( HANDLE Camera_Handle); Visual Basic 6.0 IMC_ImageAcquisition_S top (ByV al Ca mera_Handle As Long) As Integer C#.NET [...]

  • Página 62

    IMC_AcquisitionFrame_Copy OID pData ); IM a As Any) As Mavis.IMC_AcquisitionFrame_Copy( IntPtr Camera_Handle, IntPtr pData); his function is help ful to store the cquisition frame. Camera_Handle le gotten from the ‘ pHandle ’ p arameter of IMC_Camera_Init(). The pointer to the buf fer that acquisition frame will be co pied initialized. ERROR_IN[...]

  • Página 63

    IMC_AcquisitionFrame_Save Synt ax: er 6.0: HANDLE Camera_Handle, LPCTSTR As Integer string strFileName); BMP format is support. Th e camera needs be initialized with C_Camera_Init(). Camera_Handle le gotten from the strFileName tring saves the full path-name of t arget image. s not been initialized. ERROR_1394FUNC_INCORRECT The error ca used by por[...]

  • Página 64

    IMC_Live_Acquire Vis Live_Acquir e ( HANDLE Camera_Handle, void ( __stdcall r)(void* pFrame) ); Vis r e (ByV al Camera_Handle As Long, ByV al callbackAddr As Long) As C#.N _Acquire( IntPtr Camera_Handle, Callback cbf ); simplify the programming for continuous Image-Acquisition. he IMC_ImageAcquisition_S tart () should be called before calling this [...]

  • Página 65

    Return: UL Successfully ERROR_CAMERA_CREA TE The Camera_Handle is NULL. EVICE_UNINIT The specific camera has not been initialized. ERROR_EVENT_CREA ERROR_THREAD_CREA e the thread ERROR_SUCCESSF ERROR_D ERROR_INV ALID_CAME RA The handle is invalid. ERROR_ACQUISITION_ BUSY The camera is acquiring image TE Fail to create the associated event TE Fail t[...]

  • Página 66

    IMC_LiveAcquisition_S top Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_LiveAcquisition_S _Handle); top ( HANDLE Camera IMC_LiveAcquisition_S top (ByV al Ca mera_Handle As Long) As Integer C#.NET 2003 Mavis.IMC_LiveAcquisition_Stop( IntPtr Camera_Handle ); Description: This function ends the thread created by IMC_Live_Acquire() and th[...]

  • Página 67

    6.5 Camera Synt short IM ALSE); isual Basic 6.0 IMC_FrameRate_Set (ByV al Camera_Handle As Long, ByV al FrameRate As Long, al bMirr o r As Boolean) As Integer eRate_Set( IntPtr Ca mera_Handle, ulong FrameRate, bool bMirror ); Description: his function set s the Frame Rate for MA VIS cameras. The camera needs to be with IMC_Camera_Init(). ndle fo th[...]

  • Página 68

    Return: lly The invalid FrameRate ERROR_CAMERA_CREA TE The Camera _Handle is NULL. NIT The specific camera has not been initialized. ERROR_INV ALID_CAME RA The handle is invalid. 394FUNC_INCORRECT The error caused by port incorrect operation. e Video For mat ERROR_FRAMERA nly for FRAME_RA TE_100: ERR ERR et the current size-settings Fail to set the[...]

  • Página 69

    IMC_Shutter_Get Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_Shutter_Get ( HANDLE Camera_Handle, int* pShutterV alue); Visual Basic 6.0 IMC_Shutter_Get (ByV al Camera_Handle As Long, ByRef pShutterV alue As Long) As tting of Sh e Parameters: Camera_Handle The handle for MA VIS camera, use the handle gotten from the ‘ pHandle ’ p [...]

  • Página 70

    IMC_Shutter_Set Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_Shutter_Set ( HANDLE Camera_Handle, int ShutterV alue); Visual Basic 6.0 I I M T ‘ p ERROR_INA VLID_V ALUE The invalid Shutter-T ime value MC_Shutter_Set (ByV al Camera_Handle As Long, ByV al ShutterV alue As Long) As nteger C#.NET 2003 avis.IMC_Shutter_Set( IntPtr Camera[...]

  • Página 71

    IMC_Gain_Get Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_Gain_Get ( HANDLE Camera_Handle, int* pGainV alue); Visual Basic 6.0 IMC_Gain_Get (ByV al Camera_Handle As Long, ByRef pGainV alue As Long) As Integer . eturn: UCCESSFUL Successfully NULL. en initialized. C#.NET 2003 Mavis.IMC_Gain_Get( IntPtr Camera_Handle, IntPtr pGainValue [...]

  • Página 72

    IMC_Gain_Set Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_Gain_Set ( HANDLE Camera_Handle, int GainV alue); Visual Basic 6.0 IMC_Gain_Set (ByV al Camera_Handle As Long, ByV al GainV a lue As Long) As Integer C#.NET 2003 _Gain_Set( IntPtr Camera_Handle, int GainValue ); escription: updates the setting of Gain. The camera needs be init[...]

  • Página 73

    IMC_Brightness_Get tnessV alue); C#.N Mavis.IMC_Brightness_Get( IntPtr Cam era_Handle, IntPtr pBrightnessValue ); current setting of Brightness. The camera needs be initialized ith IMC_Camera_Init(). Camera_Handle dle gotten from the BrightnessV alue The pointer to integer that cont ains the Brightness value s not been initialized. Synt ax: Visual [...]

  • Página 74

    IMC_Brightness_Set Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_Brightness_Set ( HANDLE Ca mera_Handle, int BrightnessV alue); Visual Basic 6.0 IMC_Brightness_Set (ByV al Camera_Handle As Long, ByV a l BrightnessV alue As Long) As Integer C#.NET 2003 Mavis.IMC_Brightness_Set( IntPtr Camera_Handle, int BrightnessValue ); T ‘ p T ERR[...]

  • Página 75

    6.6 Digit al Input/Output IMC_OutputPort_S tatus Syn oland C++ Builder 6.0: s); .0 tS tatus As ong) As Integer s th initialized with IMC_ arameters: andle The handle for MA VIS camera, use the handle gotten from the era_Init(). ll four Output Port s. ignal A T (0x00) USER_SET_SIGNAL (0x03) STROBE_SIGNAL (0x04) Each byte of OutputS tatus stands for [...]

  • Página 76

    Return: lly The Camera_Handle is NULL. ERROR_DEVICE_UNINIT The specific camera has not been initialized. RA The handle is invalid. ERROR_SUCCESSFUL Successfu ERROR_CAMERA_CREA TE ERROR_INV ALID_CAME - 76 -[...]

  • Página 77

    IMC_OutputPort_Configure Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_OutputPort_Configur e ( HANDLE Camera_Handle, int Output_Port, int Sour ce_Signal); Visual Basic 6.0 IMC_OutputPort_Configur e (ByV al Camera_Handle As Long, ByV al Output_Port As Long, ByV al Sour ce_Signal As Long) As Integer C#.NET 2003 Mavis.IMC_OutputPort_Conf[...]

  • Página 78

    Return: Successfully ERROR_INV ALID_PORT The invalid output port. NV ALID_SOURCE_SIGNAL The invalid source signal. _Handle is NULL. ERROR_INV RA The handle is invalid. NOT_SUPPORT The source signal is not supported by that ERROR_SUCCESSFUL ERROR_I ERROR_CAMERA_CREA TE The Camera ERROR_DEVICE_UNINIT The specific camera has not been initialized. ALID[...]

  • Página 79

    IMC_OutputPort_W rite Synt ax: Visual C++ 6.0 / Boland C++ Build short IMC_OutputPort_ nt Output_P er 6.0: W rite ( HANDLE Camera_Handle, i ort, bool IMC_OutputPort_W rite (ByV al Camera al Output_Port As Long, ByV al bV alue As Boolean) As Integer C#.NET 2003 Mavis.IMC_OutputPort_Write( IntPtr Camer a_Handle, int Output_Port, bo ol bValue ); Descr[...]

  • Página 80

    IMC_InputPort_Read Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_InputPort_Read ( HANDLE Camer a_Handle, int Input_Port, bool* pV alue); Visual Basic 6.0 _Read (ByV al Camera_Handle As Long, ByV al Input_Port As Long, C#.NET 200 InputPort_Read( IntPtr Camera_Handle, int In put_Port, out bool arameters: e The handle for MA VI S camera.[...]

  • Página 81

    IMC_InputPort_ReadAll escription: eads the state for bot h Input Ports. The camera needs be initia lized arameters: e The handle for MA VI S camera. Use the handle gotten from the pV alue states of all Input ORT_0 and Byte1 Return: RROR_SUCCESSFUL Successfully AMERA_CREA TE The Camera_Handle is NULL. not been initialized. Synt ax: Visual C++ 6.0 / [...]

  • Página 82

    6.7 External T rigger Synt ax: Visu IMC_T rigger_Enable( HANDLE Camera_Handle, int iT rigSour ce, int iExpMode); .0 s Integer , ByV al iExpMode As Integer) As Integer The camera needs b Parameters: Camera_Handle the handle gotten from the ‘ pHandle ’ p arameter of IMC_Camera_Init(). ce The setting of External T rigger Source. The Sources of Ext[...]

  • Página 83

    Return: ERROR_SUCCESSFUL Successfully The Camera_Handle is NULL. ERROR_DEVICE_UNINIT The specific camera has not been initialized. ERA The handle is invalid. ERROR_CAMERA_CREA TE ERROR_INV ALID_CAM - 83 -[...]

  • Página 84

    IMC_T rigger_Disable Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_T rigger_Disable ( HANDLE Camera_Handle); Visual Basic 6.0 IMC_T rigger_Disable (ByV al Camera_Handle As Long) As Integer C#.NET 2003 Mavis.IMC_Trigger_Disable( IntPtr Camera_Handle); Description: This function disables the External T rigger . The camera needs be initi[...]

  • Página 85

    IMC_T rigger_ReadConfiguration _Handle, bool* pS tatus, rigSour ce, unsigned short* pExpMode); S tatus As Ref pT rigSour ce As Integer , By Ref pExpMode As Intege r) As Integer Mavis. IMC_T rigger_ReadConfiguration( IntPtr Camera_Handle, out bool pS tatus, out ur ce, out Int32 pExpMode); current setting for External T rigger . The camera needs be m[...]

  • Página 86

    ERROR_SUCCESSFUL Successfully AMERA_CREA TE The Camera_Handle is NULL. ic camera has not been initialized. Return: ERROR_C ERROR_DEVICE_UNINIT The specif ERROR_INV ALID_CAME RA The handle is invalid. - 86 -[...]

  • Página 87

    6 nt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IMC_S tr obeContr ol_SetConfiguration (HANDLE Camera_Handle, unsigned short sS tr obeIndex, bool bOnOff, bool bPolarity , unsigned long lDelay , unsigned long lDuration); Visual Basic 6.0 IMC_S tr obeContr ol_SetConfiguration (B yV al Camera_Handle As Long, ByV al sS tr obeIndex As Integer , B[...]

  • Página 88

    lDelay The delay time of S trobe and the Delay V alue range from 0 to 4095. By default, the delay time is setting on 0. Duration T ime of S trobe and the S trobe Duration range from 0 to 4095. By default, the duration is setting on 0. Successfully A TE The Camera_Handle is NULL. invalid output port. ERR ERR initialized. AMERA The handle is invalid.[...]

  • Página 89

    ol_ReadConfiguration nt ax: + 6.0 / Boland C++ Builder 6.0: le, unsigned pOnOff, bo o ay , unsigned dConfiguration , ByV al sS tr obeIndex As Integer , ByRef pOnOf f A ByRef pPolarity As Boolean, ByRef ur ation As Lo Mavis.IMC_S tr obeContr ol_ReadConfigur mera_Handle, Int3 2 sS tr obeIndex, r ef bool pOnOf f, r ef bool pPolarity , r ef Int32 pDela[...]

  • Página 90

    lly A TE The Camera_Handle is NULL. The specific camera has not been ialized. ERR ERR specific output port. Return: ERROR_SUCCESSFUL Successfu ERROR_CAMERA_CRE ERROR_DEVICE_UNINIT init OR_INV ALID_CAME RA The handle is invalid. OR_SOURCE_NOT_SUPPORT The source signal is not supported by that - 90 -[...]

  • Página 91

    IMC_S trobeT imeBase_SetDurationT ime ++ Builder 6. short IMC_S trobeT imeBase_SetDuratio NDLE Camera_Handle, unsigned IMC_S tr obeT imeBase_SetDurationT ime le As Long, ByV al V alue As Long) As Integer C#.NET 2003 Mavis. IMC_S tr obeT imeBase_SetDurationT im e(IntPtr Camera_Handle, Int 32 V alue); Description: This function set the Duration T ime[...]

  • Página 92

    IMC_S trobeT imeBase_ReadConfiguration ionT ime, uns igned long* pDelayT ime); teger , ByRef pD elayT ime As Integer) As Integer 2 urationT ime, out Int32 pDelayT ime); ionT ime DelayT ime The Delay T ime of S trobe T ime Base and allows value from 1 ~85. By default, the V alue is setting on 1. ERROR_CAMERA_CREA TE a_Handle is NULL. s not been ERRO[...]

  • Página 93

    6.9 Lookup Synt oland C++ Builder 6.0: Vis al Camera_Handle As L ong, ByRef pS tartAddr As Long) As C#. avis. IMC_LUT_Read( IntPtr Camera_Handle, Int32[ ] pStartAdd r ); mera Lookup T able. There have list 1024 values Lookup T able for present the depth of camera output pixel values. The camera lized with IMC_Camera_Init(). Parameters: ). eturn: UC[...]

  • Página 94

    IMC_LUT_SetS tatus Synt ax: er 6.0: C_LUT_SetS tatus (HAND LE Camera_Handle, bool stat us); e As Long, ByV al status As Boolean) As Des This function is enable/disable to modify the camera Lookup T able. The camera needs be initialized with IMC_Camera_Init(). C_Camera_Init(). atus T o allow to modify the Lookup T able content when status is setting[...]

  • Página 95

    IMC_LUT_ReadS tatus s); ing on F ALSE. ERROR_DEVICE_UNINIT ERROR_INV ALID_CAME RA The handle is invalid. Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: IMC_LUT_ReadS tatus (HANDLE Camera_Handle, bool* pS tatus); Visual Basic 6.0 IMC_LUT_ReadS tatus (ByV al Camera_Handle As Long, ByRef pS tatus As Boolean) As Integer C#.NET 2003 Mavis. IMC_LUT_Re[...]

  • Página 96

    IMC_LUT_W rite Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: short IM C_LUT_W rite( HANDLE Camera_H andle, unsigned long* pS tartAddr); dr Successfully Visual Basic 6.0 IMC_LUT_W rite (ByV al Camera_Handle As Long, ByRef pStartAddr As Long) As Integer C#.NET 2003 Mavis. IMC_LUT_W rite( IntPtr Camera_Handle, Int32[ ] pStartAdd r ); Description: [...]

  • Página 97

    6 (Area of Interest) IMC Syn Visual C++ 6.0 / Boland C++ Builder 6.0: AOI_Configur e ( HANDLE Camera_Handle, PIMC_AOI_RECT_AREA Visual Basic 6.0 e (ByV al Camera_Handle As Long, ByRef pRectA As Handle, ref IMC_AOI_RECT_AREA p_ExtTrigSrc); Description: on config /Mode0. The amera needs be initialized with IMC_Camera_Init(). dle for MA V en from the [...]

  • Página 98

    Return: ERROR_SUCCESSFUL Successfully The Camera_Handle is NULL. ERROR_DEVICE_UNINIT The specific camera has not been initialized. RA The handle is invalid. The error caused by port incorrect operation. ail to set the V ideo Format ERR ERROR_SIZE_INQUIRE Fail to inquire the maximum size US Fail to get the current size-settings ERROR_POSITION_AOISET[...]

  • Página 99

    6.11 Advanced Visual C++ 6.0 / Boland C++ Builder 6.0 yV al Camera_Handle able( IntPtr Ca Description: This function enables the T est Image Advanced Feature. This feature is helpful for self-testing. The camera needs be initialized with IMC_Camera_Init(). Parameters: Camera_Handle The handle for MA VI S camera. Use the handle gotten from the ‘ p[...]

  • Página 100

    IMC_T estImage_Disable Synt ax: Visual C++ 6.0 / Boland C++ Builder 6.0: IMC_T e stImage_Disable ( HANDLE Camera_Handle); Integer n disables the T est Image Advanced Feature. This feature is helpful fo r itialized with IMC_Camera_Init(). ‘ pHandle ’ p arameter of IMC_Camera_Init(). A TE The Camera_Handle is NULL. short Visual Basic 6.0 IMC_T e [...]

  • Página 101

    6.12 Sample Programs After driver inst allation completed then you can find the sample program in MA VISSamples path. The sample program offers similar f unction modules as used in EZV iew and the r VC++, BCB, C#.NET and VB language programming reference. source code fo 6.12.1 Sample program for VC++/BCB/C#.NET - 101 -[...]

  • Página 102

    6.12.2 Sample program for VB e offer “IMCamera.bas” modules which has of fer similar functions definition as VC lib. And use “Pict ureBox” OCX object for image r MA VIS will be released in the next revision. VB sample program ar display need. An OCX control API version fo - 102 -[...]

  • Página 103

    7 Mechanical - 103 -[...]

  • Página 104

    8 Appendix 8.1 St andards Compliance Report No. : FV6N2310 For customers in the U.S.A. This equipment has been tested and found to co mply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Ru les. These limits are designed to provide reasonable protection aga inst harmful interfer ence when the equipment is o perated in a[...]

  • Página 105

    rea of interest. A re is posed and processed as an ima ge. For image proce ing field, the AOI also means a inspection or 8.2 Glossary AOI is means the a user-defined, rect angular area (a squa common) on a CCD that is ex ss user-defined area for measurement application for saving system images processing time. Bit Depth - The number of bit s used t[...]

  • Página 106

    l of amplification of a signal. The Gain affect s image sha rpness sensed by the naked eye. ificant sist of picture element s dubbed "pixels". ons. The pixel si ze is a techni cal paramet er en die scanning whereby lines of a pi cture are co mputer world. Thi s method is of ten used in VD video encoding where the video is produced by scan[...]

  • Página 107

    8.3 Revision History Revision Date Change Description 2006-12-14 Index bookmark build up, add BCB6 and C#.NET Synt ax, add CE and FCC Certificated 2007-06-27 1. Add Programming Flo wchart. 2. Modify Function Library 3. EZView Uti lity revision 2008-04-30 1. Add EzVIEW_Fly Utility 2. Modify input circuit sample 3. Modify Shutter value from value 819[...]

  • Página 108

    W licy ICP DAS e year warranty period 30/I M-100 IEEE 1394 camera se er th by ICP DAS will not t ake any responsibility in the following cases: 1. When user . 2. In case damages or lo earthquake, or other act s of the Gods, the act by third part eliberately or erroneously , use under extreme operating co 3. In case damages or losses are caused n wi[...]

  • Página 109

    IC e P DAS W orldwid Headquarters USA Branch Of fice ICP DAS CO., L TD. No.1 1 1, Kuangfu N. Rd., Hukou Shiang, Hsinchu Hsien, T aiwan 303, R.O.C ICP DAS USA, Inc. 2531 West 237th Street, Suite 121 Torrance, CA 90505, USA TEL: +886-3-597-3366 TEL: 1-310-517-9888 F AX: +886-3-597-3733 servi e@icpdas.com FAX: 1-310-517-0998 Sales@icp das-usa.com c nc[...]