LineMode
Top  Previous  Next

Description

Returns or sets the input or output mode for the currently selected I/O line. Can be one of the following values:

"Input"  
   The selected physical line is used to input an electrical signal.  
"Output"  
   The selected physical line is used to output an electrical signal.  


Syntax


[VB]
objActiveGeni.LineMode [= Value]


[C/C++]
HRESULT get_LineMode( string *pValue );
HRESULT put_LineMode( string Value );



Data Type
[VB]

String

Parameters
[C/C++]

pValue [out, retval]  
Pointer to the string specifying the line mode.  
Value [in]  
The line mode to be set.  

Return Values


S_OK  
Success  
E_NOINTERFACE  
The feature is not available for the selected camera  
E_INVALIDARG  
The value is not part of the enumerated set  
E_FAIL  
Failure to set the feature value  
 
 

Example


The following VB example demonstrates the use of a combo box for line mode selection:

Private Sub
 Form_Load()
Lst = ActiveGeni1.GetEnumList("LineMode")
For
 i = 0 
To
 
UBound
(Lst)
Combo1.AddItem (Lst(i))
Next

Combo1.ListIndex = ActiveGeni1.LineMode
End Sub

Private Sub
 Combo1_Click()
ActiveGeni1.LineMode = Combo1.Text
End Sub
 

Remarks


When a line supports input and output modes, the default state is "Input" to avoid possible electrical contention.

Depending on a camera model, other device-specific values may be available for this feature. The list of valid values can be retrieved using GetEnumList.

Note that the property is available only if the currently selected camera supports the LineMode feature per GenICam standard.