LoggerGetSamplingSetting


機能

サンプリング回数、変換速度とリピート回数を取得します。

書式

Ret = LoggerGetSamplingSetting ( AppId , SamplingTimes , ScanClock , RepeatTimes , StartTrigger , StopTrigger , DelayTime )

引数

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

LoggerOpenApplicationで取得したアプリケーションIDを指定します。

SamplingTimes [ VB.NET: UInteger ] [ C++:unsigned long * ] [ C#: out uint ]

サンプリング回数を格納するアドレスを指定します。

無限サンプリングを設定されている場合、サンプリング回数は0を返します。

ScanClock [ VB.NET: Single ] [ C++: float * ] [ C#: out float ]

スキャンクロックをµsec単位で格納するアドレスを指定します。

RepeatTimes [ VB.NET: Double ] [ C++: double * ] [ C#: out double ]

リピート回数を格納するアドレスを指定します。

サンプリング回数(SamplingTimes)=0の場合、リピート回数は1を返します。

StartTriggerType [ VB.NET: UShort ] [ C++:unsigned short * ] [ C#: out ushort ]

開始トリガの種類を格納するアドレスを指定します。

StopTriggerType [ VB.NET: UShort ] [ C++:unsigned short * ] [ C#: out ushort ]

停止トリガの種類を格納するアドレスを指定します。

DelayTime [ VB.NET: UInteger ] [ C++:unsigned long * ] [ C#: out uint ]

遅延回数を格納するアドレスを指定します。

戻り値

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

定義

戻り値

[Dec]

内容

LOGGER_ERR_SUCCESS

0

正常終了

LOGGER_ERR_INVALID_ID

10010

無効なAppIDが指定されました。

その他のエラー(参照:エラーコード一覧)

初期値

特になし

説明

サンプリング回数、変換速度とリピート回数を取得します。

使用例

サンプリング回数、スキャンクロック、リピート回数、開始トリガ、停止トリガ、遅延回数を取得します。

VB.NET

Dim Ret As Integer
Dim SamplingTimes As UInteger
Dim ScanClock As Single
Dim RepeatTimes As Double
Dim StartTrigger As UShort
Dim StopTrigger As UShort
Dim RepeatTimes As UInteger
Ret = LoggerGetSamplingSetting(AppId, SamplingTimes, ScanClock, RepeatTimes, StartTrigger, StopTrigger, DelayTime)

 

C++

long Ret;
unsigned long SamplingTimes;
float ScanClock;
double RepeatTimes;
unsigned short StartTrigger;
unsigned short StopTrigger;
unsigned long RepeatTimes;
Ret = LoggerGetSamplingSetting(AppId, &SamplingTimes, &ScanClock, &RepeatTimes, &StartTrigger, &StopTrigger, &DelayTime);

 

C#

int Ret;
uint SamplingTimes;
float ScanClock;
double RepeatTimes;
ushort StartTrigger;
ushort StopTrigger;
uint RepeatTimes;

Ret = logger.GetSamplingSetting(AppId, out SamplingTimes, out ScanClock, out RepeatTimes, out StartTrigger, out StopTrigger, out RepeatTimes);

 

関連項目

LoggerSetSamplingSetting