カメラチャンネル数の取得

Namespace: fvalgcli
Assembly: 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 不正なパラメータが渡された
  • channels が IntPtr.Zero
  • 事前に fnFIE_xyqn_calc_table() が実行されていない
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Remarks

具体的な使用方法についてはサンプルプロジェクトの xyqn をご参照ください。 サンプルプロジェクトはインストーラでは配布されませんので、 弊社ホームページからダウンロードしてください。

Examples

C# Copy imageCopy
//    $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 imageCopy
'    $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

See Also