Home
Result
Contents
1. Pin 25 PIN Signal PIN Signal 1 DI1 14 RY3 COM 2 DI1 COM 15 RY4 3 DI2 16 RY4 COM 4 DI2 COM 17 STRG OUT1 5 DI3 18 STRG OUT2 6 DI COM 19 STRG OUT3 7 DI4 20 STRG_OUT4 8 DI4 COM 21 STRG_GND 9 RY1 22 STRG GNG 10 RY1 COM 23 NC 11 RY2 24 NC 12 RY2 COM 25 NC 13 RY3 26 Table 2 22 D sub 25 pin Connector 26 Hardware Reference A ADLINK 2 2 cRTV Series 2 2 1 cRTV 24 Specifications Video Input Four composite video color digitizers Video input interface Four composite BNC connectors Channel status report LED Coaxial cable recommended Channel Extension Expandable to up to 8 channels Channel extension interface gt 10 pin ribbon cable to on board 10 pin header connector for channel extension each header adds 4 video inputs channels User EEPROM Includes 1kbit usable EEPROM Form Factor 32 64bit 33 66MHz 3U Compact PCI board OLEO TE ALLAL Figure 2 9 cRTV 24 Appearance Hardware Reference 27 A ADLINK PA i Dimensions gt WxL 160 mm x 100 mm Operating Environment Temperature 0 to 55 C Humidity 5 to 90 RHNC Storage Environment gt Temperature 0 to 70 C Humidity O to 95 RHNC Power Requirements gt 5V max 1 5A gt 3 3 V max 0 65A cRTV 24 Standard Accessories User Manual gt All in One CD Connector Definition CHO Channel
2. A ADLINIS var Result SmallInt PortNo SmallInt Logic SmallInt PortNo 0 Logic 0 Result AngeloRTV Set GPIO Int Logic PortNo Logic AngeloRTV Write EEPROM AngeloRTV Read EEPROM Var Result SmallInt PortNo SmallInt Offset Byte Value Byte PortNo 0 Offset 0 Value 128 Result AngeloRTV Write EEPROM PortNo Offset Value Result AngeloRTV Read EEPROM PortNo Offset Value AngeloRTV Set LED Sts var Result Smallint PortNo Smallint EDStatus Byte PortNo 0 EDStatus 1 Result AngeloRTV Set LED Sts PortNo L 110 EDStatus Function Library A ADLINK PA i 5 7 Callback amp Thread Functions Name AngeloRTV Get Int Status PortNo IntStatus Gets the current interrupt status AngeloRTV Set Int Event PortNo hEvent Assigns the windows interrupt event AngeloRTV Set Callback PortNo CallBackProc Sets the callback function when an interrupt is generated Description AngeloRTV Get Int Status Allows users to identify what caused an interrupt signal Bit 0 GPIO interrupt when Digital input channel is changed Bit 1 Channel 0 Image ready Bit 2 Channel 1 Image ready Bit 3 Channel 2 Image ready Bit 4 Channel 3 Image ready ww v V Note There are four channels in each port the default channel is channel 0 AngeloRTV Set Int Event Links interrupt events Users only have to declare the hEvent variable and call
3. 6 6 q8 gt t_ P o J gt tl t6 e cu Card Card 2 Card 3 Port 0 1 2 3 0 1 2 3 Real Time x x x x x x x x Frame Rate Introduction 5 A FN ADLINK TECHNOLOGY INC 1 5 PCle RTV 24 Benchmarks Motherboard ASUS P5E64 WS EVOLUTION CPU Intel Core2 Duo CPU E4600 2 4GHz RAM DDR3_SDRAM 2GB OS Windows XP SP3 Image Format RGB16 Full 640 480 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y Y v v v v v v Frame Rate 29 811 29 798 29 810 29 808 29 807 29 805 29 808 29 801 Motherboard ASUS P5E64 WS EVOLUTION CPU Intel Core2 Duo CPU E4600 2 4GHz RAM DDR3 SDRAM 2GB OS Windows XP SP3 Image Format RGB24 Full 640 480 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y x Y Y Y x Frame Rate 29 808 29 811 29 808 29 808 29 814 29 809 Introduction A ADLINK PA i Motherboard NuPRO 965 CPU Intel Core2 Quad Q6600 2 4GHz RAM DDR2_SDRAM 2GB OS Windows XP SP3 Image Format RGB16 CIF 320 240 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y Y Y Y Y Y Frame Rate 29 810 29 09 29 810 29 809 29 809 29 810 29 808 29 809 Card Card 2 Card 3 Port 0 1 2 3 0 1 2 3 Real Time v v v v v v v v Frame Rate
4. Turn on User Account Control UAC to make your computer more secure User Account Control UAC can help prevent unauthorized changes to your computer We recommend that you leave UAC turned on to help protect your computer Use User Account Control UAC to help protect your computer Cancel Installation Guide 55 4 ADLINK 3 2 2 DirectShow Driver Installation 1 Run setup 2 Click Next until the driver is completely installed is ngeloR TY DirectShow InstallShield Wizard Welcome to the InstallShield Wizard for AngeloRTVDirectShow The InstallShield R Wizard will install AngeloRTYDirectShow on your computer To continue click Next WARNING This program is protected by copyright law and international treaties i Cancel 56 Installation Guide ADLINK TECHNOLOGY INC ji AngeloRTYDirectShow InstallShield Wizard Destination Folder Y Click Next to install to this Folder or click Change to install to a different Folder Install AngeloRTYDirectShow to C Program Files ADLINK AnaeloR TVDirectShow Cancel is AngeloR TY DirectShow InstallShield Wizard Ready to Install the Program The wizard is ready to begin installation Click Install to begin the installation IF you want to review or change any of your installation settings click Back Click Cancel to exit the wizard Installation Guide 57 A ADLINK TECHNOLOGY INC na AngeloRTYDirectShow Install
5. Figure 3 5 RTV I4 Attachment Installation Guide 49 4 ADLINK 3 2 Driver Installation 3 2 1 WDM Driver Installation 1 Run setup 2 Click Next until the driver is completely installed i5 Angelo RTY InstallShield Wizard Welcome to the InstallShield Wizard for Angelo RTV The InstallShield R Wizard will install Angelo RTV on your computer To continue click Next WARNING This program is protected by copyright law and international treaties 50 Installation Guide ADLINK TECHNOLOGY INC m Angelo RTY InstallShield Wizard Destination Folder Y Click Next to install to this Folder or click Change to install to a different Folder g Em Install Angelo RTV to C Program Files ADLINK Angelo RTV Cancel i Angelo RTF InstallShield Wizard Ready to Install the Program The wizard is ready to begin installation Click Install to begin the installation If you want to review or change any of your installation settings click Back Click Cancel to exit the wizard Installation Guide 51 ADLINK TECHNOLOGY INC i m Angelo RTY InstallShield Wizard Installing Angelo RTY The program features you selected are being installed Installshield 52 Installation Guide A ADLINK TECHNOLOGY INC is Angelo RTY InstallShield Wizard InstallShield Wizard Completed The InstallShield Wizard has successfully installed Angelo RTV Click Finish to exit the wizard j
6. Display adapters lt DVD CD ROM drives Floppy disk controllers IDE ATA ATAPI controllers iu Keyboards Mice and other pointing devices g Monitors B Network adapters F Ports COM amp LPT RR Processors Sound video and game controllers ADLINK Bt878 DirectX Audio Capture ADLINK Bt878 DirectX Audio Capture ADLINK Bt878 DirectX Audio Capture ADLINK Bt878 DirectX Audio Capture ADLINK Bt878 DirectX Video Capture ADLINK Bt878 DirectX Video Capture ADLINK Bt878 DirectX Video Capture ADLINK Bt878 DirectX Video Capture Installation Guide ADLINK JA TECHNOLOGY INC e 3 2 3 RTV LVIEW Installation 1 Double click the setup exe file to start RTV LVIEW installation File Edit View Favorites Tools Help Qs Search F Folders Address DADocuments and Settings adlink Desktop RTY LVIEW DISK1 File and Folder Tasks ml Rename this file y Move this file A Copy this file Publish this file to the Web DISK1 ID E mail this file ID File XK Delete this file ce 1KB SETUP Other Places a EXE Configuration Settings 1 1 KB RTVVIEW nS My Documents Internet Communication Settings ISSFile Shared Documents 69 KB 1KB My Computer SETUP PKG My Network Places PKG File 1KB Continuously click the Next button to install RTV LVIEW CENE Ej ADLINK RTV LVIEW Ver 1 0 2 2 Welcome Welcome to the RTV
7. Start Field LongInt Smallint AngeloRTV Sync Grab PortNo Smallint var Start Address Pointer var Width Longint var Height Longint var Size byte Longint Smallint Argument PortNo Function Library 101 A FA ADLINK TECHNOLOGY INC Port number is the zero index of the Angelo series card For exam ple if there are two PCI RTV 24 Angelo cards card 0 card 1 in the system and each PCI RTV 24 has four ports the first port of card O is O and the first port of card 1 is 4 CaptureNo Total number of frames to capture If the CaptureNo is OxFFFFFFFF the frame grabbing will not stop until the AngeloRTV Capture Stop function is called Multiplex Indicates the multiplex channels gt BitO Channel O 0 for disable 1 for enable gt Bit 1 Channel 1 0 for disable 1 for enable Bit2 Channel 2 O for disable 1 for enable gt Bit3 Channel 3 0 for disable 1 for enable For example Multiplex 7 1 only channel 0 is enable gt Multiplex 2 only channel 1 is enable gt Multiplex 15 four channels are enable Start Filed Indicates the first field of image gt O first field is Odd so the image will be Odd field Even field gt 1 first field is Even so the image will be Even field Odd field gt 2 first field depends on the current field so the image will be Even field Odd field or Odd field Even field Start_Address Memory start address
8. 29 810 29 809 29 809 29 809 29 809 29 810 29 809 29 810 Motherboard NuPRO 965 CPU Intel Core2 Quad Q6600 2 4GHz RAM DDR2_SDRAM 2GB OS Windows XP SP3 Image Format RGB24 CIF 320 240 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y Y Y v v v Frame Rate 29 810 29 09 29 811 29 809 29 809 29 811 29 807 29 809 Card Card 2 Card 3 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y Y Y Y Y Y Frame Rate 29 809 29 808 29 809 29 809 29 806 29 810 29 807 29 810 Introduction 7 A ADLINIC P l 8 Introduction ADLINK TECHNOLOGY INC e 2 Hardware Reference 2 4 RTV Series 2 1 4 PCle RTV24 Specifications Figure 2 1 PCle RTV24 Appearance Dimensions gt WxL 167 65 mm x 111 15 mm Operating Environment gt Temperature 0 to 55 C Humidity 5 to 90 RHNC Storage Environment gt Temperature 0 to 70 C Humidity 0 to 95 RHNC Power Requirements gt 12 V max 0 7A gt 3 3 V max 0 5A gt Aux 3 3V max 0 003A Hardware Reference 9 A ADLINK PA i Video Input Four composite video color digitizers Video input interface Four composite BNC connectors gt Coaxial cable suggested Channel Extension Expandable to up to 16 channels Channel extension interface gt 10 pin ribbon cable to on board 10 pin header connector for channel extension
9. ByVal PortNo ByRef FormatValue As Byte As Integer Delphi Windows AngeloRTV Set Image Config PortNo Smallint Confi gIndex Byte Value Byte Smallint AngeloRTV Get Image Config PortNo Smallint ConfigIndex Byte var Value Byte Smallint AngeloRTV Set Color Format PortNo Smallint Color Format Byte Smallint 92 Function Library A ADLINK PA i AngeloRTV Get Color Format PortNo Smallint var ColorFormat Byte Smallint AngeloRTV Set Video Format PortNo Smallint Video Format Byte Smallin AngeloRTV Get Video Format PortNo Smallint var VideoFormat Byte Smallint AngeloRTV Set Image Geometric PortNo Smallint X Offset LongInt Y Offset LongInt X Active LongInt Y Active LongInt X Scale Double Y Scale Double Smallint AngeloRTV Detect Video Format PortNo Smallint var FormatValue Byte Smallint Arguments PortNo Port number is the zero index of the Angelo series card For exam ple if there are two PCI RTV 24 Angelo cards card 0 card 1 in the system and each PCI RTV 24 has four ports the first port of card O is O and the first port of card 1 is 4 Configlndex 0 for BRIGHTNESS 1 for HUE 2 for SATURATION U 3 for SATURATION V 4 for CONTRAST LUMA 5 for luma notch filter for monochrome video the notch fil ter should not be used Value 0 255 Range Default value BRIGHTNESS 0 255 128 HUE 0 255
10. U16 PortNo 0 void _ stdcall MediaStreamProc U32 VideoBufferaddress U16 PortNo U32 Status AngeloRTV Get Int Status PortNo amp Status if Status amp 0x01 1 GPIO if Status 1 amp 0x01 1 Channel 0 of the nPort else if Status gt gt 2 amp 0x01 1 Channel 1 of the nPort else if Status gt gt 3 amp 0x01 1 Channel 2 of the nPort else if Status gt gt 4 amp 0x01 1 Channel 3 of the nPort AngeloRTV Set Callback PortNo MediaStreamProc lt Visual Basic gt Use Callback Function Dim Result As Integer Dim PortNo As Integer Public Sub lpcallback ByVal VideoBufferaddress As Long ByVal PortNo As Integer 114 Function Library ADLINK TECHNOLOGY INC J e Dim Status As Long Result AngeloRTV Get Int Status PortNo Status End Sub PortNo 0 Result AngeloRTV Set Callback PortNo AddressOf lpcallback lt Delphi gt Use Thread Var ISR ON SmallInt Event Angelo Integer ThreadId LongInt PortNo SmallInt PortNo 0 function ThreadFunc Parameter Pointer Integer var Str Add Pointer Size Byte Longint intstatus LongInt begin while ISR ON 1 do begin WaitForSingleObject Event Angelo INFINITE ResetEvent Event Angelo AngeloRTV Get Int Status PortNo intstatus if intstatus 2 then image ready for channel 0 of port begin end end end AngeloRTV Set Int E
11. each header adds 4 video inputs channels gt Three 10 pin header connectors on board General Purpose I O Lines gt Alll Os are TTL compatible and support 4 inputs 4 outputs and 4 soft trigger lines GPIO interface gt Two 10 pin header connectors on board gt The VO lines are internally pulled up and have the follow ing characteristics Voltage MIN MAX Input high voltage 5bpA 2 0V 5 25V Input low voltage 5HA 0 0V 0 80V Output high voltage 1 0mA 5 0V Output low voltage 100 0mA 0 5V Table 2 1 GPIO Characteristics Watch Dog Timer For monitoring applications and will reset the PC after a pro grammable inactivity time out Interface 2 pin header 4 channel software trigger output gt 4 channels programmable trigger scale 60us 16ms 10 Hardware Reference A ADLINK PA lt B us 15ms 3 Trigger HE oa ae Figure 2 2 Trigger Signal Waveform User EEPROM Includes 1kbit available EEPROM RTV 24 Standard Accessories Watchdog reset cable GPIO bracket User Manual gt All in One CD RTV 24 Connectors amp Pin Definitions Connector Definition O Video IN CH 0 Q Video IN CH 1 O Video IN CH 2 O Video IN CH 3 Table 2 2 RTV Video Inputs Hardware Reference 11 ADLINI TECHNOLOGY INC A FA 00000 pj 0 D aum PIN Function PIN Function 1 GND 2
12. 0 CHROMA U 0 255 127 CHROMA V 0 255 90 LUMA 0 255 124 LUMA notch filter O Enable or 1 Disable ww Ww AA AA vw wv www Function Library 93 A FA ADLINK TECHNOLOGY INC Color Format RGB16 0 GRAY 1 RGB15 2 RGB24 3 RGB32 4 RGB8 5 RAWSX 6 YUY24 2 2 T Video Format Full NTSC 640 480 0 Full PAL 768 576 1 CIF NTSC 320 240 2 CIF PAL 384 288 3 QCIF NTSC 160 120 4 QCIF PAL 192 144 5 Note Please do not use Full NTSC and Full PAL format to acquire dynamic object image because the interlaced scanning may not be able to present clear image for it X_Scale This parameter is the scaling factor applied to the Angelo sampled line to obtain pixels according to the resolution X_Active This parameter value is the length of the active video line X_Offset This parameter value is the number of scaled pixels to skip before the start of the active video line Y Scale This parameter is the scaling factor applied to the Angelo sampled data lines in the vertical direction Y_Active This parameter value is the height in lines of the active video image Y_Offset ww vv Ww www ww Ww Y VvV V Function Library A ADLINK PA i This parameter value is the number of lines to skip before the first line of the active video image FormatValue If the return value of this parameter is O that means there is no video signal input And if the v
13. 0 BNC CH1 Channel 1 BNC CH2 Channel 2 BNC CH3 Channel 3 BNC O O O o Table 2 23 cRTV Video Inputs 28 Hardware Reference 00000 wa 0 000 PIN Function PIN Function 1 GND 2 CH4 video in 3 CHS video in 4 GND 5 GND 6 CH6 video in 7 CH7 videoin 8 GND 9 GND 10 GND A FA Table 2 24 Channel Extension Video Input CN8 Hardware Reference ADLINK TECHNOLOGY INC 29 A ADLINK PA i 2 2 2 cRTV 44 Specifications Video Input Four composite video color digitizers Video input interface Four composite BNC connectors Channel status report LED Coaxial cable recommended General Purpose I O Lines gt All I O lines are TTL compatible with 4 input 4 output and 4 soft trigger lines GPIO interface gt Two 10 pin header connectors on board gt The VO lines are internally pulled up and have the follow ing characteristics Voltage MIN MAX Input high voltage 200A 2 0V 5 25V Input low voltage 0 20A 0 0V 0 80V Output high voltage 1 0mA 5 0V Output low voltage 100 0mA 0 5V Table 2 25 GPIO Characteristics Channel Extension Expandable to up to 8 channels Channel extend interface gt 10 pin ribbon cable to on board 10 pin header connector for channel extension each header adds 4 video inputs channels User EEPROM Includes 1kbit usab
14. CUSTOMBT848 I2C INSTANCE DATA OF PROPERTY PTR amp I2C INSTANCE DATA OF PROPERTY SIZE I2C amp I2C sizeof I2C amp ret Write value then I2C dwOperation BT848 CUSTPROP I2C WR I2C ucAddress uAddress I2C ucOutBuf 0 offset I2C ucOutBuf 1 value I2C dwOutLen 2 I2C dwInLen 0 I2C bDontWaitACK hr pKs gt Get PROPSETID CUSTOMBT848 KSPROPERTY CUSTOMBT848 I2C TRU ti T INSTANCE DATA OF PROPERTY PTR amp I2C INSTANCE DATA OF PROPERTY SIZE I2C amp I2C sizeof I2C amp ret pKs gt Release Programming Guide 147 A ADLINK PA i Build Environment Settings Include Files All applications need include the file shown in the following table Include File Description DShow h The header file is required for all C applications Custprop h The header file is required for all C applications The header file is required for all C applications Bt848guid h which need access BT878 proprietary interfaces for instance EEPROM and GPIO Bt878 cs The class definition is required for all C applications Library File All applications need the library file shown in the following table Library File Description Exports class identifiers CLSIDs and inter Strmiids lib face identifiers IIDs All C applications require this library Exports the AMGetErrorText function If you Qu
15. Cancel You must restart your system For the configuration changes made to Angelo RTV to take effect Click Yes to restart now or No if you plan to restart later 4 Open the Device Manager and check for the following 8 items gt ADLINK Angelo Audio Device 4 instances gt ADLINK Angelo Video Device 4 instances Installation Guide 53 ADLINK TECHNOLOGY INC 54 The Device Manager should be as follows Device Manager File Action View Help Ho c gt m ame E ADLINK Vision Xp ADLINK Angelo Audio Device x ADLINK Angelo Audio Device X ADLINK Angelo Audio Device x ADLINK Angelo Audio Device x ADLINK Angelo Video Device x ADLINK Angelo Video Device ADLINK Angelo Video Device ADLINK Angelo Video Device s Disk drives H 2 Display adapters B DVD CD ROM drives Floppy disk controllers H E IDE ATA ATAPI controllers tu Keyboards FT Mice and other pointing devices Monitors Network adapters F Ports COM amp LPT NR Processors Installation Guide A ADLINK PA Note If using Windows Vista the User Account Control UAC needs to be turned off before using the device To turn off the UAC go to Start Settings Control Panel User Ac counts Turn User Account Control on or off Uncheck the UAC and restart the computer then the device can work nor mally rere ea B User Accounts Tum User Account Control On or Off 4 seo 2
16. Inputs 17 Table 2 11 Channel Extension Video Input CN2 18 Table 2 12 Channel Extension Video Input CN3 18 Table 2 13 Channel Extension Video Input CN5 19 Table 2 14 GPIO CNB eee Re ee AA Re 19 Table 2 15 GPIO CN9 eee en 20 Table 2 16 Watchdog Timer ee 20 Table 2 17 Channel Extension Video Input CN11 21 Table 2 18 Relay Jumper Settings 22 Table 2 19 STRG Jumper Settings ee 23 Table 2 20 RTV I4 GPIO CN1 lt gt RTV 24 GPIO CN8 25 Table 2 21 RTV I4 GPIO CN2 lt gt RTV 24 GPIO CN9 25 Table 2 22 D sub 25 pin Connector 26 Table 2 23 CRTV Video Inputs 28 Table 2 24 Channel Extension Video Input CN8 29 Table 2 25 GPIO Characteristics 30 Table 2 26 CRTV Video Inputs 32 Table 2 27 Channel Extension Video Input CN8 33 Table 2 28 GPIO O Pinout iaaa 33 Table 2 29 GPIO 1 Pinout ee AA Ee EE ee ee Re n 34 Table 2 30 GPIO Characteristics ee 35 Table 2 31 Video Input 37 Table 2232 GPIO PINOU attt ettet teet bcn 38 Table 2 33 GPIO Characteristics ee 41 Table 2 34 GPIO Characteristics ee 41 Table 2 35 Video Input sss 42 Table 2 36 GPIO Pin out 42 Table 5 1 List of Functions een
17. LVIEW Setup program This program wil instal RTV LVIEW on your computer Itis srongi recommerded that you exit all Windows progiams before running this Setup program Click Cancel to quit Setup and then close any programs you have running Click Nest to continue with the Setup pogram WARNING This program is prctecled by copytight law ard interational teaties Unauthorized reproduction or datibution of this program or any poten of it may resultin severe civil and crimina penalties and willbe prosecuted to the maximam extent possible under Iaw Back Ga Installation Guide 61 A ADLINK Click Finish to complete Setup 62 Installation Guide A ADLINK TECHNOLOGY INC e 3 2 4 Uninstall RTV LVIEW Open the Control Panel and double click Add Remove Pro grams Select RTV LVIEW and click the Change Remove button to uninstall it Add or Remove Programs x Currently installed programs Sort by Name v Change or i Angelo RTW Size 24 42MB Remove Programs ig Intel R PRO Network Connections 12 2 41 0 Sie 7 42MB N National Instruments Software Size 1 04MB 5 RTV LVIEW Add New Programs To change this program or remove it from your computer click Change Remove CEE AddfRemove E Windows Driver Package ADLINK Technology Inc Bt878A VISION Wind Components Windows Driver Package ADLINK Technology Inc Bt878V VISION After un installation all files in the direct
18. Result U16 PortNo 0 U32 Size Byte Width Height U32 StrAddr Result AngeloRTV Get Frame PortNo amp StrAddr amp Width amp Height amp Size Byte AngeloRTV Save File I16 Result U16 PortNo 0 U8 File Format 2 U32 nQuality 25 Result AngeloRTV Save File PortNo Image jpg File Format nQuality lt Visual Basic AngeloRTV Copy Frame Dim Result As Integer Dim PortNo As Integer Dim Size Byte As Long Dest Address As Byte PortNo 0 Size Byte 640 480 3 ReDim Dest Address 0 To Size Byte 1 As Byte Result AngeloRTV Copy Frame PortNo Dest Address 0 Size Byte AngeloRTV Get Frame Dim Result As Integer Dim PortNo As Integer Dim Size Byte As Long Dim StrAddr As Long Dim Width as Long Height As Long PortNo 0 Result AngeloRTV Get Frame ByVal PortNo Str Add Width Height Size Byte AngeloRTV Save File Dim Result As Integer Dim File Format as Byte Dim nQuality as Long Function Library 125 A A ADLINK TECHNOLOGY INC 126 PortNo 0 File Format 2 NQuality 25 Result AngeloRTV Save File PortNo Image jpg File Format NOuality Delphi gt AngeloRTV Copy Frame Var Result SmallInt PortNo SmallInt Size Byte Longint Dest Add array of Byte PortNo 0 Size Byte 640 480 3 SetLength Dest Add Size Byte Result AngeloRTV Copy Frame PortNo Dest Add 0 Size Byte AngeloRTV Get Frame Var Result SmallInt PortNo Small
19. The display image shows a red horizontal line on it Click mouse on the display image to move the selected line If it is grabbing image the background color of focus value window is gray The chart will update immediately by acquired image and the x axis region depends on which horizontal pixels shown in dis play panel The window is shown below Focus alueAll Focus Value ViewCreatorPro Utility 71 A ADLINK PA After stopping grabbing the background color of focus value win dow is black The x axis size is the width of the whole image The window is shown below Focus alueAll If the image is chromatic and is RGB type there are three curves represented red green and blue individual in the chart The win dow is shown below 72 ViewCreatorPro Utility A ADLINK PA i If the image is chromatic and is YUV type there are three curves represented y u and v individual in the chart The window is shown below Focus alueAll EN La Zoom In Open a window to zoom in the green rectangle region Ai Differential Open a window to show the slop of the line for the green rectangle region Drag the vertical green line to resize the green rectangle R S show Hide Red Values Show or hide the red value of the pixels G P d Show Hide Green Values Show or hide the green value of the pixels B 49 ShowlHide Blue Values Show or hide the blue value of the pixels ViewCreatorPro Utility 7
20. digitizers Video input interface Four composite BNC connectors gt Coaxial cable suggested Channel Extension Expandable to up to 16 channels Channel extension interface gt 10 pin ribbon cable to on board 10 pin header connector for channel extension each header adds 4 video inputs channels gt Three 10 pin header connectors on board General Purpose I O Lines gt All I Os are TTL compatible and support 4 inputs 4 outputs and 4 soft trigger lines GPIO interface gt Two 10 pin header connectors on board gt The VO lines are internally pulled up and have the follow ing characteristics Voltage MIN MAX Input high voltage 5uA 2 0V 5 25V Input low voltage 5uA 0 0V 0 80V Output high voltage 1 0mA 5 0V Output low voltage 100 0mA 0 5V Table 2 9 GPIO Characteristics Watch Dog Timer For monitoring applications and will reset the PC after a pro grammable inactivity time out Interface 2 pin header 4 channel software trigger output gt 4 channels programmable trigger scale 60us 16ms Hardware Reference 15 ADLINK TECHNOLOGY INC J lt 50us 16ms Trigger ae ME Figure 2 3 Trigger Signal Waveform User EEPROM Includes 1kbit available EEPROM Form Factor gt 32 bit 33MHz PCI half size board Figure 2 4 RTV 24 Appearance Dimensions gt WxL 106 68 mm x 174 62 mm Operating
21. formats NTSC M NTSC Japan PCL B PAL D PAL G PAL H PAL I PAM M PAL N and SECAM Monochrome Image The monochrome video acquisition is compatible with CCIR and EIA RS 170 Optional Scaling Optional scaling of acquired image or portions of an image gt Acquisition of a programmable area of interest Scaling of the image down to 1 16 Adjustment of hue for NTSC signals contrast 0 to 200 brightness and saturation 0 to 200 for U and V signals Automatic chrominance gain control 1 1 2 I O Lines The RTV series is fitted with TTL compatible I O lines protected against overloads and electrostatic discharges Each line may be configured as an input or output They can be used to trigger acquisition or report alarm signals 1 1 3 Watchdog Timer A hardware watchdog is available on the RTV 24 that is able to monitor PC application operation and will automatically reset the PC after a programmable inactivity time out This ensures reliable operation of remote systems 1 1 4 Supported Software WDM driver The drivers support VC VB Delphi C Builder program ming under Windows NT 98 2000 XP DLLs and reference sample programs are provided ViewCreator The package will assist in initial test and functional evaluation AngeloLVIEW Angelo LVIEW is fully compatible with LabView 6 0 and above and it provides a full set of Vls that can be used 2 Introduction Introduction A ADLINK PA i
22. gives examples of two ways of controlling device driver Descriptions of Filters This section lists filters needed to build a filter graph for capturing video stream and previewing video stream Programming Guide 135 A FN ADLINK TECHNOLOGY INC Source Filter ADLink Bt878 Video Capture ADLink Bt878 Video Capture Filter belongs to the category of WDM Streaming Capture Devices It is actually a kernel mode KsProxy plug in An application can treat it simply as a filter Use System Device Enumerator to add this filter to a filter graph Filter Name ADLink Bt878 Video Capture Filter CLSID Not applicable Filter Category Name WDM Streaming Capture Devices Filter Category AM_KSCATEGORY_CAPTURE Video Capture Pin Supported Media Types MEDIATYPE_Video Subtypes MEDIASUBTYPE_YUY2 MEDIASUBTYPE_YVU9 MEDIASUBTYPE_UYVY MEDIASUBTYPE_YV12 MEDIASUBTYPE 1420 MEDIASUBTYPE Y41P MEDIASUBTYPE RGB24 MEDIASUBTYPE RBG32 MEDIASUBTYPE RBG565 MEDIASUBTYPE RBG555 vvvvvvvvvyv Video Preview Pin Supported Media Types MEDIATYPE_Video Subtypes MEDIASUBTYPE_YUY2 MEDIASUBTYPE_YVU9 MEDIASUBTYPE_UYVY MEDIASUBTYPE_YV12 MEDIASUBTYPE 1420 MEDIASUBTYPE Y41P MEDIASUBTYPE RGB24 MEDIASUBTYPE RBG32 MEDIASUBTYPE RBG565 MEDIASUBTYPE RBG555 v vvvvvvvvy Merit MERIT DO NOT USE 136 Programming Guide A ADLINK PA i CrossBar Filter If the device is a capture board a C
23. height Shown below Press right mouse button the cursor will become a move2D icon Then user can drag the image Shown below 76 ViewCreatorPro Utility A ADLINK PA i 4 3 6 Main Menu File menu gt Open Image Open an image from a file and display it to the display panel gt Save Image Save current displaying image to a bitmap file gt Exit Terminate ViewCreatorPro View menu gt Devices Hide or unhide Devices panel gt Adjustment Hide or unhide Adjustment panel ChannelExtensionEnable Determine if let user select channel node Video Format menu gt NTSC Set the channels showed on display panel to NTSC format gt PAL Set the channels showed on display panel to PAL format Color Format menu Gray Set the channels showed on display panel to gray format gt RGB32 Set the channels showed on display panel to rgb32 format gt RGB24 Set the channels showed on display panel to rgb24 format RGB16 Set the channels showed on display panel to rgb16 format RGB15 Set the channels showed on display panel to rgb15 format YUV Set the channels showed on display panel to yuv format ViewCreatorPro Utility 77 A ADLINK TECHNOLOGY INC Image Size menu gt Full Image Set buffer sizes of the channels showed on display panel to full image size Ciflmage Set buffer sizes the channels showed on display panel to cif image size gt Qcif Image Set buffer sizes the channels showed on di
24. initializes the ports of the Angelo Series card Each application program must call this function before any other func tions can be used If the initialization is executed successfully it returns a value of 0 Note There are four ports on the RTV 24 cRTV 24 and cRTV 44 series cards and one port on the PMC RTV21 AngeloRTV Close Releases all resources from the ports AngeloRTV Software Reset Resets the port to its initial state AngeloRTV Read Serial This function can read a 48 bit unique ID and store in 2 Long interger AngeloRTV Get Version Used to get the current version of AngeloRTV card driver and AngeloRTV dll file Syntax C C Windows CE NET I16 AngeloRTV Initial U16 PortNo Function Library A ADLINK PA 116 AngeloRTV Close U16 PortNo 116 AngeloRTV Software Reset U16 PortNo U16 AngeloRTV Read Serial U16 CardNo U32 Hi ghByte U32 LowByte I16 AngeloRTV Get Version U32 DriverVersion U32 DLLVersion U32 Reserved Visual Basic Windows CE NET AngeloRTV Initial ByVal PortNo As Integer As Integer AngeloRTV Close ByVal PortNo As Integer As Integer AngeloRTV Software Reset ByVal PortNo As In teger As Integer AngeloRTV Read Serial Byval CardNo as Integer By LO Ref HighByte As Long ByRef LowByte As ng As Integer AngeloRTV Get Version ByRef DriverVersion As Lo Re ng ByRef DLLVersion As Long ByRef Served As Long As Integer Delphi Wi
25. this function to DLL the DLL will link the event and interrupt automatically AngeloRTV Set Callback Links the callback function when an interrupt is generated to host pc Note There are two ways to use the synchronization mechanism one is the callback function and the other is the thread func tion Syntax C C Windows CE NET I16 AngeloRTV Get Int Status U16 PortNo U32 IntStatus I16 AngeloRTV Set Int Event U16 PortNo HANDLE hEvent Function Library 111 A ADLINK PA i 116 AngeloRTV Set Callback U16 PortNo void _ stdcall CallBackProc U32 VideoBufferaddress U16 PortNo Visual Basic Windows CE NET AngeloRTV Set Int Event ByVal PortNo As Integer ByRef hEvent As Long As Integer AngeloRTV Get Int Status ByVal PortNo As Integer ByRef IntStatus As Long As Integer AngeloRTV Set Callback ByVal PortNo As Integer ByVal CallBack As Long As Integer Delphi Windows AngeloRTV Set Int Event PortNo Smallint var hEvent Integer Smallint AngeloRTV Get Int Status PortNo Smallint var IntStatus Longint Smallint AngeloRTV Set Callback PortNo Smallint lpCallBac kProc CallbackFunc Smallint Argument PortNo Port number is the zero index of the Angelo series card For exam ple if there are two PCI RTV 24 Angelo cards card 0 card 1 in the system and each PCI RTV 24 has four ports the first port of card O is O and the first port of card 1 is 4
26. with the Angelo RTV series RTV 24 cRTV 24 cRTV 44 and PMC RTV21 G VIs for Windows 98 NT 2000 XP operation sys tems and LabView sample programs are provided for users ref erence 1 2 Applications PC Based Surveillance System Digital Video Recorder DVR Factory Monitoring System Machine Vision Inspection System Scientific Research Instrumentation Medical Research Instrumentation vvv vV VvV V 1 3 System Requirements The minimum system requirements for 4 CH real time NTSC PAL color image acquisition are gt Platform Pentium 4 2 4GHz CPU 256MB DDRAM above gt VGA display AGP 4X or above VIA or SiS VGA chipset NOT recommended Display setting 800 x 600 resolution or above 16 bit color or above OS ifusing Windows 2000 please upgrade to Service Pack 4 0 or above Note Lower system configurations will lower acquisition perfor mance Note Please refer to section 1 4 RTV 24 Benchmark for the per formance issues due to PCI bus bandwidth limitations NTSC real time color images Provides 640 x 480 pixel image resolution at the RGB 16 bit color format Each channel acquires 30 frames per second with 4 CH totaling up to 120 frames per sec ond PAL real time color images Provides 768 x 576 pixel image resolution at the RGB 16 bit color format Each channel acquires 25 frames per second with 4 CH totaling up to 100 frames per sec ond A ADLINK y i 1 4 RTV 24 Benchmarks Mo
27. 0 4 1 Overview ViewCreatorPro offers the following features 32 bit 64 bit operation under Windows XP Vista WDM or DirectShow driver Angelo series cards access and configuration Video picture adjustments Image file saving BMP or JPG Direct access to general purpose l Os FULL CIF or OCIF Image size 2x2 or 4x4 display Software triggering ww vv YV ViewCreatorPro Utility 67 A ADLINK 4 2 Component Description Start the utility and the view should like below rate 00 fps total Dframes ratio 1 00 1 00 ae fl Por a Port i Ei RTV 24_Can 0 WDM 68 ViewCreatorPro Utility A ADLINK PA i 4 3 Operation Theory ViewCreatorPro provides many functions for the Angelo RTV series cards as described below 4 3 1 Devices Panel Devices x B Local EE RTV 24 Card DirectShow Port CHI CH2 CH3 Local Current active Device All operations will apply to this device H si Inactive Device Click the port after this icon to activate this device Current active port All operations will apply to this port Inactive port Click the port after this icon to activate this port Current active channel All operations will apply to this channel Inactive channel Click the port after this icon to activate this channel x Close this panel ViewCreatorPro Utility 69 A ADLINK PA i 4 3 2 Adjustment Panel A panel allows user adjusting vid
28. 3 A ADLINK PA i 577 Show Hide Y Values Show or hide the y value of the pixels u A Show Hide U Values Show or hide the u value of the pixels v P d Show Hide V Values Show or hide the v value of the pixels Focus Cross See pixel values of the selected point of the image on toolbar The display image shows a blue cross line on it Click mouse on the display image to move the selected point 4 3 4 Status Bar Port CHO p 3323 v 16 rate 00 fps total Oframes ratio 1 00 1 00 From left to right the panel items are status host cursor position pixel value frame rate total captured frames and magnification horizontal ratio vertical ratio 74 ViewCreatorPro Utility A ADLINK TECHNOLOGY INC e 4 3 5 Display Panel Press left mouse button on the image and then there will be a blue frame around the image It means the image is selected If user wants select more images please keep pressing Ctrl and click the other images Like the picture below the up left channel and down right channel are selected Then user can adjust these images size by Fit Size Original Size Zoom In and Zoom out button ViewCreatorPro Utility 75 A ADLINK TECHNOLOGY INC Press left mouse button and then drag it display panel will appear a green rectangle region which will be zoomed in Keep pressing Shift during dragging the image will be zoomed in at the same proportion of width and
29. 3 Byte 2 Byte 1 Byte 0 Bit 31 24 Bit 23 16 Bit 15 8 Bit 7 0 RGB32 DwO Appha R G B RGB24 DwO B1 RO GO BO Dw1 G2 B2 R1 G1 Dw2 R3 G3 B3 R2 RO 31 27 RO 15 11 RGB16 DwO G0 26 21 G0 10 5 B0 20 16 B0 4 0 Table 5 3 Pixel Data 122 Function Library A ADLINK PA Format DWORD 32Bit Pixel Data 0 RO 30 26 0 RO 14 10 RGB15 DwO G0 25 21 GO 9 5 BO 20 16 BO 4 0 Gray Scale Y8 DwO Y3 Y2 Y1 YO Table 5 3 Pixel Data Syntax C C Windows CE NET I16 AngeloRTV Copy Frame U16 PortNo U8 Dest Address U32 Size Byte 116 AngeloRTV Get Frame U16 PortNo U32 Start Address U32 Width U32 Height U32 Size Byte 16 AngeloRTV Save File U16 PortNo char FileName U8 FileFormat U32 nQuality Visual Basic Windows CE NET AngeloRTV Copy Frame ByVal PortNo As Integer Dest Address As Byte ByVal Size byte As Long As Integer AngeloRTV Get Frame ByVal PortNo As Integer ByRef Start Address As Long ByRef Width as Long ByRef Height As Long ByRef Size byte As Long As Integer AngeloRTV Save File ByVal PortNo As Integer ByVal FileName As String ByVal FileFormat As Byte ByVal nQuality As Long As Integer Delphi Windows AngeloRTV Copy Frame PortNo Smallint var Dest Address Byte Size byte Longint Smalli nt AngeloRTV Get Frame PortNo Smallint var Start Address Pointer var Width Longint var
30. 3 are for channel 3 Hardware Reference 33 A ADLINK PA i PIN Function PIN Function 1 IN2 External interrupt 6 GND 2 OUT2 7 GND 3 IN3 External interrupt 8 GND 4 OUT3 9 5V 5 GND Table 2 29 GPIO 1 Pinout 34 Hardware Reference A ADLINK PA i 2 3 PMC RTV Series 2 3 1 PMC RTV21 Specifications Video Input Four composite video color digitizers Video input interface DB 9 female connectors Coaxial cable recommended General Purpose I O Lines Thel O lines are TTL compatible with 1 input and 1 output GPIO interface gt One DB 9 male connector gt The VO lines are internally pulled up and have the follow ing characteristics Voltage MIN MAX Input high voltage 200A 2 0V 5 25V Input low voltage 0 20A 0 0V 0 80V Output high voltage 1 0mA 5 0V Output low voltage 100 0mA 0 5V Table 2 30 GPIO Characteristics User EEPROM Includes 1kbit available EEPROM Form Factor gt 32bit 33MHz PMC socket board Hardware Reference 35 A ADLINK TECHNOLOGY INC TE fingelo so gunt 3210t8 0012 EID IL Figure 2 11 PMC RTV21 Appearance Dimensions WxL 74 mm x 149 mm Operating Environment gt Temperature 0 to 55 C Humidity 5 to 90 RHNC Storage Environment gt Temperature 0 to 70 C gt Humidity 0 to 95 RHNC Power Requirements gt 5V max 0 35A PM
31. 32 12ms 128 8ms p 253 60us Multiplex Indicates the trigger output ports in Angelo series cards gt Bit 0 Port 0 on each card 0 for disable 1 for enable Bit 1 Port 1 on each card 0 for disable 1 for enable gt Bit 2 Port 2 on each card 0 for disable 1 for enable Bit 3 Port 3 on each card 0 for disable 1 for enable For example Multiplex 7 1 only port O in each Angelo series card gener ates a trigger output Multiplex 7 2 only port 1 in each Angelo series card gener ates a trigger output gt Multiplex 15 four ports in each Angelo series card gener ates a trigger output Return Code gt 0 ERROR NoError 7 ERROR Not Initialized Make sure the port has been initialized by AngeloRTV_ Initial gt 9 ERROR Invalid PortNo Please input the correct PortNo parameter 2 Example lt VC BCB gt AngeloRTV Trigger Config AngeloRTV Trigger Start 120 Function Library A ADLINK PA 116 Result U16 CardNo 0 U16 PortNo 0 U16 Multiplex 1 U16 Interval 32 Result AngeloRTV Trigger Config PortNo Interval Result AngeloRTV Trigger Start CardNo Multiplex lt Visual Basic gt AngeloRTV Trigger Config AngeloRTV Trigger Start Dim Result As Integer Dim CardNo As Integer Dim PortNo As Integer Dim Multiplex As Integer Dim Interval As Integer CardNo 0 PortNo 0 ultiplex 1 Interval 32 Result AngeloRTV Trigger Config PortNo Interval Result An
32. 82 List of Tables iii ADLINK TECHNOLOGY INC y Table 5 2 C C Data Types 83 Table 5 3 Pixel Data 1 aaa 122 List of Tables iv A ADLINK PA i List of Figures Figure 2 1 PCle RTV24 Appearance ee 9 Figure 2 2 Trigger Signal Waveform een 11 Figure 2 3 Trigger Signal Waveform eee 16 Figure 2 4 RTV 24 Appearance 16 Figure 2 5 RTV E4 Appearance 21 Figure 2 6 RTV I4 Appearance ee ee RR AA Re ee ee ee ee 22 Figure 2 7 Relay Address Jumpers een 23 Figure 2 8 STRG Address Jumpers sese 24 Figure 2 9 cRTV 24 Appearance renesse 27 Figure 2 10 cRTV 44 Appearance eee 31 Figure 2 11 PMC RTV21 Appearance ee ee ee ee ee ee 36 Figure 2 12 PMC RTV21 Video Input amp GPIO 37 Figure 2 13 PMC RTV24 Appearance ee ees ee ee ee ee 41 Figure 2 14 PMC RTV24 Video Input amp GPIO 41 Figure 3 1 RTV 24 Installation eee 43 Figure 3 2 cRTV 24 3U CPCl ee ee ee ee ee ee ee 45 Figure 3 3 cRTV 44 6U CPCl ee ee ee ee ee ee 46 Figure 3 4 RTV E4 Attachment een 48 Figure 3 5 RTV I4 Attachment eee eee 49 Figure 5 1 Video Frame eese 91 List of Figures V A ADLINK TECHNOLOGY INC A ADLINK PA i 1 Introduction The RTV series ac
33. A ADLINK yp RTV Series Multi Channel Real Time Video Frame Grabber Series User s Manual Manual Rev 2 03 Revision Date April 22 2009 Part No 50 1R001 1010 Fenced Paper Advance Technologies Automate the World A FA ADLINK TECHNOLOGY INC Copyright 2009 ADLINK TECHNOLOGY INC All Rights Reserved The information in this document is subject to change without prior notice in order to improve reliability design and function and does not represent a commitment on the part of the manufacturer In no event will the manufacturer be liable for direct indirect spe cial incidental or consequential damages arising out of the use or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copy right All rights are reserved No part of this manual may be repro duced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks Product names mentioned herein are used for identification pur poses only and may be trademarks and or registered trademarks of their respective companies A ADLINK e Getting Service from ADLINK Customer Satisfaction is top priority for ADLINK Technology Inc Please contact us should you require any service or assistance ADLINK TECHNOLOGY INC Web Site http www adlinktech com Sales amp Service Service adlin
34. Active High Offset The offset address of the EEPROM This parameter is valid between 0 and 127 Value The value in Byte data type this parameter is valid between 0 and 255 LEDStatus Use the parameter to set the LED status gt LEDStatus 1 High LEDStatus 0 Low Return Code gt 0 ERROR NoError gt 7 ERROR Not Initialized Make sure the port has been initialized by AngeloRTV Initial gt 9 ERROR Invalid PortNo Please input the correct PortNo parameter p 15 ERROR Invalid Address a valid offset address is between 0 and 127 Example VC BCB AngeloRTV Set GPIO Sts Function Library 107 ADLINK A PP AngeloRTV Get GPIO Sts I16 Result I16 PortNo 0 U8 Status 1 Result Result Sta tus AngeloRTV Set GPIO Sts AngeloRTV Get GPIO Sts AngeloRTV Set GPIO Int Logic I16 Result U16 PortNo 0 U16 Logic 0 Result AngeloRTV Set GPIO Int Logic Logic AngeloRTV Write EEPROM AngeloRTV Read EEPROM I16 Result I16 PortNo 0 U8 Offset 0 U8 Value 128 Result Value AngeloRTV Write F EPROM PROM Result AngeloRTV Read amp Value AngeloRTV_Set LED Sts I16 Result U16 PortNo U8 LEDStatus PortNo O LEDStatus Result AngeloRTV Set_L LEDStatus lt Visual Basic gt AngeloRTV Set GPIO Sts AngeloRTV Get GPIO Sts Dim Result As Integer Dim PortNo As Integer Dim Status As Byte
35. Browse Window Help 3 Push the upper left Run button and you can see a cap tured frame on the front panel 154 Programming Guide TECHNOLOGY INC e A ADLINK Get Help of RTV LVIEW You can display the Context Help window by selecting Help gt gt Show Context Help LabVIEW will show the information of the RTV LVIEW VI when you move the cursor over it lE Context Help AngeloRTY Snap vi Gets an image and creates the data necessary for the image to be displayed in a picture control Programming Guide 155 A FN 156 ADLINK TECHNOLOGY INC 6 3 Linux Programming Guide Introduction Video4 Linux or V4L is intended to provide a standard video cap ture application programming interface on Linux V4L is in its sec ond version V4L2 driver include a compatibility mode for V4L1 application that is V4L application can mix the two modes of V4L1 and V4L2 A complete documentation on V4L application programming can be found at http www linuxtv org downloads video4linux API V4L2 API The document gives a very detailed description of all APIs Famil iar with it will great help you in writing your video capturing applica tion A simple sample In this chapter we provide a simple sample as how to program RTV cards Open device The first step is to open a RTV device with open The first parameter in it is device name which can be listed under directory dev with a pre
36. C RTV21 Standard Accessories User Manual gt All in One CD Hardware Reference A ADLINK TECHNOLOGY INC PMC RTV21 Connectors amp Pin Definition Video input GPIO Figure 2 12 PMC RTV21 Video Input amp GPIO 1 5 Dig 6 9 PIN Function PIN Function 1 GND 6 CHO Video In 2 CH1 Video In 7 GND 3 GND 8 CH2 Video In 4 CH3 Video In 9 GND 5 ii Table 2 31 Video Input Hardware Reference 37 A ADLINK PA i PIN Function PIN Function 1 INO External interrupt 6 GND 2 OUTO 7 GND 3 8 GND 4 9 5V 5 GND Table 2 32 GPIO Pinout 38 Hardware Reference A ADLINK TECHNOLOGY INC e 2 3 2 PMC RTV24 Specifications DE oum N n eU LLU Dimensions gt WxL 74 mm x 149 mm Operating Environment Temperature 0 to 55 C Humidity 5 to 90 RHNC Storage Environment gt Temperature 0 to 70 C Humidity 0 to 95 RHNC Power Requirements gt 5V max 1 5A p 3 3 V max 0 5A Video Input Four composite video color digitizers Video input interface DB 9 female connectors Coaxial cable recommended Hardware Reference 39 A ADLINI mn General Purpose I O Lines The I O lines are TTL compatible with 1 input and 1 output GPIO interface One DB 15 male connector The VO lines are internally pulled up and have the fol low ing characteristics 40 Hardw
37. CH4 video in 3 CH5videoin 4 GND 5 GND 6 CH6 video in 7 CH7 video in 8 GND 9 GND 10 GND Table 2 3 Channel Extension Video Input CN2 00000 wo D DD PIN Function PIN Function 1 GND 2 CH8 video in 3 CH9 video in 4 GND 5 GND 6 CH10 video in 7 CH11 video in 8 GND 9 GND 10 GND Table 2 4 Channel Extension Video Input CN3 12 Hardware Reference A ADLINK PA i D00000 i O D D UO PIN Function PIN Function 1 GND 2 CH12 video in 3 CH13videoin 4 GND 5 GND 6 CH14 video in 7 CH15videoin 8 GND 9 GND 10 GND Table 2 5 Channel Extension Video Input CN5 PIN Function PIN Function 1 INO External interrupt 2 GND 3 OUTO 4 Software Trigger 0 5 IN1 External interrupt 6 Software Trigger 1 7 OUT1 8 5V 9 GND 10 Table 2 6 GPIO CN8 Hardware Reference 13 A ADLINIC y i 00000 eo Hl D D D PIN Function PIN Function 1 IN2 External interrupt 2 GND 3 OUTO 4 Software Trigger 2 5 IN3 External interrupt 6 Software Trigger 3 7 OUT1 8 5V 9 GND 10 Table 2 7 GPIO CN9 PIN Function 1 System reset oo 2 ae JP Table 2 8 Watchdog Timer 14 Hardware Reference A ADLINK P 2 1 2 RTV 24 Specifications Video Input Four composite video color
38. E EES SN EG K RES KERE kn 81 5 1 List of FUNCtIONS eee eee ee ee ee 82 5 2 C C Programming Library u 83 5 3 System FUNCTIONS 84 5 4 Configuration Functions eee 90 5 5 Image Grabbing eee 100 5 6 GPIO 8 EEPROM Functions ee 105 5 Callback 8 Thread Functions eee 111 5 8 Watchdog Timer 117 5 9 Software Trigger een 119 5 10 Frame Buffer 5 e ees nane esed 122 5 11 Angel RTV LabVIEW Function Library 127 6 Programming Guide sss 135 6 1 DirectShow Programming Guide 135 6 2 LabVIEW Programming Guide 150 6 3 Linux Programming Guide ee 156 1 Appendhi iis EES EES EES EES GEE EE EE SEGE EER Ee ER k SKA S KKK NHA BAE 165 Me EE EE Bp OP e EEN 165 7 2 Standards Compliance 167 ii Table of Contents A ADLINK amo List of Tables Table 1 1 RTV Series Acquisition Speed 1 Table 2 1 GPIO Characteristics ee 10 Table 2 2 RTV Video Inputs een 11 Table 2 3 Channel Extension Video Input CN2 12 Table 2 4 Channel Extension Video Input CN3 12 Table 2 5 Channel Extension Video Input CN5 13 Table 2 6 GPIO CNB eee eee nen 13 Table 2 7 GPIO CN9 eee n 14 Table 2 8 Watchdog Timer a 14 Table 2 9 GPIO Characteristics ee 15 Table 2 10 RTV Video
39. Environment gt Temperature 0 to 55 C Humidity 5 to 90 RHNC 16 Hardware Reference A ADLINK PA Storage Environment Temperature 0 to 70 C Humidity 0 to 95 RHNC Power Requirements gt 5V max 1 5A gt 3 3 V max 0 5A RTV 24 Standard Accessories Watchdog reset cable GPIO bracket User Manual gt Allin One CD RTV 24 Connectors amp Pin Definitions Connector Definition O Video IN CH 0 Q Video IN CH 1 Q Video IN CH 2 Video IN CH 3 Table 2 10 RTV Video Inputs Hardware Reference 17 ADLINI TECHNOLOGY INC A FA 00000 ip 0 Darm PIN Function PIN Function 1 GND 2 CHA video in 3 CH5videoin 4 GND 5 GND 6 CH6 video in 7 CH7 videoin 8 GND 9 GND 10 GND Table 2 11 Channel Extension Video Input CN2 00000 wo D DD PIN Function PIN Function 1 GND 2 CH8 video in 3 CH9 video in 4 GND 5 GND 6 CH10 video in 7 CH11 video in 8 GND 9 GND 10 GND Table 2 12 Channel Extension Video Input CN3 18 Hardware Reference A ADLINK PA i D00000 i O D D UO PIN Function PIN Function 1 GND 2 CH12 video in 3 CH13 video in 4 GND 5 GND 6 CH14 video in 7 CH15 video in 8 GND 9 GND 10 GND Table 2 13 Channel Extension Video Input CN5 PIN Function PIN Functi
40. FAILURE buffers n buffers length buf length buffers n buffers start mmap NULL start anywhere buf length PROT READ PROT WRITE required MAP SHARED recommended fd buf m offset if MAP FAILED buffers n buffers start exit EXIT FAILURE 160 Programming Guide ADLINK TECHNOLOGY INC e J Start capturing void start capturing void unsigned int i enum v412 buf type type for i 0 i lt n buffers tti struct v412 buffer buf memset amp buf 0 sizeof buf buf type V4L2 BUF TYPE VIDEO CAPTURE buf memory V4L2 MEMORY MMAP buf index i if 1 ioctl fd VIDIOC_QBUF amp buf exit EXIT FAILURE type V4L2 BUF TYPE VIDEO CAPTURE if 1 ioctl fd VIDIOC STREAMON amp type exit EXIT FAILURE Stop capturing Void stop capturing void enum v412 buf type type type V4L2 BUF TYPE VIDEO CAPTURE if 1 ioctl fd VIDIOC STREAMOFF amp type Programming Guide 161 A ADLINK PA i 162 Read frame Read frame image when an image was ready and prepare next Int read frame void struct v412 buffer buf memset amp buf 0 sizeof buf buf type V4L2 BUF TYPE VIDEO CAPTURE buf memory V4L2 MEMORY MMAP M read frame if 1 ioctl fd VIDIOC DOBUF amp buf swit
41. Height Longint var Size byte Longint Smallint AngeloRTV Save File PortNo Smallint FileName Str ing FileFormat Byte nQuality LongIng Smallint Argument PortNo Function Library 123 A FA ADLINK TECHNOLOGY INC Port number is the zero index of the Angelo series card For exam ple if there are two PCI RTV 24 Angelo cards card 0 card 1 in the system and each PCI RTV 24 has four ports the first port of card O is O and the first port of card 1 is 4 Dest Address User allocated destination memory address or array Start Address Memory start address of the video frame Width Image width Height Image height Size Byte Memory size in bytes FileName File name to save to Remember to add the file extension name FileFormat File format to save to gt 0 TIF gt 1 BMP 2 JPEG nQuality This parameter in used only for the JPEG file format Return Code gt 0 ERROR_NoError gt 7 ERROR Not Initialized Make sure the port has been initialized by AngeloRTV Initial gt 9 ERROR Invalid PortNo Please input a correct PortNo parameter Example VC BCB AngeloRTV Copy Frame I16 Result U16 PortNo 0 124 Function Library ADLINK TECHNOLOGY INC e J U32 Size Byte 640 480 3 U8 Dest Address NULL Dest Address U8 malloc Size Byte Result AngeloRTV Copy Frame PortNo Dest Address Size Byte AngeloRTV Get Frame I16
42. I2C bDontWaitACK hr pKs gt Get PROPSETID CUSTOMBT848 KSPROPERTY CUSTO BT848 I2C TRU ti T INSTANCE DATA OF PROPERTY PTR amp I2C INSTANCE DATA OF PROPERTY SIZE I2C amp I2C sizeof I2C amp ret pKs gt Release return I2C ucInBuf 1 Programming Guide 145 A TONI void offset BYT E value Purpose Write the value to E Parameters pFilter In offset the offset address of EEPROM the data to E EPROM terface of BT878 fi value EPROM IKsPropertySet pKs DWORD TypeSupport 0 KSPROPERTY CUSTOMBT848 I2C S I BYTE uAddress HRESULT hr ULONG ret 0 NULL ti if pFilter NULL return if hr pFilter gt OueryInterface IID IKsPropertySet amp pKs S OK hr pKs EEPROMWrite IBaseFilter pFilter BYTE lter 0 127 based on starting AO void gt OuerySupported PROPSETID CUSTOMBT848 KSPROPERTY CUSTOMBT848 I2C amp TypeSupport if TypeSupport amp KSPROPERTY SUPPORT GET uAddress the EEPRO Set Zero I2C bDontWaitACK I2C dwOperation BT848 CUSTPROP I2C S I2C dwFreq 100000 device t 146 0xa0 address for frequency first emory amp I2C sizeof I2C rue ETFREO Programming Guide A ADLONE J hr pKs gt Get PROPSETID CUSTOMBT848 KSPROPERTY
43. IEW Vls you have to switch the Controls Func tions palettes to the ADLINK Vision palette view first In Lab VIEW 7 0 select Tools gt gt Options to display the Options dialog box Select Controls Functions Palettes from the top pull down menu in the Options dialog box and select ADLINK Vision from the Palette View pull down menu Options Controls Functions Palettes Palette View ADLINK Vision Lise Window Titles in Functions palette Allow search in temporary palette Format Standard Navigation Buttons Label Selected Icons Palette Loading 9 Load palettes in background O Load palettes when needed O Load palettes during launch To customize a palette view exit this dialog box and select Tools Advanced Edit Palette Views Cancel Click OK button Then ADLINK Vision icon is shown in the Func tions palette 150 Programming Guide TECHNOLOGY INC A ADLINK Click ADLINK Vision icon to display the ADLINK Vision palette view Then click the AngeloRTV icon you can find RTV LVIEW Vls i gt ADLINK DE at A Seach d lb AngeloRTY Quse t l Fal ord HE EM SE Ex Ed Ed Ex 4 E Oe d Ed P3 F3 E3 amp GEE In LabVIEW 6 click the Options button on the Functions palette toolbar to display the Function Browser Options dialog box Programming Guide 151 A ADLI
44. Int Size Byte LongIng Width LongIng Height LongIng Str Add Pointer PortNo 0 Result AngeloRTV Get Frame PortNo Str Add Width Height Size Byte AngeloRTV Save File Var Result SmallInt PortNo SmallInt File Format Byte NQuality LongInt PortNo 0 File Format 2 Nquality 25 Result AngeloRTV Save File PortNo Image jpg File Format Nquality Function Library A ADLINK PA i 5 11 Angel RTV LabVIEW Function Library AngeloRTV Init vi This VI initializes the port of RTV card Set video format and color format for the port of RTV card Call this VI before AngeloRTV Snap vi Video Format 0 Full NTSC 640 480 1 Full PAL 768 576 2 CIF NTSC 320 240 3 CIF PAL 384 288 4 QCIF NTSC 160 120 5 QCIF PAL 192 144 Color Format RGB16 GRAY RGB15 RGB24 RGB32 RGB8 RAW8X YUY2 4 2 2 BtYUV 4 1 1 o AngeloRTV_Snap vi Obtain an image and output the image data for picture control AngeloRTV_Close vi Release resources of all ports AngeloRTV_Software_Reset vi Reset the port to its initial state Function Library 127 A FN ADLINK TECHNOLOGY INC AngeloRTV_Hardware_Initial vi This VI initializes the port of RTV card Each application program must call this function before any other function If the initialization succeeds it returns a value 0 AngeloRTV_Hardware_Close vi Release resources of all ports AngeloRTV_Int_Enable vi This
45. IntStatus Interrupt status Bit 0 GPIO interrupt when Digital input channel is changed Bit 1 Channel 0 Image ready Bit 2 Channel 1 Image ready Bit 3 Channel 2 Image ready Bit 4 Channel 3 Image ready hEvent Interrupt event handle vvv yv 112 Function Library A ADLINIC PA Return Code gt 0 ERROR NoError gt 7 ERROR Not Initialized Make sure the port has been initialized by AngeloRTV Initial gt 9 ERROR Invalid PortNo Please input the correct PortNo parameter Example lt VC BCB gt Use Thread HANDLE hEvent NULL void pThread NULL U32 threadID U16 PortNo 0 DWORDnObj U32 Size Byte U32 Status 0 I16 ISR ON 0 DWORD WINAPI IntThreadProc LPVOID lpParam while ISR ON nObj WaitForSingleObject hEvent INFINITE AngeloRTV Get Int Status PortNo amp Status if Status amp 0x01 1 GPIO if Status gt gt 1 amp 0x01 1 Channel 0 of the nPort else if Status gt gt 2 amp 0x01 1 Channel 1 of the nPort else if Status gt gt 3 amp 0x01 1 Channel 2 of the nPort else if Status gt gt 4 amp 0x01 1 Channel 3 of the nPort Function Library 113 A ADLINK PA i ResetEvent hEvent Return TRUI Fl AngeloRTV Set Int Event PortNo amp hEvent pThread CreateThread NULL 0 IntThreadProc 0 0 amp threadID Use Callback Function
46. MC socket may be integrated with the cPCI CPU board or as a standalone system board for an embedded system Use the following steps to install the PMC RTV series board onto the PMC socket 1 Remove the computer cover using the instructions from the computer manual 2 Check that there is an empty PMC 32 bit socket to accommodate the board If there is not an empty slot remove a PMC board from your computer to make room 3 Carefully position PMC RTV21 onto the PMC socket 4 Once perfectly aligned with an empty PMC socket press the board firmly but carefully into the connector 5 Connect the video sources for image acquisition tests For details refer to the ViewCreator Utility 6 Turn on the computer In some cases when the com puter boots up the Plug and Play feature of Windows will detect the new PCI card 8 times 1 video and 1 audio and you will require drivers For details see the Installation Guide Installation Guide 47 Amie 3 1 4 RTV E4 Extension Board Optional 1 For main board installation please refer to RTV series 2 Each RTV E4 will attach one signal cable for connect with RTV 24 as below BE Da Di Figure 3 4 RTV E4 Attachment 48 Installation Guide TECHNOLOGY INC 4 ADLINK 3 1 5 RTV l4 Extension Board Optional 1 For main board installation please refer to RTV series 2 Each RTV l4 will attach one signal cable for connect with RTV 24 as below
47. NK TECHNOLOGY INC Select ADLINK Vision from the Palette Set pull down menu and click OK button Function Browser Options Palette Set ADLINK Vision Format Standard 7 Edit Palettes Gamal Then you can see the ADLINK Vision Functions Palette as below 9 152 Programming Guide A ADLINK TECHNOLOGY INC e How to Program with RTV LVIEW Here we provide a simplest sample showing how to capture a frame with RTV LVIEW VI For more complicated samples with RTV LVIEW you can reference those located in the C Program Files ADLINK RTV LVIEW Samples folder 1 Open a blank VI and switch to the block diagram Drag and drop AngeloRTV Init vi AngeloRTV Snap vi and AngeloRTV_Close vi on the block diagram tled 1 Block Diagram is Browse window Hel Untitled 1 Block Diagram m File Edit Operste Tool Browse Window Help ei 1 bla e u bol 12pt Application Font FE E EA 2 l Programming Guide 153 ADLINK TECHNOLOGY INC 2 Create Constant or Control to each input and connect these Vls In order to show the captured frame on the front panel we also drag and drop another VI provided by LabVIEW named Draw Flattened Pixmap vi Untitled 1 Block Diagram File Edit Operate Tools
48. No HighByte LowByte AngeloRTV Get Version Var Result Smallint DriverVersion array 1 4 of Longint DLLVersion array 1 4 of Longint Reserved array 1 4 of Longint strDriverVersion strDLLVersion String Function Library Result DriverVersion 1 Reserved 1 strDriverVersion IntToStr DriverVersion 1 strDriverVersion strDriverVersion IntToStr DriverVersion 2 strDriverVersion strDriverVersion IntToStr DriverVersion 3 strDriverVersion strDriverVersion IntToStr DriverVersion 4 strDLLVersion IntToStr DLLVersion 1 strDLLVersion strDLLVersion IntToStr DLLVersion 2 strDLLVersion strDLLVersion IntToStr DLLVersion 3 strDLLVersion strDLLVersion IntToStr DLLVersion 4 Function Library AngeloRTV Get Version DLLVersion 1 J ADLINK TECHNOLOGY INC e 89 A PF 90 ADLINK TECHNOLOGY INC 5 4 Configuration Functions Name AngeloRTV Set Image Config PortNo Configlndex Value Set the video adjustments AngeloRTV Get Image Config PortNo Configlndex Value Get the video adjustments AngeloRTV Set Color Format PortNo ColorFormat Set the color format AngeloRTV Get Color Format PortNo ColorFormat Get the color format AngeloRTV Set Video Format PortNo Value Set the video format AngeloRTV Get Video For
49. Node RTV 24 CardO WDM w intra Apply to C Port 0 I Port 1 A Port 2 A Port 3 Trigger ViewCreatorPro Utility 79 A ADLINK TECHNOLOGY INC 80 Help menu About Click Help in the menu bar and select About ViewCreator Pro to bring up the About ViewCreatorPro box This window will show ViewCreatorPro version About YiewCreatorPro ViewCreatorPro 1 0 0 0 Copyright C 2009 gt AboutDevice Click Help in the menu bar and select About Device to bring up the About Device box This window will show the driver version and dll version AboutDevice HEF B1878 sys 1 20 1 AngeloRTV dl 1 5 30 ViewCreatorPro Utility A ADLINK PA i 5 Function Library This chapter describes the API for Angelo RTV series cards Users can use these functions to develop application programs under Visual C Visual Basic C Builder C Visual Basic Net and Delphi Function Library 81 A ADLINK PA i 5 1 Category Section List of Functions Function System 5 3 AngeloRTV Initial PortNo AngeloRTV Close PortNo AngeloRTV Software Reset PortNo AngeloRTV Read Serial CardNo HighByte LowByte AngeloRTV Get Version DriverVersion DLLVersion Reserved Configuration 54 AngeloRTV Set Image Config PortNo ConfigIndex Value AngeloRTV Get Image Config PortNo ConfigIndex Value AngeloRTV Set C
50. PCI bus 1 5 Remove the computer cover using the instructions from the computer manual Check that there is an empty PCI 32 bit slot t accom modate the board If there is not an empty slot remove a PCI board from the computer to make room for the RTV 24 board and take note of the chosen slot number Remove the blank metal plate located at the back of the selected slot if any Keep the removed screw to fasten the RTV 24 board after installation Carefully position the RTV 24 in the selected PCI slot as illustrated below If using a tower computer orient the board to suit the board slots SCREW ee METAL PLATE PC form factor N 32 BIT FCI BOARD SLOT Figure 3 1 RTV 24 Installation Once perfectly aligned with an empty slot press the board firmly but carefully into the connector Installation Guide 43 A ADLINIC i 6 Anchor the board by replacing the screw 7 Connect your video sources for image acquisition tests For details refer to the ViewCreator Utility 8 Turn on the computer In some cases when the com puter boots up the Plug and Play feature of Windows will detect the new PCI card 8 times 4 videos and 4 audios and you will require drivers For details see the Installation Guide 3 1 2 cRTV Series Use the following steps to install the cRTV series board onto the Compact PCI bus 1 Remove the computer cover using the instructions from the compute
51. PROPERTY SIZE rc amp rc sizeof rc amp ret pKs gt Release DWORD GPIORead IBaseFilter pFilter Purpose Get the electronic level of the gpio pin Parameters pFilter Interface of BT878 filter A IKsPropertySet pKs NULL DWORD TypeSupport 0 KSPROPERTY CUSTOMBT848 GPIO S rc HRESULT hr ULONG ret 0 Programming Guide ADLINK TECHNOLOGY INC e J DWORD ReturnValue 0 DWORD bit 6 Offset of GPIO pin if pFilter NULL return 0 if pFilter gt QueryInterface IID IKsPropertySet void amp pKs S OK hr pKs gt QuerySupported PROPSETID CUSTOMBT848 KSPROPERTY CUSTOMBT848 GPIO amp TypeSupport if TypeSupport amp KSPROPERTY SUPPORT GET ZeroMemory amp rc sizeof rc rc dwOperation BT848 CUSTPROP GPIO GETGPDATABITS rc dwFromBit bit rc dwToBit bit rc dwOffset 0 hr pKs gt Get PROPSETID CUSTOMBT848 SPROPERTY CUSTOMBT848 GPIO INSTANCE DATA OF PROPERTY PTR amp rc INSTANCE DATA OF PROPERTY SIZE rc amp rc sizeof rc amp ret ReturnValue rc dwValue pKs gt Release return ReturnValue I Gi pH Programming Guide 143 A ADLINK Pp EEPROM Access ADLink Bt878 Video Capture provides a method for accessing I2C register The interface can store a few data for example board ident
52. PortNo 0 Status 1 Result AngeloRTV Set G ByVal Status Result AngeloRTV Get G ByRef Status 1 108 PortNo ED Sts PortNo PIO Sts PIO Sts PortNo PortNo PortNo Status amp PortNo Offset Offset ByVal PortNo ByVal PortNo Function Library AngeloRTV Set GPIO Int Logic Dim Result As Integer Dim PortNo As Integer Dim Logic As Integer PortNo 0 Logic 0 Result AngeloRTV Set GPIO Int Logic PortNo ByVal Logic AngeloRTV_Write_EEPROM AngeloRTV_Read_EEPROM Dim Result As Integer PortNo As Integer Offset As Byte Dim Value As Byte PortNo 0 Offset 0 Value 128 Result AngeloRTV Write EEPROM ByVal ByVal Offset ByVal Value Result AngeloRTV Read EF ByVal Offs Dim Dim ByRef Value Ly AngeloRTV Set LED Sts Dim Result As Integer Dim PortNo As Integer Dim LEDStatus As Byte PortNo 0 LEDStatus 1 Result AngeloRTV Set LED Sts ByVal LEDStatus ByVal A ADLINK PA ByVal PortNo PROM ByVal PortNo PortNo Delphi gt AngeloRTV Set GPIO Sts AngeloRTV Get GPIO Sts Var Result SmallInt PortNo SmallInt Status Byte PortNo 0 Status 1 Result AngeloRTV Set GPIO Sts PortNo Status Result AngeloRTV Get GPIO Sts PortNo Status AngeloRTV Set GPIO Int Logic Function Library 109
53. Relay Jumper Settings 22 Hardware Reference A ADLINIC PA i J6 J5 J8 J7 M c Figure 2 7 Relay Address Jumpers Relay VO voltage requirements Input 5V to 24V Output AC 0 5A 125V DC 1A 30V or 0 3A 100V STRG output signal select gt gt gt v STRG output signal types Active high or Active low Signal names STRG OUT1 STRG OUT2 STRG_OUT3 STRG OUT4 Jumper addresses J1 J2 J3 J4 Trigger output voltage OV to 5V Type select Active high 7222 3 Active low 7 1 2 Active High Active Low ZZ B 1 3 B Table 2 19 STRG Jumper Settings Hardware Reference 23 A ADLINK TECHNOLOGY INC 1 2 3 Figure 2 8 STRG Address Jumpers 24 Hardware Reference A ADLINK PA i 2R10P Input Pin Header Definitions D00000 i O D D 02 PIN Function PIN Function 1 GPIO Input 1 2 GND 3 GPIO Output 1 4 PORT1 STRG Output 5 GPIO Input 2 6 PORT2 STRG Output 7 GPIO Output2 8 VCC 9 GND 10 Table 2 20 RTV I4 GPIO CN1 lt gt RTV 24 GPIO CN8 D00000 eo O D D 02 PIN Function PIN Function 1 GPIO Input3 2 GND 3 GPIO Output 3 4 PORT3 STRG Output 5 GPIO Input4 6 PORTA STRG Output 7 GPIO Output4 8 VCC 9 GND 10 Table 2 21 RTV I4 GPIO CN2 lt gt RTV 24 GPIO CN9 Hardware Reference 25 A ADLINK TECHNOLOGY INC
54. Shield Wizard Installing AngeloRTVDirectShow The program features you selected are being installed Please wait while the InstallShield Wizard installs AngeloRTYDirectShow This may take several minutes Status Installshield Cancel 3 When the following window appears please click Con tinue Anyway Software Installation A The software you are installing has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the software vendor for software that has passed Windows Logo testing Continue Anyway STOP Installation i 58 Installation Guide A ADLINK TECHNOLOGY INC i AngeloRTYDirectShow InstallShield Wizard InstallShield Wizard Completed The InstallShield Wizard has successfully installed AngeloRTYDirectShow Click Finish to exit the wizard 4 Open the Device Manager and check for the following 8 items gt ADLINK Bt878 DirectX Audio Capture 4 instances gt ADLINK Bt878 DirectX Video Capture 4 instances Installation Guide 59 A ADLINK TECHNOLOGY INC 60 The Device Manager should be as follows Device Manager File Action View Help 2 m amp aesg ms Disk drives
55. U8 ConfigIndex U8 Value I16 AngeloRTV Get Image Config U16 PortNo U8 ConfigIndex U8 Value I16 AngeloRTV Set Color Format U16 PortNo U8 ColorFormat I16 AngeloRTV Get Color Format U16 PortNo U8 ColorFormat Function Library 91 A ADLINK I16 AngeloRTV Set Video Format U16 PortNo U8 VideoFormat I16 AngeloRTV Set Video Format U16 PortNo U8 VideoFormat 116 AngeloRTV Set Image Geometric U16 PortNo U32 X Offset U32 Y Offset U32 X Active U32 Y Active double X Scale double Y Scale I16 AngeloRTV Detect Video Format U16 PortNo U8 FormatValue Visual Basic Windows CE NET AngeloRTV Set Image Config ByVal PortNo As Integer ByVal ConfigIndex As Byte ByVal Value As Byte As Integer AngeloRTV Get Image Config ByVal PortNo As Integer ByVal ConfigIndex As Byte ByRef Value As Byte As Integer AngeloRTV Set Color Format ByVal PortNo As Integer ByVal ColorFormat As Byte As Integer AngeloRTV Get Color Format ByVal PortNo As Integer ByRef ColorFormat As Byte As Integer AngeloRTV Set Video Format ByVal PortNo As Integer ByVal VideoFormat As Byte As Integer AngeloRTV Set Video Format ByVal PortNo As Integer ByRef VideoFormat As Byte As Integer AngeloRTV Set Image Geometric ByVal PortNo As Integer ByVal X Offset As Long ByVal Y Offset As Long ByVal X Active As Long ByVal Y Active As Long ByVal X Scale As Double ByVal Y Scale As Double As Integer AngeloRTV Detect Video Format
56. VI links the event and the interrupt automatically AngeloRTV Wait Int vi Wait for interrupt events You can get a complete image data from the image buffer after this VI returns correctly AngeloRTV Set Video Format vi Set the Video format for the port of RTV card Valid color formats are NTSC EIA PAL CCIR AngeloRTV Get Video Format vi Retrieve the video format of the port AngeloRTV Set Color Format vi Set the color format for the port of RTV card Valid color format are gray scale RGB YUV Color Format RGB16 0 GRAY RGB15 RGB24 RGB32 RGB8 5 VV VV NV 128 Function Library A ADLINK PA i AngeloRTV_Get_Color_Format vi Retrieve the color format of the port AngeloRTV Set Image Config vi Adjust hue contrast saturation and brightness for the port of RTV card Configlndex 0 for BRIGHTNESS 1 for HUE 2 for SATURATION U 3 for SATURATION V 4 for CONTRAST LUMA 5 for luma notch filter for monochrome video the notch filter should not be used 6 for Gamma Correction Removal Range Default Value BRIGHTNESS 0 to 255 128 HUE 0 to 255 0 CHROMA U 0 to 255 127 CHROMA V 0 to 255 127 LUMA 0 to 255 112 LUMA notch filter O Enable or 1 Disable AngeloRTV Get Image Config vi Retrieve current hue contrast saturation and brightness of the port AngeloRTV Set Image Geometric vi This VI is used for image cropping and scaling X Scale This parameter
57. XIT FAILURE Select video input video standard and tune here if 1 ioctl fd VIDIOC S STD amp std Programming Guide 157 A ADLINK TECHNOLOGY INC exit EXIT FAILURE Change to the default channel int channel 0 if 1 ioctl fd VIDIOC S INPUT amp channel exit EXIT FAILURE memset amp cropcap 0 sizeof cropcap cropcap type V4L2 BUF TYPE VIDEO CAPTURE M if 0 ioctl fd VIDIOC CROPCAP amp cropcap crop type V4L2 BUF TYPE VIDEO CAPTURE crop c cropcap defrect reset to default if 1 ioctl fd VIDIOC S CROP amp crop switch errno case EINVAL Cropping not supported break default Errors ignored break else Errors ignored memset amp fmt 0 sizeof fmt fmt type V4L2 BUF TYPE VIDEO CAPTURE fmt fmt pix width 640 fmt fmt pix height 240 fmt fmt pix pixelformat V4L2 PIX FMT BGR24 fmt fmt pix field V4L2 FIELD ALTERNATE per field odd and even if 1 ioctl fd VIDIOC S FMT amp fmt exit EXIT FAILURE s 158 Programming Guide A P Memory map Memory map system call mmap allows the mapping of device memory directly into a user processor s address space From device viewpoint Direct Memory Access DMA operations pro vide peripherals with direct
58. _GPIO_Sts vi There is one digital output channel in each port of RTV card Use this VI to set digital output status 1 AngeloRTV Get GPIO Sts vi There is one digital input channel in each port of RTV card Use this VI to get the digital input status AngeloRTV Write EEPROM vi Write data into EEPROM Data in EEPROM will not be lost when power off Function Library A ADLINK PA WD Offset This parameter is valid between 0 and 127 Value Value in byte This parameter is valid between 0 and 255 AngeloRTV_Read_EEPROM vi Read data from EEPROM Data in EEPROM will not be lost when power off Offset This parameter is valid between 0 and 127 Value Value in byte This parameter is valid between 0 and 255 AngeloRTV_Read_Serial vi This VI can read a 48 bit unique ID and store in 2 long integers HighByte HighByte stores the upper 16 bit of Serial No LowByte LowByte stores the lower 32 bit of Serial No AngeloRTV_Save_File vi Save the current video frame into an image file TIF BMP or JPEG Quality is used only for JPEGs FileFormat gt 0 TIF gt 1 BMP gt 2 JPEG Function Library 133 A ADLINK PA i 134 Function Library A ADLINK PA i 6 Programming Guide 6 1 DirectShow Programming Guide Introduction A complete documentation on DirectShow application program ming can be found at http msdn microsoft com library default asp url library en us directx9_c directX htm introductiontodirectshow
59. access to system memory without CPU processing This can save large of time and loading that application or driver doesn t need to move data from devices to system memory Here we give and example showing how to set 4 buffer queues which store video data in turn global variables struct buffer void start size t length struct buffer buffers NULL static unsigned int n buffers 0 void init mmap void struct v412 requestbuffers reg memset amp req 0 sizeof reg req count 4 req type V4L2 BUF TYPE VIDEO CAPTURE req memory V4L2 MEMORY MMAP if 1 ioctl fd VIDIOC REOBUFS amp req if EINVAL errno fprintf stderr s does not support memory mapping n dev_name exit EXIT FAILURE else exit EXIT FAILURE if reg count 2 fprintf stderr Insufficient buffer memory on s n dev name exit EXIT FAILURE E M buffers calloc buffers req count sizeof Programming Guide ADLINK TECHNOLOGY INC 159 4 ADLINK if buffers fprintf stderr Out of memory n exit EXIT FAILURE for n buffers 0 n buffers lt req count trn buffers struct v412 buffer buf memset amp buf o sizeof buf buf type V4L2 BUF TYPE VIDEO CAPTURE buf memory V4L2 MEMORY MMAP buf index n buffers if 1 ioctl fd VIDIOC QUERYBUF amp buf exit EXIT
60. alue is 1 or 2 the video format of the port is NTSC Otherwise if the value is 3 4 or 5 the video format of the port is PAL Example lt VC BCB gt AngeloRTV Set Image Config AngeloRTV Get Image Config I16 Result I16 PortNo 0 U8 ConfigIndex 0 U8 Value 128 Result AngeloRTV Set Image Config ConfigIndex Value Result AngeloRTV Get Image Config ConfigIndex amp Value AngeloRTV Set Color Format AngeloRTV Get Color Format AngeloRTV Set Video Format AngeloRTV Get Video Format I16 Result I16 PortNo 0 U8 VideoFormat 0 U8 ColorFormat 3 PortNo PortNo Result AngeloRTV Set Color Format PortNo ColorFormat Result AngeloRTV Get Color Format PortNo amp ColorFormat Result AngeloRTV Set Video Format PortNo VideoFormat Result AngeloRTV Get Video Format PortNo amp VideoFormat AngeloRTV Set Image Geometric I16 Result I16 PortNo 0 U32 X Active 600 U32 Y Active 400 U32 X Offset 40 Function Library 95 A PF 96 ADLINK TECHNOLOGY INC U32 Y Offset 80 Double X Scale 1 0 Double Y Scale 1 0 Result AngeloRTV Set Image Geometric PortNo X Offset Y Offset X Active Y Active X Scale Y Scale AngeloRTV Detect Video Format I16 Result U16 PortNo U8 FormatValue PortNo 0 Result AngeloRTV Detect Video Format PortNo amp FormatValue lt Visual Basic gt AngeloRTV S
61. analog or digital source to a video capture filter Proprietary Interface GPIO Access The GPIO provides a method to read board information select input channel and control digital inputs digital outputs Sample define INSTANCE_DATA_OF_PROPERTY_PTR x PKSPROPERTY x 1 define INSTANCE DATA OF PROPERTY SIZE x sizeof x sizeof KSPROPERTY void GPIOWrite IBaseFilter pFilter DWORD value Purpose Set the electronic level of the gpio pin Parameters pFilter Interface of BT878 filter value 1 for high level and 0 for low level sy IKsPropertySet pKs NULL DWORD TypeSupport 0 KSPROPERTY CUSTOMBT848 GPIO S rc HRESULT hr ULONG ret 0 DWORD bit 6 Offset of GPIO pin if pFilter NULL return value value 0 1 its phase is inverse Programming Guide 141 A ADLINK TECHNOLOGY INC 142 if pFilter gt OueryInterface IID IKsPropertySet void amp pKs S OK hr pKs gt QuerySupported PROPSETID CUSTOMBT848 KSPROPERTY CUSTOMBT848 GPIO amp TypeSupport if TypeSupport amp KSPROPERTY SUPPORT GET ZeroMemory amp rc sizeof rc rc dwOperation BT848 CUSTPROP GPIO SETGPDAT ABITS rc dwFromBit bit rc dwToBit bit rc dwValue value rc dwOffset 0 hr pKs gt Get PROPSETID CUSTOMBT848 KSPROPERTY CUSTOMBT848 GPIO INSTANCE DATA OF PROPERTY PTR amp rc INSTANCE DATA OF
62. are Reference A ADLINK PA i Voltage MIN PIN Input high voltage 20 uA 2 0V 5 25V Table 2 33 GPIO Characteristics Voltage MIN PIN Input low voltage 0 2 uA 0 0V 0 80V Input high voltage 1 0 mA 5 0V Output low voltage 100 0 mA 0 5V Table 2 34 GPIO Characteristics User EEPROM Includes 1kbit available EEPROM Form Factor gt 32bit 33MHz PMC socket board Figure 2 13 PMC RTV24 Appearance PMC RTV24 Standard Accessories User Manual gt All in One CD PMC RTV24 Connectors amp Pin Definition VIDEO GPIO Figure 2 14 PMC RTV24 Video Input amp GPIO Hardware Reference 41 A FN ADLINI TECHNOLOGY INC PIN Function PIN Function 1 GND 6 CHO Video In 2 CH1 Video In 7 GND 3 GND 8 CH2 Video In 4 CH3 Video In 9 GND 5 Table 2 35 Video Input PIN Function PIN Function PIN Function 1 INO External interrupt 6 5V output Max 1A 11 OUTO 2 IN1 External interrupt 7 GND 12 OUT1 3 IN2 External interrupt 8 GND 13 OUT2 4 IN3 External interrupt 9 GND 14 OUT3 5 GND 10 GND 15 GND 42 Table 2 36 GPIO Pin out Hardware Reference A ADLINK PA i 3 Installation Guide 3 1 3 1 1 Hardware Installation RTV Series Use the following steps to install the RTV series board on the
63. artz lib do not call this function this library is not required The class library is required for all Microsoft DirectShowLib 2005 dll la Net applications 148 Programming Guide A ADLINK PA i Microsoft Visual C Users VC users need to setup the builder environment prior to start to build your program There are few steps you need to follow as below 1 Open the solution file baseclasses sln or the project file baseclasses dsw under DXSDK Sam ples C DirectShow BaseClasses and build it In above DXSDK is the path of DirectX SDK 2 Add the paths to the include directory in the settings of your project DXSDK include DXSDK Samples C DirectShow BaseClasses 3 Add the paths to the additional library directory in the settings of your project DXSDK Lib DXSDK Samples C DirectShow BaseClasses Release Net Programming Users Microsoft DirectShow only provides C programming As for net users they need convert DirectShow COM objects to net class Fortunately the work had been done as a sourceforge project Download the source codes and samples from http sourceforge net projects directshownet It is a good start to program your DirectShow codes by net languages We also pro vided samples dedicated to RTV cards in the installation directory Programming Guide 149 A ADLINK Pp i 6 2 LabVIEW Programming Guide ADLINK Vision Controls Functions Palettes To use RTV LV
64. asp If a DirectX 9 0 is installed this documentation is also available from DirectX SDK Help The main goal of writing a DirectShow Application is to build a filter graph by connecting several filters together to perform a given task such as previewing video audio capturing video audio and multiplexing them to write into a file Each filter performs a single operation and pass data from its output pin to the input pin of the next filter in the graph To build a capture graph using a program the first thing is to obtain the interface pointer of the capture filter The ADLink Bt878 Video Capture filter can be obtained through system device enu merator After holding an interface pointer to the capture filter object use method IGraphBuilder AddSourceFilter to add the source filter object to the filter graph Use IFilterGraph AddFilter to add other downstream filters to the filter graph After filters are added call IFilterGraph ConnectDirect or lGraph Builder Connect methods to connect output pins from upstream filters to the input pins of the downstream filters Calling methods IMediaControl Run IMediaControl Pause or IMediaCon trol Stop will change filter state to running paused or stopped The filters that are needed for capturing video streams are listed in next section with detailed information for each filter and its pins Example filter graphs for previewing capturing video streams are also illustrated in this chapter and
65. ch errno case EAGAIN return 0 case EIO Could ignore EIO see spec fall through default exit EXIT FAILURE prepare next frame if 1 ioctl fd VIDIOC OBUF amp buf exit EXIT FAILURE return 0 Programming Guide A ADLINK PA Proprietary properties Except standard APIs we also provide a proprietary IO control which can read and write external general purpose IO pin configure the direction in or out of each gpio bit prior to reading or writing gpio int config gpio void unsigned int value 0xC3FEFF if 1 ioctl fd BT878 S GPIO OUT ENABLE amp value return 1 return 0 int read gpio void unsigned int value if 1 ioctl fd BT878 G GPIO VALUE amp value return 1 value amp 0x100 bit 8 is used to store the input value if value return 1 else return 0 int write gpio int value unsigned int gpio if 1 ioctl fd BT878 G GPIO VALUE amp gpio return 1 gpio 0x40 bit 6 is used to set the output if value gpio 0x40 if 1 ioctl fd BT878 S GPIO VALUE amp gpio return 1 return 0 Programming Guide 163 A ADLINK PA i 164 Programming Guide A ADLINK PA i 7 Appendix 7 1 Glossary Brightness Attribute of a visual sensation according to which an area appears to exhibit more or less light CCIR An acronym t
66. cil Directive 89 336 EEC amended by 92 31 EEC and 93 68 EEC This equipment has been tested and found to comply with EN55022 CISPR22 and EN55024 CISPR24 To meet EC require ments shielded cables must be used to connect a peripheral to the card This product has been tested in a typical class B compli ant host system It is assumed that this product will also achieve compliance in any class A compliant unit 168 Appendix
67. e Byte Table 5 1 List of Functions 82 Function Library A ADLINK PA i 5 2 C C Programming Library Function prototypes and common data types are defined in Angelo h The Angelo series library uses these data types We suggest that these data types be used in your application pro grams The following table shows the data types and their range Type Name Description Range U8 8 bit ASCII character 0 to 255 116 16 bit integer 32768 to 32767 U16 16 bit unsigned integer 0 to 65535 132 32 bit long integer 2147483648 to 2147483647 U32 32 bit unsigned long integer 0 to 4294967295 F32 32 bit float 3 402823E38 to 3 402823E38 F64 64 bit double float 1 797683134862315E308 to 1 797683134862315E309 Boolean Boolean logic TRUE FALSE Table 5 2 C C Data Types Function Library 83 A FN 84 ADLINK TECHNOLOGY INC 5 3 System Functions Name AngeloRTV Initial PortNo Initialize the port in Angelo series card AngeloRTV Close PortNo Close the port in Angelo series card AngeloRTV Software Reset PortNo Reset the port in Angelo series card AngeloRTV Read Serial CardNo HighByte LowByte Read the unique 48 Bit Serial Number of Angelo Series Card Only for RTV 24 Rev B1 above PCI 2100 Rev A2 above AngeloRTV Get Version DriverVersion DLL Version Reserved Get the version of driver of AngeloRTV card and AngeloRTV dll Description AngeloRTV Initial This function
68. e is loaded and the PortNo parameter is valid 12 ERROR CPLD Check Failed Power off the com puter and power on again Example lt VC BCB gt AngeloRTV Initial I16 Result for int PortNo 0 PortNo lt 4 PortNo Result AngeloRTV Initial PortNo AngeloRTV Cose I16 Result for int PortNo 0 PortNo lt 4 PortNo Result AngeloRTV Cose PortNo AngeloRTV Software Reset I16 Result for int PortNo 0 PortNo lt 4 PortNo Result AngeloRTV Software Reset PortNo AngeloRTV Read Serial int Result int CardNo 0 unsigned long HighByte 0 LowByte 0 Result AngeloRTV Read Serial CardNo amp HighByte amp LowByte AngeloRTV Get Version 86 Function Library ADLINK TECHNOLOGY INC e J I16 Result U32 DriverVersion 4 0 DLLVersion 4 10 Reserved 4 0 char strDriverVersion 20 strDLLVersion 20 Result AngeloRTV Get Version DriverVersion DLLVersion Reserved sprintf strDriverVersion d d d d DriverVersion 0 DriverVersion 1 DriverVersion 2 DriverVersion 3 sprintf strDLLVersion d d d d DLLVersion 0 DLLVersion 1 DLLVersion 2 DLLVersion 3 lt Visual Basic gt AngeloRTV_ Initial Dim Result As Integer Dim PortNo As Integer For PortNo 0 To 3 Result AngeloRTV Initial ByVal PortNo AngeloRTV_Cose Dim Result As Integer Dim PortNo As Integer For PortNo 0 To 3 Result AngeloRTV Close ByVal PortNo Ang
69. eloRTV Read Serial Dim Result As Integer Dim CardNo As Integer Dim HighByte As Long LowByte As Long CardNo 0 HighByte 0 LowByte 0 Result AngeloRTV Read Serial CardNo HighByte LowByte AngeloRTV Software Reset Dim Result As Integer Dim PortNo As Integer For PortNo 0 To 3 Result AngeloRTV Software Reset ByVal PortNo AngeloRTV Get Version Dim Result As Integer Dim DriverVersion 3 As Long DLLVersion 3 As Long Reserved 3 As Long Dim strDriverVersion strDLLVersion As String Function Library 87 A ADLINK PA i 88 Result AngeloRTV Get Version DriverVersion 0 DLLVersion 0 Reserved 0 strDriverVersion CStr DriverVersion 0 CStr DriverVersion 1 CStr DriverVersion 2 CStr DriverVersion 3 strDLLVersion CStr DLLVersion 0 CStr DLLVersion 1 CStr DLLVersion 2 CStr DLLVersion 3 lt Delphi gt AngeloRTV_Initial var PortNo Result SmallInt for i 0 to 3 do begin Result AngeloRTV Initial PortNo End AngeloRTV Cose var PortNo Result SmallInt for i 0 to 3 do begin Result AngeloRTV Close PortNo End AngeloRTV Software Reset var PortNo Result SmallInt for i 0 to 3 do begin Result AngeloRTV Software Reset PortNo End AngeloRTV Read Serial var CardNo Result SmallInt HighByte LowByte SmallInt Result AngeloRTV Read Serial Card
70. eo images Click and hold the left mouse button on the slider of the Adjustment Panel and drag the cursor to change its value Or type value into the edit tool to change its value directly Adjustment x Brightness Contrast Hue Saturation U Seturstion V LUMA notch filter X offset Y offset 3 9 9 9 9 9 9 9 128 124 fo 127 po 0 fo 0 Default Button Press Default Button resetting all values to default value x Close this panel 4 3 3 Toolbar Continue Grab Start to grab images and display the images on display panel Click it again to stop the grab This is a toggle button Stop Grab Stop grabbing el Snap Shot Capture an image and display the image on display panel a Hide or unhide displaying image This is a toggle button Hind Image x A K Fit Size Fit the images which are selected to whole display panel The images which are selected will have a blue frame 70 ViewCreatorPro Utility ADLINK TECHNOLOGY INC e dd 1 4 Original Size Restore the images which are selected to original size The images which are selected will have a blue frame Zoom In Zoom in the images which are selected The images which are selected will have a blue frame Zoom Out Zoom in the images which are selected The images which are selected will have a blue frame Focus Value Open a chart to see pixel values of the selected horizontal line of the image which is selected first
71. erieS in eie bee iii 27 CRTV 24 Specifications nnen 27 cRTV 44 Specifications eee 30 2 3 PMC RTV Series ee ee ee ee ee Y ee RR ee LII RR ee ee ee 35 PMC RTV21 Specifications nenese ne 35 PMC RTV24 Specifications eee 39 3 Installation Guide ee ee ee ER ER EE ER ER een 43 3 1 Hardware Installation ee ee Re ee Ee ER ee Ee Re AA ee 43 RTV Series ee ee ee ee ee ee ee ent 43 CRTV SEES PEE 44 PMC RTV Series een A7 RTV E4 Extension Board Optional 48 RTV I4 Extension Board Optional 49 3 2 Driver Installation snn ee Ee EE ER AA RA ee 50 Table of Contents i A ADLINK NUN C em WDM Driver Installation een 50 DirectShow Driver Installation ee ee ee 56 RTV LVIEW Installation eee een 61 Uninstall RTV LVIEW eee eee een 63 Linux Driver Installation ek RR Re Ee Ee ee 64 4 ViewCreatorPro Utility se ee ee ER RR RE RE RE EER RR RR RR EE RR Gee 67 4 1 ei AE OE 67 4 2 Component Description ee ER ER RR Re Ee ee 68 4 3 Operation Theory i 69 Devices Panel eee ee ee nrn 69 Adjustment Panel i 70 Toolbar eee ee ee ee 70 Status Bar ii e p ee ee are A ABl Gee De 74 Display Panel eee eee eee en 75 Main Menu i ER AE eed e e haer EK 71 5 Function LibraFY sees EES GEE KERKE EKKE EG E
72. et Image Config AngeloRTV Get Image Config Dim Result As Integer Dim PortNo As Integer Dim ConfigIndex As Byte Dim Value As Byte PortNo 0 ConfigIndex 0 Value 128 Result AngeloRTV Set Image Config ByVal PortNo ByVal ConfigIndex ByVal Value Result AngeloRTV Get Image Config ByVal PortNo ByVal ConfigIndex ByRef Value AngeloRTV Set Color Format AngeloRTV Get Color Format AngeloRTV Set Video Format AngeloRTV Get Video Format Dim Result As Integer Dim PortNo As Integer Dim ColorFormat As Byte Dim VideoFormat As Byte PortNo 0 ColorFormat 3 VideoFormat 0 Result AngeloRTV Set Color Format ByVal PortNo ByVal ColorFormat Result AngeloRTV Get Color Format ByVal PortNo ByRef ColorFormat Function Library Result AngeloR A ADLINIC PA IV Set Video Format ByVal PortNo ByVal VideoFormat Result AngeloR IV Get Video Format ByVal PortNo ByRef VideoFormat AngeloRTV Set Image Geometric Dim Result As Integer Dim PortNo As Integer Dim X Active As Long Dim Y Active As Long Dim X Offset As Long Dim Y Offset As Long Dim X Scale As Double Dim Y Scale As Double PortNo 0 X Active 600 Y Active 400 X Offset 40 Y Offset 80 X Scale 1 0 Y Scale 1 0 Result AngeloRTV Set Image Geometric PortNo X Offset Y Offset X Active Y Active X Scale Y Scale AngeloRTV Detect Video Format Dim Result As Integer Dim Por
73. fix name video and a number appending to it There will be same number of such files as how many devices your system has static char dev name dev video0 Open the first device int open device void int fd fd open dev name O RDWR O NONBLOCK 0 if 1 fd fprintf stderr Cannot open s sd ss n dev name errno strerror errno return 1 Failed return fd Success Programming Guide A ADLINK PA i Close device Close the device with close if you no longer use this device Close fd IO control IO control is a technology communication with driver VAL sets up many standard IO controls which control video parameters to or get information from driver Here we give you an example of sim ple settings void init device void struct v412 capability cap struct v412 cropcap cropcap struct v412 crop crop struct v412 format fmt v412 std id std V4L2 STD NTSC M if 1 ioctl fd VIDIOC QUERYCAP amp cap if EINVAL errno fprintf stderr Ss is no V4L2 device n dev name exit EXIT FAILURE else exit EXIT FAILURE if cap capabilities amp V4L2 CAP VIDEO CAPTURE fprintf stderr s is no video capture device n dev name exit EXIT FAILURE if cap capabilities amp V4L2 CAP STREAMING fprintf stderr s does not support streaming i o n dev name exit E
74. geloRTV Trigger Start CardNo Multiplex lt Delphi gt AngeloRTV_Trigger_Config AngeloRTV_Trigger_Start Var Result SmallInt CardNo SmallInt PortNo SmallInt Multiplex SmallInt Interval SmallInt CardNo 0 PortNo 0 Multiplex 1 Interval 32 Result AngeloRTV Trigger Config PortNo Interval Result AngeloRTV Trigger Start CardNo Multiplex Function Library 121 A FN ADLINK TECHNOLOGY INC 5 10 Frame Buffer Name AngeloRTV_Copy_frame PortNo Dest_Address Size_Byte Copies the frame date to the user allocated destination memory bytes AngeloRTV Get frame PortNo Start Address Width Height Size Byte Gets the frame memory start address and size of frame bytes AngeloRTV Save File PortNo FileName FileFormat nQuality Save the video frame into an image file Description AngeloRTV Copy frame Copies frame data to memory or an array that the user has allo cated Before using this function remember to allocate enough memory address space or array elements AngeloRTV Save File Saves the current video frame into an image file TIF BMP or JPEG nQuality is only used JPEGs AngeloRTV Get frame Retrieves the memory start address from the frame data width height and size in bytes of the image For example a FULL NTSC RGB24 video frame will occupy 900K Byte 640 480 3 memory address space Format DWORD 32Bit Pixel Data Byte
75. h relates to the vividness of color 166 Appendix A ADLINK PA i 7 2 Standards Compliance Notice for USA Compliance Information Statement Declaration of Conformity Procedure DoC FCC Part 15 This equipment has been tested and found to comply with the lim its for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in a residential installation or when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful interference to radio communica tions However there is no guarantee that interference will not occur in a particular installation If this equipment does cause harmful interference to radio or tele vision reception which can be determined by turning the equip ment off and on the user is encouraged to try to correct the interference by one or more of the following measures Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help Appendix 167 A ADLINK PA i Notice for Europe This product is in conformity with the Coun
76. ification Sample define INSTANCE DATA OF PROPERTY PTR x PKSPROPERTY x 1 define INSTANCE DATA OF PROPERTY SIZE x sizeof x sizeof KSPROPERTY BYTE EEPROMRead IBaseFilter pFilter BYTE offset Purpose Read the value stored in EEPROM Parameters pFilter Interface of BT878 filter offset the offset 0 127 based on starting address of EEPROM y 144 IKsPropertySet pKs DWORD TypeSupport 0 KSPROPERTY CUSTOMBT848 I2C S I2C BYTE uAddress HRESULT hr ULONG ret 0 NULL fi if pFilter NULL return 0 if hr pFilter gt OueryInterface IID IKsPropertySet amp pKs S OK void hr pKs gt QuerySupported PROPSETID CUSTOMBT848 KSPROPERTY CUSTOMBT848 I2C amp TypeSupport if TypeSupport amp KSPROPERTY SUPPORT GET Programming Guide A ADLONE J uAddress 0xa0 address for EPROM device Set frequency first ZeroMemory amp I2C sizeof I2C I2C bDontWaitACK true I2C dwOperation BT848 CUSTPROP I2C SETFREO I2C dwFreq 100000 hr pKs gt Get PROPSETID CUSTOMBT848 KSPROPERTY CUSTOMBT848 I2C I the I INSTANCE DATA OF PROPERTY PTR amp I2C INSTANCE DATA OF PROPERTY SIZE I2C amp I2C sizeof I2C amp ret Read value then I2C dwOperation BT848 CUSTPROP I2C R3 I2C ucAddress uAddress I2C ucInBuf 0 offset I2C dwOutLen 0 I2C dwInLen 1
77. is the scaling factor applied to the RTV sam pled line to obtain pixels according to the resolution Function Library 129 A A ES X Active This parameter is the length of the active video line X Offset This parameter is the number of scaled pixels to skip before the start of the active video line Y Scale This parameter is the scaling factor applied to the RTV sam pled data lines in the vertical direction It must be the following values 1 0 0 5 0 25 Y Active This parameter is the height in lines of the active video image Y Offset This parameter is the number of lines to skip before the first line of the active video image AngeloRTV Select Channel vi RTV card is capable of channel extension This VI is used to multi plex video signals for ports In most cases this VI is not required because the default setting is one port dedicated to one channel Note Do not call this VI if there is no channel extension board in the system AngeloRTV Capture Config vi Set the starting field of image only for Full size image Video for mat 0 or 1 130 Function Library A ADLINK P Start Filed Indicate the first field of image 0 First field is odd so the image will be odd field even field 1 First field is even so the image will be even field odd field 2 First field depends on the current field so the image will be even field odd field or odd field even field 3 Single field frame used f
78. ital output channel in each port of the Angelo series card use this function to set the digital output status AngeloRTV Get GPIO Sts There is one digital input channel in each port of Angelo series card use this function to get the digital input status AngeloRTV Set GPIO Int Logic This function used to configure the Digital Input Interrupt condition AngeloRTV Write EEPROM Writes data into the EEPROM Data in EEPROM will not be lost even when powered off AngeloRTV Read EEPROM Reads data from the EEPROM Data in EEPROM will not be lost even when powered off AngeloRTV Set LED Sts Use the function to set LED status The function is for cPci RTV24 card only Function Library 105 A ADLINK Pp i Syntax C C Windows CE NET AngeloRTV Set GPIO Sts U16 PortNo U8 Status AngeloRTV Get GPIO Sts U16 PortNo U8 Il Il Visual Basic Angel AngeloRTV Get GPIO S L6 L6 Status AngeloRTV Set GPIO Int Logic U16 PortNo U16 Logic AngeloRTV Write U8 Value AngeloRTV Read U8 Value EDSta tus ByVal Statu ByRef Statu AngeloRTV Set LED Sts Windows CE NET oRTV Set GPIO S I EPROM U16 CardNo U8 Offset T EPROM U16 CardNo U8 Offset T U16 PortNo U8 ts ByVal PortNo As Integer Byte As Integer ts ByVal PortNo As Integer S As Byte As Integer S As AngeloRTV Set GPIO Int Logic ByVal PortNo As Ange
79. ive Y Active X Scale Y Scale AngeloRTV Detect Video Format var Result SmallInt PortNo SmallInt FormatValue Byte PortNo 0 Result AngeloRTV Detect Video Format PortNo FormatValue Function Library 99 A A ADLINK TECHNOLOGY INC 5 5 Image Grabbing Name AngeloRTV Capture Start PortNo Capture No Start to grab the video image AngeloRTV Select Channel PortNo Multiplex Channel extension of video signal for advanced only AngeloRTV Capture Stop PortNo Stop to grab the video image AngeloRTV Capture Config PortNo Start Field Set the starting field of image AngeloRTV Sync Grab PortNo Start Address Width Height Size Byte Get an image frame with start address of memory Description AngeloRTV Capture Start Continuously captures video frames and stops when the total frame number equals the CaptureNo parameter The frame update rate is 30 frames sec If the CaptureNo is OXFFFFFFFF the frame grabbing will not stop until the AngeloRTV_ Capture_Stop function is called AngeloRTV Capture Stop Stop grabbing video frames AngeloRTV Select Channel Angelo series cards are capable of channel extension This func tion is used to multiplex video signals for the ports In most cases using this function should not be required because the default set ting is one port is dedicated to one channel Note Do not call this function if there is no channel extension boa
80. ktech com TEL 886 2 82265877 FAX 886 2 82265717 Address 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan Please email or FAX this completed service form for prompt and satisfactory service Company Information Company Organization Contact Person E mail Address Address Country TEL FAX Web Site Product Information Product Model OS Environment M B CPU Chipset Bios Please give a detailed description of the problem s A ADLINK TECHNOLOGY INC A ADLINK PA i Table of Contents Table of Contents rerit n nennen Ran inn i List f TableS c iii List of FIGHEBS sesde i n N DOO RR ERO CHR V 1 Introduction icr eee rete ek eec ee conie vna cna N ucro 1 14 Features dial eed rans aei e Ee 1 Image Acquisition ess m 1 WO LINES ET NE EE HET 2 Watchdog Timer eee eee ee ke ee ee 2 Supported Software eee eee ee ee ee ee 2 1 2 Applications ee ee Re Ee RA AA eee ee ee ee ee ee AR ent 3 13 System Requirements 3 14 RTV 24 Benchmarks eee eee 4 1 5 PCle RTV 24 Benchmarks eee 6 2 Hardware Reference ee ee ee ee ER ee ee ee ee 9 2 1 RTV Series i 9 PCle RTV24 Specifications eee 9 RTV 24 Specifications eee 15 RTV E4 Extension Board Optional 21 RTV 14 Isolation GPIO Board Optional 22 2 2 CRTV S
81. le EEPROM Form Factor 32 64bit 33 66MHz 6U Compact PCI board 30 Hardware Reference ADLINK TECHNOLOGY INC n Angelo Figure 2 10 cRTV 44 Appearance Dimensions gt WxL 160 mm x 233 35 mm Operating Environment gt Temperature 0 to 55 C Humidity 5 to 90 RHNC Storage Environment gt Temperature 0 to 70 C gt Humidity 0 to 95 RHNC Hardware Reference 31 A ADLINK PA Power Requirements gt 5V max 1 5A gt 3 3 V max 0 65A cRTV 44 Standard Accessories User Manual gt Allin One CD Connector Definition CHO Channel 0 BNC CH1 Channel 1 BNC CH2 Channel 2 BNC CH3 Channel 3 BNC O o o Table 2 26 cRTV Video Inputs 32 Hardware Reference A ADLINK PA i D00000 og 0 0 002 PIN Function PIN Function 1 GND 2 CH4 video in 3 CHS video in 4 GND 5 GND 6 CH6 video in 7 CH7 videoin 8 GND 9 GND 10 GND Table 2 27 Channel Extension Video Input CN8 GPIO 0 Pins INO and OUTO are used by channel 0 Pins IN1 and OUT1 are used by channel 1 5 eeeee Jo OV ecce C 6 8 j PIN Function PIN Function 1 INO External interrupt 6 GND 2 OUTO 7 GND 3 IN1 External interrupt 8 GND 4 OUT1 9 5V 5 GND Table 2 28 GPIO 0 Pinout GPIO 1 gt Pins IN2 and OUT2 are for channel 2 gt Pins IN3 and OUT
82. loRTV Write AngeloRTV Read F AngeloRTV Set Delphi Windows AngeloRTV Se Angel AngeloRTV Se Angel Angel AngeloRTV Set L 106 Integer ByVal Logic As Integer As Integer EEPROM ByVal PortNo As Integer ByVal Offse As Integer t As Byte ByVal Value As Byte EPROM ByVal PortNo As Integer ByVal Offse As Integer t As Byte ByRef Value As Byte n LE ByVal LEDSt t G PortNo Sma oRTV Get G status Byte t G D Sts PIO Sts ByVal PortNo As Integer atus As Byte As Integer PIO Sts llint status Byte Smallint PortNo Smallint var Smallint PIO Int Logic PortNo Smallint Logic Small int Smallint oRTV Write EEPROM PortNo Smal llint lint Offset Byte Value Byte Sma oRTV Read E EPROM PortNo Smallint Offset Byte L Fl DStatus B D Sts var Value Byte Smallint PortNo Smallint yte Smallint Function Library A ADLINIC PA i Argument PortNo Port number is the zero index of the Angelo series card For exam ple if there are two PCI RTV 24 Angelo cards card 0 card 1 in the system and each PCI RTV 24 has four ports the first port of card O is O and the first port of card 1 is 4 Status The digital input or digital output status OLow 1High Logic The digital input interrupt condition O Active Low 1
83. mat PortNo Value Set the video format AngeloRTV Set Image Geometric PortNo X Offset Y Offset X Active Y Active X Scale Y Scale Advanced image processing AngeloRTV Detect Video Format PortNo FormatValue Detect the video format and if there is signal input Description AngeloRTV Set Image Config Adjusts the hue contrast Saturation and brightness of the port for the Angelo series card AngeloRTV Get Image Config Retrieves the current hue contrast Saturation and brightness set ting of the port for the Angelo series card AngeloRTV Set Color Format Sets the color format of the port for the Angelo series card Valid color formats are gray scale RGB AngeloRTV Get Color Format Retrieves the color format of the port for the Angelo series card AngeloRTV Set Video Format Function Library A ADLINK TECHNOLOGY INC e Sets the Video format of the port for the Angelo series card Valid color formats are NTSC EIA PAL CCIR AngeloRTV Get Video Format Retrieves the video format of the port for the Angelo series card AngeloRTV Set Image Geometric This function is used for image cropping and scaling AngeloRTV Detect Video Format Use the function to retrieve the video format And if the return value of the 2nd parameter is 0 that means there is no signal input X Scale 0 5 V Active N Active Figure 5 1 Video Frame Syntax C C Windows CE NET I16 AngeloRTV Set Image Config U16 PortNo
84. ndows AngeloRTV Initial PortNo Smallint Smallint AngeloRTV Close PortNo Smallint Smallint AngeloRTV Software Reset P ortNo Smallint Smallint AngeloRTV Read Serial CardNo Smallnt Var Hi Lo ghByte Longint Var wBytet Longint Smallint AngeloRTV Get Version var DriverVersion Longint va Re Arguments PortNo r DLLVersion Longint var served Longint Smallint Port number is the zero index of the Angelo series card For exam ple if there are two RTV 24 Angelo cards card 0 card 1 in the System and ea ch RTV 24 has four ports the first port of card O is O and the first port of card 1 is 4 HighByte HighByte stores the upper 16Bit of Serial No LowByte LowByte stores Function Library the lower 32Bit of Serial No 85 A ADLINK PA i DriverVersion Indicate the current version of AngeloRTV driver This parameter is a pointer to an integer array with length 4 DLL Version Indicate the current version of AngeloRTV dll file This parameter is a pointer to an integer array with length 4 Return Code gt 0 ERROR NOError p 2 ERROR Card Not Exist make sure the Angelo series card is plugged into the system check the device manager to make sure the device is loaded and the PortNo param eter is valid 3 ERROR Card Not Accessible make sure the Angelo series card is plugged into the system check the device manager to make sure the devic
85. o designate a scanning system used in Europe The CCIR system is made of two interlaced fields of 312 5 lines for a total of 625 lines In each field only 287 5 lines are visible for a total of 575 visible lines A line lasts 64 ms of which approximately 52 ms are conveying visible pixels Composite Video Composite video CVS CVBS signal carries video picture infor mation for color brightness and synchronizing signals for both hor izontal and vertical scans CIF CIF has 352 H x 288 V luminance pixels and 176 H x 144 V chrominance pixels QCIF is a similar picture format with one quarter the size of CIF EIA An acronym to designate a scanning system used in America and Japan The EIA system is made of two interlaced fields of 262 5 lines for a total of 525 lines In each field only 242 5 lines are vis ible for a total of 485 visible lines typical value A line lasts 63 56 ms of which approximately 52 ms are conveying visible pixels Field For interlaced video the total picture is divided into two fields one even and one odd each containing one half of the total vertical information Each field takes one sixtieth of a second one fiftieth for PAL to complete Two fields make a complete frame of video Appendix 165 A ADLINK PA i Frame One frame two fields of video contains the full vertical interlaced information content of the picture For NTSC this consists of 525 lines and PAL a frame is con
86. of the video frame Width Image width Height Image height Size Byte 102 Function Library Memory size in bytes Return Code gt 0 ERROR NoErro 7 ERROR Not In ADLINK TECHNOLOGY INC A FN r itialized Make sure the port has been initialized by AngeloRTV_ Initial gt 9 ERROR Invalid PortNo Please input the correct PortNo parameter 2 Example lt VC BCB gt AngeloRTV_ Capture_Config AngeloRTV Capture Start AngeloRTV Sync Grab AngeloRTV Capture Stop I16 U16 U32 U32 U32 U32 Result Result PortNo CaptureNo Start Fiel StrAddr 0 ld Angel Result Angel Result Angel amp Width Result Angel lt Visual Basic Width Height ORT Start Field ORT CaptureNo LORT amp He ORT OxFFFFFFFF 0 Size Byte IV Capture Config rV Capture Start PortNo PortNo TV Sync Grab PortNo ight amp Size Byte IV Capture Stop PortNo amp StrAddr AngeloRTV Capture Config AngeloRTV Capture Start AngeloRTV Sync Grab AngeloRTV Capture Stop Result As In PortNo As In CaptureNo As Start Field StrAddr As L Width as Lon Long PortNo 0 CaptureNo Start Field Dim Dim Dim Dim Dim Dim 0 Function Library teger teger Long As Long ong g Height As Long Size Byte As amp HFFFFFFFF 103 A BA ADLINK TECHNOLOGY INC 104 Result ByVal S
87. olor Format PortNo ColorFormat AngeloRTV Get Color Format PortNo ColorFormat AngeloRTV Set Video Format PortNo Value AngeloRTV Get Video Format PortNo Value AngeloRTV Set Image Geometric PortNo X Offset Y Offset X Active Y Active X Scale Y Scale AngeloRTV Detect Video Format PortNo FormatValue Image Grabbing 5 5 AngeloRTV Capture Start PortNo CaptureNo AngeloRTV Select Channel PortNo Multiplex AngeloRTV Capture Stop PortNo AngeloRTV Capture Config PortNo Start Field AngeloRTV Sync Grab PortNo Start Address Width Height Size Byte GPIO amp EPROM 5 6 AngeloRTV Set GPIO Sts PortNo Status AngeloRTV Get GPIO Sts PortNo Status AngeloRTV Set GPIO Int Logic PortNo Logic AngeloRTV Write EEPROM PortNo Offset Value AngeloRTV Read EEPROM PortNo Offset Value AngeloRTV Set LED Sts PortNo LEDStatus Callback amp Thread 5 7 AngeloRTV Set Int Event PortNo hEvent AngeloRTV Set Callback PortNo CallBackProc AngeloRTV Get Int Status PortNo IntStatus Software Trigger 5 8 AngeloRTV Trigger Config PortNo Interval AngeloRTV Trigger Start CardNo Multiplex Frame Buffer 5 9 AngeloRTV Get frame PortNo Start Address Width Height Size Byte AngeloRTV Save File PortNo FileName FileFormat nQuality AngeloRTV Copy frame PortNo Dest Address Siz
88. on 1 INO External interrupt 2 GND 3 OUTO 4 Software Trigger 0 5 IN1 External interrupt 6 Software Trigger 1 7 OUT1 8 5V 9 GND 10 Table 2 14 GPIO CN8 Hardware Reference 19 A ADLINK PA i 00000 eo Hl D D D PIN Function PIN Function 1 IN2 External interrupt 2 GND 3 OUTO 4 Software Trigger 2 5 IN3 External interrupt 6 Software Trigger 3 7 OUT1 8 5V 9 GND 10 Table 2 15 GPIO CN9 PIN Function 1 System reset oo ee JP Table 2 16 Watchdog Timer 20 Hardware Reference 2 1 3 RTV E4 Extension Board Optional Figure 2 5 RTV E4 Appearance RTV E4 Connectors amp Pin Definitions PIN Function PIN Function 1 GND 2 CH4 video in 3 CH5videoin 4 GND 5 GND 6 CH6 video in 7 CH7 videoin 8 GND 9 GND 10 GND Table 2 17 Channel Extension Video Input CN11 A ADLINK TECHNOLOGY INC e Hardware Reference 21 A ADLINIC 2 1 4 RTV l4 Isolation GPIO Board Optional Figure 2 6 RTV I4 Appearance RTV l4 Connectors amp Pin Definitions Relay output signal select Relay output types Normal open or Normal closed Signal names RY1 RY2 RY3 RY4 Jumper addresses J5 J6 J7 J8 Type select Normal open 2 3 Normal close 1 2 Normal Open Normal Closed CE mi 1 3 1 3 Table 2 18
89. or moving object inspection AngeloRTV Capture Start vi Start to grab video images f the CaptureNumber is OxFFFFFFFF the frame grabbing will not stop until the AngeloRTV Capture Stop vi is called AngeloRTV Capture Stop vi Stop grabbing video images AngeloRTV Trigger Start vi Generate a one shot pulse output for single or multiple ports Multiplex Indicate the trigger output ports on the RTV card gt Bit 0 Port 0 on each card 0 for disable 1 for enable gt Bit 1 Port 1 on each card 0 for disable 1 for enable gt Bit 2 Port 2 on each card 0 for disable 1 for enable gt Bit 3 Port 3 on each card 0 for disable 1 for enable AngeloRTV Trigger Config vi Configure the pulse output interval Function Library 131 A FA 132 ADLINK TECHNOLOGY INC Interval Indicates the trigger output interval The valid range is from 0 to 253 The definition is as follows gt 0 16 ms gt 32 12 ms gt 128 8 ms gt 253 60us AngeloRTV_Sync_Grab vi Use this VI to obtain an image frame Retrieve the memory start address from the frame data width height and size in bytes of the image AngeloRTV_Get_Frame vi Retrieve the memory start address from the frame data width height and size in bytes of the image AngeloRTV_Copy_Frame vi Copy frame data to memory or an array that the user allocates Before using this VI remember to allocate enough memory space or array elements AngeloRTV_Set
90. ory of RTV LVIEW will be removed except the ADLINK Vision palette If you do not want to use it any more you can remove the Angelo llb in the user lib folder and the menus VADLINK Vision folder Installation Guide 63 A ADLINK PA i 3 2 5 Linux Driver Installation The driver is compiled as a kernel module and works for kernel version 2 6 Compile bttv for your system BTTV is an open source driver and conforms to Video for Linux standard 1 Open a terminal console and enter the following com mands to start installation Extract the tar ball tar zxvf RTV kernel 2 6 xx tar gz Change to the driver directory which please sees README under the root directory of the RTV packet Cd XXXXX Make and install the driver make clean make make install Edit auto load configuration file vi etc modprobe conf Add the following lines to the file i2c alias char major 89 i2c dev options i2c corei2c debug 1 options i2c algo bit bit test 1 bttv alias char major 81 bttv options bttv card 134 134 134 134 In this example the 134 depends on how many ports the sys tem has For example two PCle RTV24 cards have 8 ports total The text will thus be 64 options bttv card 134 134 134 134 134 134 134 134 Installation Guide A ADLINK PA i 7 Restart the computer The driver should be loaded auto matically while booting Enter the following command to see if the driver was loaded lsmod grep b
91. p po m Hue p r Saturation i00 v Sharpness 1 po v Gamma F i Vv White Balance __ _ U in Backlight Comp im Tai ColorEnable Iv Default Auto OK Cancel Apply Help ADLink Bt878 Crossbar filter 2 Video Composite In 3 Video Composite In ideo Decoder Out 1 Audio Decoder Out 0 Video Composite In 1 Video Composite In r Input m Output fi Video Composite In X fo Video Decoder Out v Current Input 1 Video Composite In Related Pin Related Pin 0 Video Composite In 1 Audio Decoder Out Link Related Streams OK Close Apply Help Select video input before or during video previewing 138 Programming Guide A ADLINK Example Graph Preview GRF GraphEdit I slof x File Edit View Graph Favorites Options Help Dial S e n m m e 2 s Video Renderer 0 Video Composite In 4 1 Video Composite In video Decoder out I ADLINK Bt878 Crossbar 2 Video Composite In 1 Audio Decoder Out 3 Video Composite In Ready ml ia Controlling Driver The ADLink Bt878 Video Capture Filter provides property pages and exposes COM interfaces to control video So an application can have two ways to control video configurations using the prop erty pages and using the COM interfaces Use Property Pages There are two embedded property pages in
92. quisition board is designed without compromise for security and video surveillance applications as a PC based multiple channel digital video recorder This 32 bit 64bit 334Hz 66MHz PCI cPCI PMC bus frame grab ber simultaneously captures four video analog streams in real time It accepts standard composite color PAL NTSC or mono chrome video formats CCIR EIA The square pixel and broadcast resolutions are programmable 640 x 480 or 768 x 576 Before images are transferred into the PC s memory the resolution can be scaled down using selectable ratios Arbitrary cropping to regions of interest is supported The RTV series generates bitmaps in all popular color formats such as RGB System integrators will benefit from a watchdog timer for fault tol erant applications and from the easy to use standard connectors 1 1 Features 1 1 1 Image Acquisition Acquisition Speed NTSC 1 Camera 2 Cameras 3 Cameras 4 Cameras 8 Cameras Fields 60 120 180 240 240 Frames 30 60 90 120 120 PAL 1 Camera 2 Cameras 3 Cameras 4 Cameras 8 Cameras Fields 50 100 150 200 200 Frames 25 50 75 100 100 Table 1 1 RTV Series Acquisition Speed Note The PMC RTV21 is capable of only up to 30 frames 60 fields in total acquisition speed Introduction 1 A FA ADLINK TECHNOLOGY INC Color Image The color video format is compatible with the following composite video input
93. r manual 2 Check that there is an empty cPCI 32 bit 64 bit slot to accommodate the board If is not an empty slot remove a cPCI board to make room for the cRTV 24 3U cRTV 44 6U board and take note of the chosen slot number 3 Remove the blank metal plate located at the front of the selected slot if present Keep the removed screw to fasten the cRTV 24 3U cRTV 44 6U board 4 Carefully position the cRTV 24 or cRTV 44 in the selected cPCI slot as illustrated below 44 Installation Guide ADLINK TECHNOLOGY INC 32bit 3U cPCI Back Plane 3U cPCI Board Figure 3 2 cRTV 24 3U cPCI Installation Guide 45 A ADLINK PA i 32bit 6U cPCI Back Plane 6U cPCI Board Figure 3 3 cRTV 44 6U cPCI 5 Carefully slide the cRTV 24 3U cRTV 44 6U along the guide of the chosen slot to the backplane and push the board firmly but carefully into the connector Lock the board in place by pushing the release lever outwards 6 6 Anchor the board by replacing the screw 7 7 Connect the video sources for image acquisition tests For details refer to the ViewCreator Utility 46 Installation Guide A ADLINK PA i 8 8 Turn on the computer In some cases when the com puter boots up the Plug and Play feature of Windows will detect the new PCI card 8 times 4 videos and 4 audios and you will require drivers For details see the Installation Guide 3 1 3 PMC RTV Series The P
94. rd in the system AngeloRTV Capture Config Chooses the starting field of image AngeloRTV Sync Grab This is a synchronous image grabbing function to get an image frame Retrieve the memory start address from the frame data width height and size in bytes of the image 100 Function Library ADLINK TECHNOLOGY INC e J Syntax C C Windows CE NET I16 AngeloRTV Capture Start U16 PortNo U32 CaptureNo I16 AngeloRTV Select Channel U16 PortNo U16 Multiplex I16 AngeloRTV Capture Stop U16 PortNo I16 AngeloRTV Capture Config U16 PortNo U32 Start Field 116 AngeloRTV Sync Grab U16 PortNo U32 Start Address U32 Width U32 Height U32 Size Byte Visual Basic Windows CE NET AngeloRTV Capture Start ByVal PortNo As Integer ByVal CaptureNo As Long As Integer AngeloRTV Select Channel ByVal PortNo As Integer ByVal Multiplex As Integer As Integer AngeloRTV Capture Stop ByVak PortNo As Integer As Integer AngeloRTV Capture Config ByVal PortNo As Integer ByVal Start Field As Long As Integer AngeloRTV Sync Grab ByVal PortNo As Integer ByRef Start Address As Long ByRef Width as Long ByRef Height As Long ByRef Size byte As Long As Integer Delphi Windows AngeloRTV Capture Start PortNo Smallint CaptureNo LongInt Smallint AngeloRTV Select Channel PortNo Smallint Multiplex SmallInt Smallint AngeloRTV Capture Stop PortNo Smallint Smallint AngeloRTV Capture Config PortNo Smallint
95. re two Pci RTV 24 Angelo cards card 0 card 1 in the system CardNo of card 0 is 0 and 1 for card 1 Enable Enables or disables the watch dog timer O for disable 1 for enable Interval Indicates the watch dog timer interval p 1 8 seconds 2 16 seconds p 3 32 seconds Function Library 117 A PF ADLINK TECHNOLOGY INC Return Code gt gt gt 0 ERROR_NoError 7 ERROR Not Initialized Make sure the port has been initialized by AngeloRTV Initial 9 ERROR Invalid PortNo Please input the correct PortNo parameter Example VC BCB AngeloRTV Set WDT I16 Result U16 CardNo 0 U16 Enable 1 U16 Interval 1 Result AngeloRTV Set WDT CardNo Enable Interval lt Visual Basic AngeloRTV Set WDT Dim Result As Integer Dim CardNo As Integer Dim Enable As Integer Dim Interval As Integer CardNo 0 Enable 1 Interval 1 Result AngeloRTV Set WDT CardNo Enable Interval lt Delphi gt AngeloRTV_Set_WDT 118 Var Result SmallInt CardNo SmallInt Enable SmallInt Interval SmallInt CardNo 0 Enable 1 Interval 1 Result AngeloRTV Set WDT CardNo Enable Interval Function Library A ADLINK PA i 5 9 Software Trigger Name AngeloRTV Trigger Config PortNo Interval Sets software trigger configuration Only for PCI RTV24 cPCI RTV 24 cPCI RTV44 AngeloRTV Trigger Start CardNo Multiple
96. rossBar filter is needed for Switching video source In hardware design crossbar can switch channel input of same port Filter Name ADLink Bt878 CrossBar Filter Category Name WDM Streaming Crossbar Devices Example Graphs The Microsoft DirectX SDK provides a very useful debugging utility called GraphEdit which can be used to simulate graph building From the Graph menu of the GraphEdit application click Insert Filters and choose the desired filters Filters are organized by categories Click Insert Filter button to add the filters to a graph Then connect two filters pins by dragging mouse from one filter s output pin to another filter s input pin An arrow will be drawn if these two pins agree on the connection After inserting ADLink Bt878 Video Capture filter and ADLink Bt878 Crossbar filter right click on the rectangle and click Filter Properties The filter properties dialogue will appear Use the property pages to set video settings before connecting video pins to other filters The property pages are shown below ADLink Bt878 Video Capture filter Video Decoder Video Proc Amp Capture Preview VBI Analog Video In Video Standard NTSC M ym Signal Detected 1 Lines detected 525 VER Input Output Enable OK Cancel Apply Help Programming Guide 137 A ADLINK Video Proc Amp Capture Preview val Analog Video In Brightness 750 mil Contrast
97. sisted of 625 lines Gamma Cathode ray tubes CRTs do not have a linear relationship between brightness and the input voltage applied To compensate for this non linearity a pre distortion or gamma correction is applied generally at the camera source A value of gamma equal to 2 2 is typical but can very for different CRT phosphors Hue Attribution of visual sensation according to which area appears to be similar to one or proportions of two of the perceived colors red yellow green and blue NTSC Acronym to designate a color television broadcast standard used in America and Japan The M NTSC system uses 525 lines per frame 2 interlaced fields a 29 97 frame per second update rate and a YIQ or RGB color space In each field only 242 5 lines are visible for a total of 485 visible lines typical value A line lasts 63 56 ms of which approximately 52 ms are conveying visible pix els PAL Acronym to designate a color television broadcast standard used in Europe The B G H I PAL or Phase Alternation Line uses 625 lines per frame 2 interlaced fields a 25 frame per second update rate and the RGB color space In each field only 287 5 lines are visible for a total of 575 visible lines A line lasts 64 ms of which approximately 52 ms are conveying visible pixels Saturation A characteristic describing color amplitude or intensity A color of a given hue may consist of low or high saturation value whic
98. splay panel to qcif image size Tool menu gt GPIO Click Tool in the menu bar and select GPIO item to bring up the GPIO dialog box Select the card and port to access and select the digital output value Click the write or read button to write read to from the digital I O ports Card Index TreeNode RTV 24_CardO WDM Port 0 v DIDO Digital Output Digital Input 78 ViewCreatorPro Utility A ADLINK TECHNOLOGY INC e EEPROM Click Tool in the menu bar and select EEPROM to bring up the EEPROM dialog box Select the card you wish to access enter the offset and output values and then click the Write button to write the value into the EEPROM Enter the offset value and click the Read button to read the value from the EEPROM Valid offset values are between 0 127 Valid output values are 0 255 The value in the EEPROM will not be erased when the system is powered off EEPROM Card Index TreeNode RTV 24 CardD WDM v Offset Dec Value Dec 0 127 0 255 o_ Software Trigger Click Tool in the menu bar and select Software Trigger to bring up the Trigger dialog box Select the card to access and set the interval of the trigger pulse output Check the ports you want to trigger simultaneously and click the Trig ger button The one shot pulse output voltage goes high from OV to 5V Software Trigger Card Index Tree
99. tNo As Integer Dim FormatValue As Byte PortNo 0 Result AngeloRTV Detect Video Format PortNo ByRef FormatValue Delphi gt AngeloRTV Set Image Config AngeloRTV Get Image Config ByVal Var Result SmallInt PortNo SmallInt ConfigIndex Byte Value Byte PortNo 0 ConfigIndex 0 Value 0 Result AngeloRTV Set Image Config PortNo ConfigIndex Value Function Library 97 A ADLINK PA i 98 Result Var Result PortNo AngeloRTV Get Image Config ConfigIndex AngeloRTV Set Color Format AngeloRTV Get Color Format AngeloRTV Set Video Format AngeloRTV Get Video Format SmallInt SmallInt VideoFormat Byte ColorFormat Byte PortNo 0 VideoFormat 0 ColorFormat 3 Result at Result AngeloR at Result at Result VideoFormat AngeloRTV Set Image Geometric Var Result SmallInt PortNo SmallInt X Active LongInt Y Active LongInt X Offset LongInt Y Offset LongInt X Scale Double Y Scale Double PortNo 0 X Active 600 Y Active 400 X Offset 40 Y Offset 80 X Scale 1 0 Y Scale 1 0 Value PortNo AngeloRTV Set Color Format PortNo ColorForm IV Get Color Format PortNo ColorForm AngeloRTV Set Video Format PortNo VideoForm AngeloRTV Get Video Format PortNo Function Library A ADLINK PA Result AngeloRTV Set Image Geometric PortNo X Offset Y Offset X Act
100. tart Result AngeloRTV Capture Config ByVal PortNo Field AngeloRTV Capture Start ByVal PortNo ByVal CaptureNo Result StrAddr Result Delphi gt AngeloRTV Sync Grab Width Height AngeloRTV Capture Stop ByVal PortNo Size Byte ByVal PortNo AngeloRTV Capture Config AngeloRTV Capture Start AngeloRTV Sync Grab AngeloRTV Capture Stop Var Result PortNo CaptureNo SmallInt SmallInt LontInt Start Field LontInt StrAddr Pointer Width Height begin PortNo 0 Start Field CaptureNo Result AngeloR 1 0 Start Field Result AngeloR CaptureNo Result AngeloR Width Heigh Result AngeloR end Size Byte LongInt INFINITE IV Capture Config PortNo IV Capture Start PortNo rV Sync Grab PortNo StrAddr t Size Byte IV Capture Stop PortNo Function Library A ADLINK PA i 5 6 GPIO amp EEPROM Functions Name AngeloRTV_Set_GPIO_Sts PortNo Status Set Digital Output status AngeloRTV_Get_GPIO_Sts PortNo Status Get Digital Input status AngeloRTV Set GPIO Int Logic PortNo Logic Configure the Digital Input Interrupt condition AngeloRTV Write EEPROM PortNo Offset Value Write data into EEPROM AngeloRTV Read EEPROM PortNo Offset Value Read data from EEPROM AngeloRTV Set LED Sts PortNo LEDStatus Set LED status for cPci RTV24 card Description AngeloRTV Set GPIO Sts There is one dig
101. the driver To show these property pages use Windows API OleCreateProperty Frame Documentation about Displaying a Filter s Property Page can be found on Microsoft MSDN homepage Programming Guide 139 A ADLINK Pp i Below is the example code for adding property pages pFilter points to the capture filter ISpecifyPropertyPages pSpecify HRESULT hr hr pFil Oue voi ter ryInterface IID ISpecifyPropertyPages d amp pSpecify if SUCCE EDED hr FILT pFil Filt CAUU pspe pspe OleC ER INFO FilterInfo ter QueryFilterInfo amp FilterInfo erInfo pGraph gt Release 1D caGULD cify gt GetPages amp caGUID cify gt Release reatePropertyFrame NULL Parent window 0 x Reserved 0 y Reserved FilterInfo achName Caption for the dialog box ik Number of filters IUnknown amp m pFilter Pointer to the filter caGUID cElems Number of property pages caGUID pElems Pointer to property page CLSIDs 0 Locale identifier 0 Reserved NULL Reserved CoTaskMemFree CaGUID pElems 140 Programming Guide A ADLINK PA i Use COM interfaces Use the methods of IAMVideoProvAmp interface of standard DirectShow Interface to get or set the qualities of an incoming video signal ADLink Bt878 Crossbar The ADLink Bt878 Crossbar filter implements an IAMCrossbar interface It routes signals from an
102. therboard ASUS P5E64 WS EVOLUTION CPU Intel Core2 Duo CPU E4600 2 4GHz RAM DDR3 SDRAM 2GB OS Windows XP SP3 Image Format RGB16 Full 640 480 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y Y x x x x Frame Rate 29 814 29 813 29 813 29 815 Motherboard ASUS P5E64 WS EVOLUTION CPU Intel Core2 Duo CPU E4600 2 4GHz RAM DDR3 SDRAM 2GB OS Windows XP SP3 Image Format RGB24 Full 640 480 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y v v x x x x x Frame Rate 29 814 29 815 29 815 4 Introduction A ADLINK PA i Motherboard NuPRO 965 CPU Intel Core2 Quad Q6600 2 4GHz RAM DDR2_SDRAM 2GB OS Windows XP SP3 Image Format RGB16 CIF 320 240 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y Y Y v v v Frame Rate 29 966 29 960 29 964 29 958 29 961 29 958 29 966 29 964 K K O C Card Card 2 Card 3 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y Y x x x x Frame Rate 29 943 29 883 29 927 29 833 Motherboard NuPRO 965 CPU Intel Core2 Quad Q6600 2 4GHz RAM DDR2_SDRAM 2GB OS Windows XP SP3 Image Format RGB24 CIF 320 240 Card Card 0 Card 1 Port 0 1 2 3 0 1 2 3 Real Time Y Y Y Y Y Y Y Y Frame Rate 29 966 29 963 29 966 29 963 29 966 29 963 29 966 29 966 peo amp i
103. ttv 8 If there is a bttv module the driver is loaded success fully If not enter the command to load manually modprobe bttv Note The linux kernel need at least these config options for Video4Linux CONFIG I2C m CONFIG I2C ALGOBIT m CONFIG VIDEO DEV m If these config options are not set as module you need recom pile kernel Run a test program 1 Open a terminal console and enter the following com mands 2 Change to the sample directory which please sees README under the root directory of the RTV packet cd xxxxx cd libfg x x x make clean make camview 3 Select the video format and preview channel You will see a new opened window and show the life image The samples are based on Video4 Linux API that the document can found at http www linuxtv org downloads video4linux API V4L2_API Installation Guide 65 A ADLINIC P l 66 Installation Guide A ADLINK PA i 4 ViewCreatorPro Utility Once hardware installation is complete ensure that they are con figured correctly before running the ViewCreatorPro utility This chapter outlines how to establish a vision system and hot to manu ally controlling Angelo series cards to verify correct operation ViewCreatorPro provides a simple yet powerful means to setup configure test and debug the vision system Note ViewCreatorPro is only available for Windows XP Vista with a recommended screen resolution higher than 800x60
104. vent PortNo Event Angelo ISR ON 1 Mythread BeginThread nil 0 ThreadFunc nil 0 ThreadId Function Library 115 A ADLINK PA i Use Callback function var PortNo SmallInt PortNo 0 procedure MyCallback VideoBufferAddress LongInt PortNo SmallInt stdcall var Str Add Pointer Result Smallint Size Byte LongInt intstatus LongInt begin AngeloRTV Get Int Status PortNo intstatus if intstatus 2 then begin end end AngeloRTV Set Callback Cur Port MyCallback 116 Function Library A ADLINK PA i 5 8 Watchdog Timer Note This function is only available for RTV 24 Name AngeloRTV_Set_WDT CardNo Enable Interval Sets the watch dog status Only for PCI RTV24 Description AngeloRTV Set WDT Enables or disables the watch dog timer in the Angelo series cards and set the interval of timer When users have enabled the watch dog timer and selected a 16 seconds interval a system reset signal will be triggered if this function is not called after 16 seconds Syntax C C Windows CE NET I16 AngeloRTV Set WDT U16 CardNo U16 Enable U16 Interval Visual Basic Windows CE NET AngeloRTV Set WDT ByVal PortNo As Integer ByVal Enable As Integer ByVal Interval As Integer As Integer Delphi Windows AngeloRTV Set WDT CardNo Smallint enable Smallin t interval Smallint Smallint Argument CardNo Card number is the zero index in Angelo series card For example if there a
105. x Generates single or multiple trigger output simultaneously Only for PCI RTV24 cPCI RTV 24 cPCI RTV44 Description AngeloRTV Trigger Config Configures the pulse output interval AngeloRTV Trigger Start Generates a one shot pulse output for single or multiple ports Syntax C C Windows CE NET I16 AngeloRTV Trigger Config U16 PortNo U16 Interval I16 AngeloRTV Trigger Start U16 CardNo U16 Multiplex Visual Basic Windows CE NET AngeloRTV Trigger Config ByVal PortNo As Integer ByVal Interval As Integer As Integer AngeloRTV Trigger Start ByVal CardNo As Integer ByVal Multiplex As Integer As Integer Delphi Windows AngeloRTV Trigger Config PortNo Smallint Interval Smallint Smallint AngeloRTV Trigger Start CardNo Smallint Multiplex Smallint Smallint Argument CardNo Card number is the zero index in Angelo series card For example if there are two Pci RTV 24 Angelo cards card 0 card 1 in the system CardNo of card 0 is 0 and 1 for card 1 PortNo Function Library 119 A ADLINK PA i Port number is the zero index of the Angelo series card For exam ple if there are two PCI RTV 24 Angelo cards card 0 card 1 in the system and each PCI RTV 24 has four ports the first port of card O is O and the first port of card 1 is 4 Interval Indicates the trigger output interval the valid range is from O to 253 the definition is as following 0 16ms
Download Pdf Manuals
Related Search
Result result synonym result 2025 resultados liga mx results cx result hunter result bharat results about you results election 2024 resultant force result_code_hung resultscx careers results about you google results physiotherapy result_code_killed_bad_message results in engineering resultados mlb results physical therapy resultado real madrid hoy resultado de mlb de hoy resultados loterias resultados de la mlb resultados 365 results for daily three resultados de hoy resultados de la mlb hoy
Related Contents
Samsung GT-S5780 Bruksanvisning Case Logic USB-201 Bonnes pratiques d`achat pour les antipaludéens à base d livret sante FR-Chinois - La santé pour tous Installation Instructions QUICK GUIDE PDFファイル FP7 High-speed Counter Unit User`s Manual Manuale tecnico pompe di calore ad alta efficienza Pompe di calore Copyright © All rights reserved.
Failed to retrieve file