エンコーダパラメータの取得

Namespace: FVIL.Video
Assembly: FVILdevice (in FVILdevice.dll) Version: 3.1.0.0 (3.1.0.5)

Syntax

C#
public virtual void GetEncoderParam(
	ref uint mode,
	ref uint start,
	ref uint phase,
	ref uint direction,
	ref uint zenable,
	ref uint comp1,
	ref uint comp2
)
Visual Basic
Public Overridable Sub GetEncoderParam ( 
	ByRef mode As UInteger,
	ByRef start As UInteger,
	ByRef phase As UInteger,
	ByRef direction As UInteger,
	ByRef zenable As UInteger,
	ByRef comp1 As UInteger,
	ByRef comp2 As UInteger
)

Parameters

mode
Type: System..::..UInt32%
エンコーダモード設定( 0:エンコーダスキャンモード 1:エンコーダライン選択モード )
start
Type: System..::..UInt32%
エンコーダ起動 ( 0:CPU 1:エンコーダ外部トリガ )
phase
Type: System..::..UInt32%
エンコーダパルス( 0:AB相 1:A相 )
direction
Type: System..::..UInt32%
エンコーダ回転方向 ( 0:CW 1:CCW )
zenable
Type: System..::..UInt32%
Z相使用設定 ( 0:使用しない 1:使用する )
comp1
Type: System..::..UInt32%
比較レジスタ1
comp2
Type: System..::..UInt32%
比較レジスタ2

Remarks

設定されているエンコーダパラメータを取得します。

処理に失敗した場合は例外を発行します。 例外の原因と発生位置を特定するには、発行された例外クラスの ErrorCode メンバと Function メンバを参照してください。

エラーコード:

ErrorCode メンバ内容
25FVIL.ErrorCode.NOT_OPENEDデバイスがオープンされていません。
11FVIL.ErrorCode.INVALID_PARAMETER引数に指定された値が不正です。
31079FVIL.Video.ErrorCode.GET_PARAMETERパラメータの取得に失敗しました。

Exceptions

ExceptionCondition
FVIL..::..CFviExceptionこの例外の原因については、上記のエラーコード表をご参照ください。

See Also