カメラチャンネル数の取得
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_xyqn_get_channels( FHANDLE hcalib, ref int channels ) |
Visual Basic |
---|
Public Shared Function fnFIE_xyqn_get_channels ( hcalib As FHANDLE, ByRef channels As Integer ) As Integer |
Parameters
- hcalib
- Type: fvalgcli..::..FHANDLE
キャリブレーションシステムのハンドル
- channels
- Type: System..::..Int32%
カメラチャンネル数
Return Value
Type: Int32以下のエラーコードを返します。
エラーコード:
f_err | 内容 |
---|---|
F_ERR_NONE | 正常終了 |
F_ERR_INVALID_OBJECT | 不正なオブジェクトが渡された |
F_ERR_NOMEMORY | メモリ不足エラー |
F_ERR_INVALID_PARAM | 不正なパラメータが渡された
|
F_ERR_NO_LICENCE | ライセンスエラー、または未初期化エラー |
Remarks
具体的な使用方法についてはサンプルプロジェクトの xyqn をご参照ください。 サンプルプロジェクトはインストーラでは配布されませんので、 弊社ホームページからダウンロードしてください。
Examples
C# | Copy |
---|---|
// $Revision: 1.1 $ using System; using System.Collections.Generic; using System.Text; namespace TC { public partial class FIE { /// <summary> /// カメラチャンネル数の取得 /// </summary> /// <param name="hCalib"></param> public void fnFIE_xyqn_get_channels(fvalgcli.FHANDLE hCalib) { int channels = 0; int status = fvalgcli.api.fnFIE_xyqn_get_channels(hCalib, ref channels); Assert.IsTrue(status == (int)fvalgcli.f_err.F_ERR_NONE, "fnFIE_xyqn_get_channels: エラーが発生しました。({0})", (fvalgcli.f_err)status); Console.WriteLine("fnFIE_xyqn_get_channels"); Console.WriteLine("channels={0}", channels); } } } |
Visual Basic | Copy |
---|---|
' $Revision: 1.1 $ Imports System.Collections.Generic Imports System.Text Public Partial Class FIE ''' <summary> ''' カメラチャンネル数の取得 ''' </summary> ''' <param name="hCalib"></param> Public Sub fnFIE_xyqn_get_channels(hCalib As fvalgcli.FHANDLE) Dim channels As Integer = 0 Dim status As Integer = fvalgcli.api.fnFIE_xyqn_get_channels(hCalib, channels) Assert.IsTrue(status = CInt(fvalgcli.f_err.F_ERR_NONE), "fnFIE_xyqn_get_channels: エラーが発生しました。({0})", CType(status, fvalgcli.f_err)) Console.WriteLine("fnFIE_xyqn_get_channels") Console.WriteLine("channels={0}", channels) End Sub End Class |