コンテンツにスキップ
関数 > アナログ入力 >

YdxAiGetRepeat

機能

リピートの設定を取得します。

書式

INT YdxAiGetRepeat(
    INT id,
    INT* repeatNum
);

パラメータ

id

YdxOpen関数 で取得したIDを指定します。

言語 C# VB(.NET2002以降) VB6.0 C++/CLI C/C++
int Integer Long int INT

repeatNum

リピート設定回数を格納する変数へのポインタを指定します。

言語 C# VB(.NET2002以降) VB6.0 C++/CLI C/C++
out int Integer Long int* INT*

戻り値

関数が正常に終了した場合は、0(YDX_RESULT_SUCCESS)が返ります。
正常に終了しなかった場合は、0以外が返ります。
詳細は、戻り値一覧 を参照してください。

言語 C# VB(.NET2002以降) VB6.0 C++/CLI C/C++
int Integer Long int INT

備考

パラメータの詳細については、YdxAiSetRepeat関数 を参照してください。

使用例

リピートの設定を取得します。

C#

int result;
int repeatNum;
result = Ydx.AiGetRepeat(id, out repeatNum);

VB(.NET2002以降)

Dim result As Integer
Dim repeatNum As Integer
result = YdxAiGetRepeat(id, repeatNum)

VB6.0

Dim result As Long
Dim repeatNum As Long
result = YdxAiGetRepeat(id, repeatNum)

C++/CLI

int result;
int repeatNum;
result = YdxAiGetRepeat(id, &repeatNum);

C/C++

INT result;
INT repeatNum;
result = YdxAiGetRepeat(id, &repeatNum);