ZmGetSpeed


機能

測定スピードと平均化回数を取得します。

書式

Ret = ZmSetSpeed ( Id , ChannelNo , Speed , AverageCount )

引数

Id [ C, C++: short ] [ Python: ctypes.c_short ]
ZmInitで取得したデバイスIDを指定します。

ChannelNo [ C, C++ : unsigned short ] [ Python: ctypes.c_ushort ]
チャネル番号を指定します。

Speed [ C, C++ : unsigned short * ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
測定スピードの格納用の変数アドレスを指定します。

AverageCount [ C, C++ : unsigned long * ] [ Python: ctypes.POINTER(ctypes.c_ulong) ]
平均化回数を格納する変数アドレスを指定します。

戻り値

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

定義

戻り値
[Dec]

内容

ZM_ERR_SUCCESS

0

正常終了

ZM_ERR_SYS_CHANNEL_NO

20100

チャネル番号が設定可能範囲外です。

その他のエラー(参照:エラーコード詳細

初期値

なし

説明

測定スピードと平均化回数を取得します。
測定スピードと平均化回数はチャネル毎に取得します。

使用例

ChannelNo = 1の測定スピードと、平均化回数を取得します。

C, C++

long Ret;

unsigned short Speed;
unsigned long AverageCount;
Ret = ZmGetSpeed ( Id , 1 , &Speed , &AverageCount );

Python

Ret = ctypes.c_long()

Speed = ctypes.c_ushort()
AverageCount = ctypes.c_ulong()

Ret.value = czm.ZmGetLevel ( Id , 1 , ctypes.byref(Speed) , ctypes.byref(AverageCount) )
 

関連項目

ZmSetSpeed