SetGevMode
Top  Previous  Next

Description

Sets the version of the GigE Vision standard under which the virtual camera will operate.

[C++]
int
 SetGevMode(unsigned short gevMode);


Parameters
[C/C++]
 
[in] unsigned short gevMode  
Type of the timer. Can be one of the following values:  
GEV_1 - virtual camera will comply with version 1.2 of the GigE Vision specifications.  
GEV_2 - virtual camera will comply with version 2.0 of the GigE Vision specifications.  
 
Return Values

S_OK  
Success  
E_FAIL  
Failure  
 

Example

This fragment of code instantiates a camera object and sets the GEV mode:

static CGevCamera* m_pCamera;  
m_pCamera = createCamera();  
 
m_pCamera->SetGevMode(GEV_2);  
 

Remarks


The main difference between GEV 2.x and GEV 1.x modes is the use of 64-bit block IDs and 32-bit packet IDs as opposed to 32-bit block IDs and 16-bit packet IDs. In addition, certain functionality such as JPEG compression and IEEE 1588 Precision Time Protocol are available only in GEV 2.x mode. For more information refer to GigE Vision Video Streaming and Device Control Over Ethernet Standard available from Advanced Imaging Association
.

If this function is not called, GigESim will be using the GEV 1.2 mode.

Note that the camera must be in the disconnected state in order for SetGevMode to work.