Transcription

GigE-VisionRealtime Master LibraryDocumentation(Cluster 32/64 Bit)Date: July,9.2015

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20131Introduction . 31.11.21.31.42Product FeaturesSupported PlatformsSupported OSReference Devices6666GigE-Vision Library Installation . 72.1 Jitter Control2.2 Dynamic Jitter Compensation3910Creating a Camera Configuration . 113.1 GigE Accesspoint3.1.112Connecting a Camera . 133.2 GeniCam Register Groups414GigE-Vision Realtime Master Library . 174.1 Header File GEV(32/64)COREDEF.H4.1.14.1.219Structure GEV PARAMS . 19Structure STATION INFO . 204.2 Header File GEV(32/64)MACROS.H4.3 Debug Log File52122GigE-Vision Library Interface . 235.1 Basic Functions5.1.15.1.25.1.323Sha(32/64)GevCreate . 23Sha(32/64)GevDestroy . 23Sha(32/64)GevGetVersion . 235.2 Command functions5.2.15.2.25.2.35.2.45.2.525Set station name . 25Set station IP address . 25Scan bus to station file . 26Enable station . 26Disable station. 265.3 GVCP P Discovery . 27GVCP ForceIP . 27GVCP ReadMem . 27GVCP WriteMem . 27GVCP ReadReg . 28GVCP WriteReg . 28GVCP Macros . 28Image Buffer Management. 306.1 Image Block Timing6.2 Image State Machine783031Realtime Operation . 33Error Handling. 358.1 Debug LOG File8.2 Event File93535Related Dokuments . 36SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 2

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20131 IntroductionBased on the increasing requirements of networking within the industrial area, the ethernetcommunication plays a more and more important role for the control of devices. Differentethernet standards are available for the bus related communication, like SERCOS,Powerlink, EtherCAT and GIGE. The communication principle is based characteristicallyon a deterministic process data-exchange and requires therefore for devices deterministicSoft- and hardware control.User Application(ThirdParty)Application LayerVisionConfigConfiguration (Genicam)(Sybera)GEV Core (GigE)Master Library(Sybera)Vision ControlLibrary(ThirdParty)Fieldbus CoreMaster Library(Sybera)Protocol LayerEthernet Core(Sybera)RX-TaskLogic TaskTX-TaskTransport LayerX-Realtime Engine(Sybera)realtime cycleRealtime LayerSYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 3

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013GigE-Vision is an international interface standard for industrial image processing . It allowseasy connection of industrial cameras to existing network systems through the use ofGigabit Ethernet. The GigE-Vision standard consists of four elements : The GigE-VisionControl Protocol (GVCP and GVSP) uses UDP and defines how a device is to beaddressed and specifies data channels and mechanisms for the transmission of imagesand configuration data between camera and PC. The GigE-Vision Stream Protocol(GVSP) specifies the different data types and modes of transmission to transfer images.UDP is used for transmission. But GigE-Vision itself contains the optional possibility ofpacket resend to correct transmission errors. The GigE-Vision Device Discoverymechanism includes finding cameras on the network. Additionally, the cameramanufacturer provides a XML file based on the GeniCam standard that contains afunctional description of the camera. This allows access to camera data and images. Withan integrated bandwidth control, the GigE-Vision realtime master library allows thecomplete control cycle of "Vision Sensor - Image Processing - Fieldbus actuators" in adeterministic time grid distributed to different fieldbuses. This is realized by the use of theX-Realtime cluster engine for Windows. With the GigE-Vision SYBERA master, within asingle network or across multiple networks data can be exchanged with other fieldbussystems. The camera configuration follows the GenICam standard parameters (e.g. BaslerCamera) . The image processing can be performed in realtime with third-party libraries(e.g. OpenCV ) . The master control is done directly from the PC and will be implementedwith standard Ethernet adapters. By extending the Ethernet transport layer (Ethernetrealtime core) more than 70 standard Ethernet adapter are supported for the GigE-Visionconnection.The GigE-Vision master of SYBERA is offered as an open realtime library system forWindows (32- and 64-bit) and allows the developer to program a deterministic control forcameras in conjunction with other field bus systems. The developer has the option toprogram the cameras with simple interface functions, and to create own vision applicationsgraphically. As with the standardized programming interfaces the developer has thepossibility to realize the configuration of the logical link and vision cameras by libraryfunctions. The developer of vision projects should not have to worry about protocolmanagement, rather take care of the processing of the relevant image data of theconnected cameras. In addition, it must also be ensured, that the developer can also takeinfluence to complex operations, such as State change of the cameras or error situationswith available library functions. The GigE-Vision protocol management (GVCP and GVSP), error handling and logistics equipment are implemented in so called Master protocolstacks. The protocol stacks thus forming the connection between the physical transportlayer (eg, Ethernet driver) and application software.SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 4

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013The Master meets the requirements of the GigE-Vision specification 2.0 and is designedas other SYBERA master libraries as open programming system. Particularly high valuewas placed on the critical timing of the GigE-Vision GVSP protocol . This is done throughan integrated bandwidth control. The system is based on four realtime tasks for sendingand receiving Ethernet frames and functional treatment for cyclic data exchange. Thetasks are functionally synchronized by a state machine. The realtime error task detectsframe errors and hardware latencies. With help of a frame filter, the acyclic GVCP visionframes are separated in realtime and transfered to a telegram stack. SYBERAimplemented in the master libraries the process "Dynamic Jitter Compensation" with activeand passive feedback. Although the X-Realtime Engine of SYBERA manages a lowmaximum jitter of 15 microseconds (depending on the hardware platform), an additive jitterarises in the sampling operation. For unsynchronized communication with IndustrialEthernet components this is negligible in most cases. However, to realize the control andsynchronization of drives, the reduction of the additive jitter and dynamic drift in the masterlibraries was required.SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 5

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20131.1Product Features 1.2Supported PlatformsVisual C (from Version 8) 1.3Supported OSWindows VISTA, 7, 8 (32 / 64 Bit) 1.4 Windows (32- und 64-Bit)Realtime Image ProcessingGigE-Vision ProtocolGenICam ConfigurationOpenCV compatibleGVCP acyclic transferGVSP cyclic realtime transferBandwidth AdjustmentSequence LogReference DevicesBasler acA1300-30gcSYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 6

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20132 GigE-Vision Library InstallationFor installation following steps are required:Preparation1. Provide a PC with INTEL or REALTEK Ethernet adapter and Windows operatingsystem with administrator rights2. Check the installed Ethernet adapter has given a correct IP addressInstallation3. Install SHA realtime system (separate software package)4. Install ETH transport library (separate software package)5. Run the program SYSETUP(32/64) of the GigE-Vision library(make sure the directory path has no space characters)On Installation the PEC information (PID, SERNUM and KEYCODE) must be entered.The PID for the evaluation version is 11223344, the SERNUM is 11223344, theKeyCode therefore is: 00001111-222233336. Optional: Check license with SYLICENCECHECK(32/64).EXEOperation7. Run VISIONGEN(32/64).EXE8. Build the program with the library interface9. Run the programNote: After finishing installation, you must reboot your PC before starting the compiler !!!.Note: In order to operate SYBERA software under Windows 8, 7, VISTA, it must becarried out with ADMINISTRATOR priviledges.SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 7

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013Note: For proper operation, make shure within the BIOS the INTEL SpeedstepTechnologie, the INTEL TurboBoost Technologie as well as the INTEL C-STATETechnologie is turned off.Enhanced SpeedStep — SpeedStep also modulates the CPU clock speed andvoltage according to load, but it is invoked via another mechanism. The operatingsystem must be aware of SpeedStep, as must the system BIOS, and then the OScan request frequency changes via ACPI. SpeedStep is more granular than C1Ehalt, because it offers multiple rungs up and down the ladder between the maximumand minimum CPU multiplier and voltage levels.C1E enhanced halt state — Introduced in the Pentium 4 500J-series processors,the C1E halt state replaces the old C1 halt state used on the Pentium 4 and mostother x86 CPUs. The C1 halt state is invoked when the operating system's idleprocess issues a HLT command. (Windows does this constantly when not under afull load.). C0 is the operating state. C1 (often known as Halt) is a state where theprocessor is not executing instructions, but can return to an executing stateessentially instantaneously. All ACPI-conformant processors must support thispower state. Some processors, such as the Pentium 4, also support an EnhancedC1 state (C1E or Enhanced Halt State) for lower power consumption. C2 (oftenknown as Stop-Clock) is a state where the processor maintains all software-visiblestate, but may take longer to wake up. This processor state is optional. C3 (oftenknown as Sleep) is a state where the processor does not need to keep its cachecoherent, but maintains other state. Some processors have variations on the C3state (Deep Sleep, Deeper Sleep, etc.) that differ in how long it takes to wake theprocessor. This processor state is optional.Intel Turbo Boost Technology automatically allows processor cores to run fasterthan the base operating frequency, increasing performance. Under someconfigurations and workloads, Intel Turbo Boost technology enables higherperformance through the availability of increased core frequency. Intel TurboBoost technology automaticallyallows processor cores to run faster than the baseoperating frequency if the processor is operating below rated power, temperature,and current specification limits. Intel Turbo Boost technology can be engaged withany number of cores or logical processors enabled and active. This results inincreased performance of both multi-threaded and single-threaded workloads.SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 8

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20132.1Jitter ControlSince a notebook has a quiet different jitter behaviour than desktop systems, an enhancedjitter control mechanism is required. Therefore SYBERA provides a registry entry called“JitterCtrl”. This entry allows an adaptive iteration to the best jitter behaviour of thenotebook.Following values are valid:0:1:2:3:No enhanced jitter controlEnhaced Jitter Control, Step 1 (first choice together with BIOS settings)Enhaced Jitter Control, Step 2 (for INTEL platforms only)Enhaced Jitter Control, Step 3 (for INTEL platforms only, together with BIOS settings)SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 9

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20132.2Dynamic Jitter CompensationSYBERA uses the procedure "Dynamic Jitter Compensation" with active and passivefeedback compensation within the realtime engine. Although the X-Real time engine ofSYBERA allows a native maximum Jitter of approx. 15 µ sec (according to hardwareplatform), this behaviour may be reduced below 3 µsec by the dynamic jittercompensation.For compatibility reason on some platforms it may be required to disable the dynamic jittercompensation. Therefore the registry value “NoJitterComp” has to be set to 1SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 10

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20133 Creating a Camera ConfigurationA GigE-Vision fieldbus system typically consists of multiple (different) camera devices. Theconfiguration of a GigE vision camera is based on the GeniCam vision standard. A cameraconfiguration consists at least of one accesspoint and several Genicam register groups.For proper operation of the SYBERA vision realtime core the GigE-Vision devices needfirst to be configured by creating a native configuration file. Therefore SYBERA provides aprogram called VISIONGEN.EXE.Note: Make shure a valid IP address is provided for the network connection.Note: If the application fails to run, check if the lastest Microsoft XML Parser has beeninstalled. If not, install in the directory \MSXML\MSXML6SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 11

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013VISIONGEN allows creating a native configuration file, with all required information forcontrolling thecamera. This configuration is based on the GeniCam Standard, by selectingcamera information from a provided XML camera file which must be present in the samedirectory as VISIONGEN. The creation of a configuration file can be done by scanning thebus and / or modifying the configuration manually. There are two types of information:GigE AccesspointGeniCam Register Group3.1GigE AccesspointThe accesspoint keeps all information required for connecting to the fieldbus, as stationname, IP parameters, MAC address, identify parameters. Therefore first task is to collectinformation about the GigE-Vision configuration by scanning the bus. The scan getsinformation about manufacturer name and MAC address. Now individual assignment mustset (e.g. IP address, station name). On a right button click to the selected GigEaccesspoint the dialog appears:SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 12

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20133.1.1 Connecting a CameraAfter scanning the bus, or after a configuration has been loaded, the selected camera maybe connectedSYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 13

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20133.2GeniCam Register GroupsGenICam is the standard for generic camera interfaces. Cameras, which are used inindustrial image processing, are configerable more or less in the same way, by readingand writing of parameters to specified control register. However, protocols, formats, andaddresses of these registers usually vary from manufacturer to manufacturer. TheGeniCam registers are read or written via the ascyclic GVCP protocol standard. On a rightbutton click to the selected GeniCam register the dialog appears:Note: A GeniCam register may also be disabled, so it will be ignored while initializing thecamera. To disable a GeniCam register, either setting “Disable” or setting theregister size to zero.Note: Some GeniCam registers allow a control selection with a corresponding value.Note: The GeniCam registers may be read or written while a camera is currently operating(camera is connected).SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 14

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013At least, typically following GeniCAM registers need to be configured to operate a camera:AcquisitionMode:Heartbeat Timeout:Stream Channel Packet Size:Stream Channel Destination Address:Stream Channel Port:Pixel Format:Image Width:Image Height:Offset X:Offset Y:Acquisition 000302640x000400240x400005000x00000002 (Addr: 0x00020004)SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 15

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013The configuration file is stored in a text format which must be provided to the GigE-VisionMaster Library.Sample: Station[NAME]Station1[MFG NAME]Basler[MODEL NAME]acA1300-30gc[DEV VERSION]104846-07[SER NUM]21274150[MAC ADDR]00 30 53 13 71 26[UDP PORT]00 00[IP PARAMS]c0 a8 01 05 ff ff ff 00 00 00 00 00[DEV MODE]01 00 00 80[DEV CAP]00 00 00 00[LINK SPEED]00 b0 00 00 04 00 00[HEARTBEAT TIMEOUT]38 09 00 00 04 00 00[TICK FREQ]3c 09 00 00 08 00 00[HOST PORT]00 0d 00 00 04 00 00[HOST ADDR]18 0d 00 00 04 00 00[PKT SIZE]04 0d 00 00 04 00 00[PKT DELAY]08 0d 00 00 04 00 0000 00 00 00 80 00 00 00 00 64 00 00 00 00 00 00 0000 ff ff ff ff 00 00 00 00 b8 0b 00 00 00 00 00 0000 ff ff ff ff 00 00 00 00 40 59 73 07 00 00 00 0000 ff ff ff ff 00 00 00 00 30 f2 00 00 00 00 00 0000 ff ff ff ff 00 00 00 00 02 01 a8 c0 00 00 00 0000 ff ff ff ff 00 00 00 00 00 1f 00 40 00 00 00 0000 ff ff ff ff 00 00 00 00 a8 61 00 00 00 00 00 00 //Set configuration file pathsprintf(GevParams.szStationFile, "c:\\gev\\stationlist.par");SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 16

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20134 GigE-Vision Realtime Master LibraryThe interface functions of the GigE-Vision Realtime Master Library are exported by adynamic link library. Following header files and libraries are LOGGigE-Vision Master DLL (VISUAL C )GigE-Vision Master LIB (VISUAL C )Exported Function PrototypesGigE-Vision Basic DefinitionsGigE-Vision Macro DefinitionsGeniCam DefinitionsGVSP DefinitionsNative Station List (generated by VISIONGEN)Sequence Log (generated at runtime)Sample ProjectSYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 17

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013Sample Wireshark Protocol:SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 18

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20134.1Header File GEV(32/64)COREDEF.HThe header file GEVCOREDEF.H declares all required structures when handling GigEVision interface functions or handling the Core Realtime Stack directly (Realtime Level2).4.1.1 Structure GEV PARAMSThis structure is required by the core interface functions, and contains all required andoptional input and output data members.typedef struct GEV PARAMS{//Input parameterscharszStationFile[MAX PATH SIZE]; //Station list file nameUCHARHostIP[IP ADDRESS LEN];//HOST IP address//Output parametersULONGErrCnts;//Error CountersFP GEV ENTERfpGevEnter; //Function Pointer to GevEnter()FP GEV EXIT fpGevExit;//Function Pointer to GevExit()ULONGcore dll ver;//Core DLL versionULONGcore drv ver;//Core driver version//Input - Output parametersETH PARAMSEthParams;//Realtime level2 parametersULONGStationNum;PSTATION INFOpSystemList;PSTATION INFOpUserList;//Ethernet Core Parameters//Station Number//PSTATION INFO structure for realtime//application task//PSTATION INFO structure for windows//application task} GEV PARAMS, *PGEV PARAMS;Note: The structure ETH PARAMS is part of the Ethernet Core Library and described inthe the documentation of this core libraray. Thus the Ethernet Core library must beinstalled first. The required elements of the structure ETH PARAMS must be usedin the same way as using the Ethernet realtime core.SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 19

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20134.1.2 Structure STATION INFOThis structure keeps all information of each GigE-Vision modul and may be required forfurther interface functions.typedef struct STATION INFO{STATION /Station//Station//Station//Image buffer listIMG BLOCK INFOBlockList[MAX IMG rrorIndex//Image Block List//Image Block Number//Image Block Index//Camera control register groupsCTRL TRANSPORTTransportCtrl;CTRL IMAGEImageCtrl;CTRL ACQAcqCtrl;CTRL DIODioCtrl;CTRL ANALOGAnalogCtrl;CTRL MISCMiscCtrl;} STATION INFO, *PSTATION INFO;Note: The most elements of the structure STATION INFO will be automatically filled withthe provided Stationlist information. The elements InputFrameData andOutputFrameData keep the payload data of the station.SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 20

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20134.2Header File GEV(32/64)MACROS.HThis header file defines structures required for handling GeniCam control registerstypedef struct GEV REGISTER{ULONG addr;//Register addressULONG size;//Value size (typically 4)ULONG mask;//Value Bit MaskTYPE64 value;//Value (64-Bit union)} GEV REGISTER, *PGEV REGISTER;SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 21

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20134.3Debug Log FileThe GigE-Vision master library provides a buildin log sytem which produces a debug logfile called GEVDBG.LOG. This file contains all nessecary information of the librarysequence.Sample:GEVCORE32 - Sha32GevCreateGEVCORE32 - GetHostAddressGEVCORE32 - DrvCreateGEVCORE32 - CreateGevThreadGEVCORE32 - CreateStationListStationList.parGEVCORE32 - LoadStationListStationList.parGEVCORE32 - LoadStationListStationList.par*** Frame Received ****** Discard ****** Frame Received ****** Discard ***GEVCORE32 - Sha32GevGetVersionGEVCORE32 - DrvGetVersionGEVCORE32 - Gev32EnableStationStation1GEVCORE32 - Gev32ReadRegGEVCORE32 - GvcpCmd, Target IP: 192.168.1.5GEVCORE32 - WaitForGvcp [Enter], Target IP: 192.168.1.2*** Frame Received ****** Synchronize ***GEVCORE32 - WaitForGvcp [Exit]GEVCORE32 - Gev32WriteRegGEVCORE32 - GvcpCmd, Target IP: 192.168.1.5GEVCORE32 - WaitForGvcp [Enter], Target IP: 192.168.1.2*** Frame Received ****** Synchronize ***GEVCORE32 - WaitForGvcp ---Writing Station Station1 [HEARTBEAT TIMEOUT] Addr:0x00000938 Value:0x00000bb8GEVCORE32 - Gev32WriteRegGEVCORE32 - GvcpCmd, Target IP: 192.168.1.5GEVCORE32 - WaitForGvcp [Enter], Target IP: 192.168.1.2*** Frame Received ****** Synchronize ***GEVCORE32 - WaitForGvcp [Exit]*** Writing OK *** SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 22

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20135 GigE-Vision Library InterfaceThe header file SHA(32/64)GEVCORE.H defines all required prototypes and parametersof the vision core library. The header file is based on the files GEV(32/64)COREDEF.Hand ETH(32/64)COREDEF.H. In the following all function prototypes will be discussed bysamples. Since all platforms have their own syntax and dependencies, therefore the topicsfor the different platforms are marked as follow:5.1Basic Functions5.1.1 Sha(32/64)GevCreateThis function initializes the GigE-Vision module states. On success the returning value isERROR SUCCESS, otherwise the returning value corresponds to that withGetLastError().VC ULONG Sha(32/64)GevCreate (PGEV PARAMS);Note: if no configuration file is given, the system will scan the bus automatically5.1.2 Sha(32/64)GevDestroyThis function closes the GigE-Vision communication.VC ULONG Sha(32/64)GevDestroy(PGEV PARAMS);5.1.3 Sha(32/64)GevGetVersionThis function retrieves the version information of the GigE-Vision Master Library, theEthernet Core Library, the Ethernet Core Driver, the SHA Dll, the SHA Library and theSHA Driver.VC ULONG Sha(32/64)GevGetVersion(PGEV PARAMS);SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 23

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 2013Sample:pBlockListUser (PUCHAR)malloc(IMG BLOCK SIZE * IMG BLOCK NUM);{//Reset block memorymemset( pBlockListUser, 0, IMG BLOCK SIZE * IMG BLOCK NUM);//Required GEV parametersGEV PARAMS GevParams;memset(&GevParams, 0, sizeof(GEV PARAMS));GevParams.EthParams.dev num 0;GevParams.EthParams.period REALTIME PERIOD;GevParams.EthParams.fpAppTask AppTask;strcpy(GevParams.szStationFile, "c:\\pnt\\StationList.par");//Enable GEV realtime coreif (ERROR SUCCESS Sha32GevCreate(&GevParams)){//Init global elementspUserStack GevParams.EthParams.pUserStack;pSystemStack GevParams.EthParams.pSystemStack;pUserList GevParams.pUserList;pSystemList GevParams.pSystemList;StationNum GevParams.StationNum;fpGevEnter GevParams.fpGevEnter;fpGevExit GevParams.fpGevExit;//Init block poolpUserList[0].BlockList[0].pBuffer & Size IMG BLOCK SIZE;pUserList[0].BlockList[1].pBuffer & pBlockListUser[IMG BLOCK SIZE];pUserList[0].BlockList[1].BufferSize IMG BLOCK SIZE;pUserList[0].BlockList[2].pBuffer & pBlockListUser[IMG BLOCK SIZE*2];pUserList[0].BlockList[2].BufferSize IMG BLOCK SIZE;pUserList[0].BlockNum IMG BLOCK NUM;pUserList[0].BlockIndex 0;//Check number of stations (Check Host IP address)if ( StationNum){//Enable stationsfor (i 0; i GevParams.StationNum; i )Gev32EnableStation(& pUserList[i]); SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: 49-7031-411-781Page 24

GigE VisionRealtime Master LibraryDocumentationSYBERA Copyright 20135.2Command functionsThe low level interface provides all function to handle GigE-Vision Commands5.2.1 Set station nameVC ULONG Gev(32/64)SetStationName(PSTATION INFO pStation)5.2.2 Set station IP addressVC ULONG Gev(32/64)SetStationIP(PSTATION INFO pStation)//Structure for IP parameters (declared in ETHCOREDEF.H)typedef struct IP PARAMS{TYPE32ip addr;TYPE32subnet;TYPE32gateway;} IP PARAMS, *PIP PARAMS;Sample://Set station IP (optional)pStation- Hdr.IpParams.ip addr.bit8[0]pStation- H

The GigE-Vision Device Discovery mechanism includes finding cameras on the network. Additionally, the camera . Note: For proper operation, make shure within the BIOS the INTEL Speedstep Technologie , the INTEL TurboBoost Technologie as