SetStreamChannel
Top  Previous  Next

Description

Sets the stream channel on which the video data will be received.

Syntax


[VB]
objActiveGige.SetStreamChannel Value


[C/C++]
HRESULT SetStreamChannel(long Value);


Data Types
[VB]

Value: Integer


Parameters
[C/C++]

Value [in]  
The stream channel to be set (0, 1...)  


Return Values

S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example sets both the video source and stream channel on the camera to #1 and then initiates video acquisition on channel #1:

ActiveGige1.SetFeatureInt "SourceSelector", 1
         
'select Source1 as video source on camera

ActiveGige1.SetFeature "GevStreamChannelSelector", 1
  
'select stream channel #1 for this video source
ActiveGige1.SetDestinationIP 1, "", 0         'set our host IP as destination for channel #1
ActiveGige1.SetStreamChannel 1            'tell ActiveGigE to receive video on channel #1
ActiveGige1.Acquire = True
 

Remarks


This method should always be used in combination with SetDestinationIP.

Calling SetStreamChannel assumes that the camera is already set up for streaming video data on the selected channel. This method does not modify camera features and registers. In order to prepare camera for multi-channel streaming, set corresponding camera's features prior to using SetStreamChannel, as shown in the example above.

Note that this method should be used only if the camera supports multiple stream channels.